-
-
Notifications
You must be signed in to change notification settings - Fork 308
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[16.0] [FIX] l10n_it_account_stamp: messaggio errato dopo applicazione bollo + reimposta a bozza modifica l'addebito del bollo #4529
base: 16.0
Are you sure you want to change the base?
Conversation
e75bc23
to
5a78dff
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Test funzionale: OK
@@ -97,7 +96,6 @@ def add_tax_stamp_line(self): | |||
inv.write({"invoice_line_ids": [(0, 0, invoice_line_vals)]}) | |||
|
|||
def is_tax_stamp_line_present(self): | |||
self.ensure_one() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perché rimuovere ensure_one()
?
Il test ha senso per più fatture? Ossia serve sapere che tra N fatture almeno una abbia una riga che sia un bollo?
Se è una cosa che ha senso sapere fattura per fattura (a senso mi pare così), allora l'ensure_one ci va e se scatena un errore il problema è nel chiamante...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perché rimuovere
ensure_one()
?
In realtà era solo un revert alla situazione precedente, era stato aggiunto dalla PR #3802.
Se è una cosa che ha senso sapere fattura per fattura (a senso mi pare così), allora l'ensure_one ci va e se scatena un errore il problema è nel chiamante...
Attualmente nel codice viene sempre passata una singola fattura a is_tax_stamp_line_present()
, però ha senso che ci sia il controllo. Riaggiunto.
5a78dff
to
4fd4a38
Compare
4fd4a38
to
0bc6e43
Compare
e3548c4
to
b2e994a
Compare
b2e994a
to
0def33e
Compare
0def33e
to
763826f
Compare
FROM product_template pt | ||
WHERE aml.product_id = pt.id AND aml.is_stamp_line = True |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FROM product_template pt | |
WHERE aml.product_id = pt.id AND aml.is_stamp_line = True | |
WHERE aml.product_id IS NOT NULL AND aml.is_stamp_line = True |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fatto, grazie.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Vedi proposta su migrazione
763826f
to
1d0f01f
Compare
Risolve #4528 per 16.0.
Vedi anche #4414 (comment) e relativa review della PR.