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
[FIX] l10n_fr_pos_cert: fpos settings #32701
Conversation
The computation of hash integrity depends on the field `tax_ids_after_fiscal_position`. However, this field is computed, but not stored. It means that if one modifies a fiscal position used in the POS, the computation of `tax_ids_after_fiscal_position` will change. Consequently, the hash computation of the order will be modified, and the hash integrity of the journal will be corrupted. We prevent the modification of the taxes implied in a fiscal position if any POS order use it. Closes odoo#32665 opw-1969009
ee5e470
to
527932c
Compare
_inherit = "account.fiscal.position" | ||
|
||
def write(self, vals): | ||
if "tax_ids" in vals: |
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.
maybe need to make this check only on FR company, no ?
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.
robodoo r+
The computation of hash integrity depends on the field `tax_ids_after_fiscal_position`. However, this field is computed, but not stored. It means that if one modifies a fiscal position used in the POS, the computation of `tax_ids_after_fiscal_position` will change. Consequently, the hash computation of the order will be modified, and the hash integrity of the journal will be corrupted. We prevent the modification of the taxes implied in a fiscal position if any POS order use it. Closes #32665 opw-1969009 closes #32701 Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
Staging failed: ci/runbot (view more at http://runbot.odoo.com/runbot/build/501697) |
robodoo retry |
Staging failed: ci/runbot on d5a36cb19cb82d1bb0e7a69f4bb0d0c4f3026b2b (view more at http://runbot.odoo.com/runbot/build/501724) |
robodoo retry |
Staging failed: ci/runbot on 448f9b29a81da8d04560251a74b60e14ae05e5ad (view more at http://runbot.odoo.com/runbot/build/501795) |
robodoo retry |
Merged, thanks! |
opw-1969009
Description of the issue/feature this PR addresses:
Current behavior before PR:
Desired behavior after PR is merged:
--
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr