Skip to content

[14.0] IMP l10n_it_fatturapa_out: forward port of #2300#2309

Merged
OCA-git-bot merged 1 commit into
OCA:14.0from
TheMule71:14.0-forward-2300
Oct 15, 2021
Merged

[14.0] IMP l10n_it_fatturapa_out: forward port of #2300#2309
OCA-git-bot merged 1 commit into
OCA:14.0from
TheMule71:14.0-forward-2300

Conversation

@TheMule71

@TheMule71 TheMule71 commented Jun 1, 2021

Copy link
Copy Markdown
Contributor

IMP l10n_it_fatturapa_out: prevent to export XML for vendor bills.
This is possible by "sidebar" actions

#2301

--
Confermo di aver firmato il CLA https://odoo-community.org/page/cla e di aver letto le linee guida su https://odoo-community.org/page/contributing

TheMule71 added a commit to odoo-italia/l10n-italy that referenced this pull request Jun 18, 2021
TheMule71 added a commit to odoo-italia/l10n-italy that referenced this pull request Jun 18, 2021
@TheMule71 TheMule71 force-pushed the 14.0-forward-2300 branch 2 times, most recently from 57a7cf2 to ed3f701 Compare June 18, 2021 16:18
TheMule71 added a commit to odoo-italia/l10n-italy that referenced this pull request Jun 18, 2021
TheMule71 added a commit to odoo-italia/l10n-italy that referenced this pull request Jul 2, 2021
TheMule71 added a commit to odoo-italia/l10n-italy that referenced this pull request Jul 2, 2021
TheMule71 added a commit to odoo-italia/l10n-italy that referenced this pull request Jul 9, 2021
TheMule71 added a commit to odoo-italia/l10n-italy that referenced this pull request Jul 9, 2021
TheMule71 added a commit to odoo-italia/l10n-italy that referenced this pull request Jul 9, 2021
TheMule71 added a commit to odoo-italia/l10n-italy that referenced this pull request Jul 9, 2021
TheMule71 added a commit to odoo-italia/l10n-italy that referenced this pull request Jul 17, 2021
TheMule71 added a commit to odoo-italia/l10n-italy that referenced this pull request Jul 20, 2021
TheMule71 added a commit to odoo-italia/l10n-italy that referenced this pull request Jul 30, 2021
TheMule71 added a commit to odoo-italia/l10n-italy that referenced this pull request Jul 30, 2021
TheMule71 added a commit to odoo-italia/l10n-italy that referenced this pull request Aug 6, 2021
TheMule71 added a commit to odoo-italia/l10n-italy that referenced this pull request Aug 20, 2021

@SimoRubi SimoRubi left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Grazie della PR!
Riesci ad aggiungere un test?

Comment thread l10n_it_fatturapa_out/models/account.py Outdated
def preventive_checks(self):
for invoice in self:
if not invoice.is_sale_document():
raise UserError(_("Impossible to generate XML: not a customer invoice"))

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Puoi segnalare all'utente qual'è il documento incriminato?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bisognerebbe proporre la stessa cosa per #2300, ma è stata già mergiata così com'è.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fatto (il nome della fattura)

TheMule71 added a commit to odoo-italia/l10n-italy that referenced this pull request Sep 3, 2021
@TheMule71

Copy link
Copy Markdown
Contributor Author

Grazie della PR!
Riesci ad aggiungere un test?

Fatto.

@TheMule71 TheMule71 requested a review from SimoRubi September 10, 2021 14:00
TheMule71 added a commit to odoo-italia/l10n-italy that referenced this pull request Sep 17, 2021
@matteoopenf

Copy link
Copy Markdown
Contributor

testata con fattura fornitore e tentato export e mi ha bloccato correttamente

Comment thread l10n_it_fatturapa_out/models/account.py Outdated
Comment on lines +54 to +57
_(
"Impossible to generate XML: not a customer invoice: %s"
% invoice.name
)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
_(
"Impossible to generate XML: not a customer invoice: %s"
% invoice.name
)
_("Impossible to generate XML: not a customer invoice: %s")
% invoice.name

La sostituzione andrebbe fatta dopo la traduzione e non viceversa, altrimenti Odoo cercherà la traduzione della stringa con già il numero di fattura inserito tipo

Impossible to generate XML: not a customer invoice: ACQ/2021/09/0001

senza trovarla e l'errore presenterà la stringa non tradotta. Puoi correggere?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fatto

TheMule71 added a commit to odoo-italia/l10n-italy that referenced this pull request Oct 1, 2021
@TheMule71 TheMule71 requested a review from SimoRubi October 8, 2021 09:51
IMP l10n_it_fatturapa_out: prevent to export XML for vendor bills.
This is possible by "sidebar" actions

Co-authored-by: Lorenzo Battistini <lb@takobi.online>
TheMule71 added a commit to odoo-italia/l10n-italy that referenced this pull request Oct 8, 2021

@SimoRubi SimoRubi left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Revisione del codice, per me è ok

@tafaRU

tafaRU commented Oct 15, 2021

Copy link
Copy Markdown
Member

/ocabot merge patch

@OCA-git-bot

Copy link
Copy Markdown
Contributor

What a great day to merge this nice PR. Let's do it!
Prepared branch 14.0-ocabot-merge-pr-2309-by-tafaRU-bump-patch, awaiting test results.

OCA-git-bot added a commit that referenced this pull request Oct 15, 2021
Signed-off-by tafaRU
@OCA-git-bot

Copy link
Copy Markdown
Contributor

It looks like something changed on 14.0 in the meantime.
Let me try again (no action is required from you).
Prepared branch 14.0-ocabot-merge-pr-2309-by-tafaRU-bump-patch, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 751dd05 into OCA:14.0 Oct 15, 2021
@OCA-git-bot

Copy link
Copy Markdown
Contributor

Congratulations, your PR was merged at dd1a8db. Thanks a lot for contributing to OCA. ❤️

@TheMule71 TheMule71 deleted the 14.0-forward-2300 branch October 15, 2021 16:12
TheMule71 added a commit to odoo-italia/l10n-italy that referenced this pull request Oct 15, 2021
TheMule71 added a commit to odoo-italia/l10n-italy that referenced this pull request Oct 15, 2021
TheMule71 added a commit to odoo-italia/l10n-italy that referenced this pull request Oct 15, 2021
TheMule71 added a commit to odoo-italia/l10n-italy that referenced this pull request Oct 15, 2021
TheMule71 added a commit to odoo-italia/l10n-italy that referenced this pull request Oct 15, 2021
TheMule71 added a commit to TheMule71/l10n-italy that referenced this pull request Jan 21, 2022
TheMule71 added a commit to TheMule71/l10n-italy that referenced this pull request Jan 21, 2022
TheMule71 added a commit to TheMule71/l10n-italy that referenced this pull request Jan 21, 2022
TheMule71 added a commit to TheMule71/l10n-italy that referenced this pull request Jan 21, 2022
TheMule71 added a commit to odoo-italia/l10n-italy that referenced this pull request Jun 29, 2022
TheMule71 added a commit to odoo-italia/l10n-italy that referenced this pull request Jun 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants