Skip to content
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

Closed
wants to merge 1 commit into from

Conversation

nim-odoo
Copy link
Contributor

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

@nim-odoo nim-odoo self-assigned this Apr 16, 2019
@robodoo robodoo added seen 🙂 CI 🤖 Robodoo has seen passing statuses labels Apr 16, 2019
@C3POdoo C3POdoo added the OE the report is linked to a support ticket (opw-...) label Apr 16, 2019
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
@robodoo robodoo removed the CI 🤖 Robodoo has seen passing statuses label Apr 16, 2019
@robodoo robodoo added the CI 🤖 Robodoo has seen passing statuses label Apr 16, 2019
_inherit = "account.fiscal.position"

def write(self, vals):
if "tax_ids" in vals:
Copy link
Contributor

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 ?

Copy link
Contributor Author

@nim-odoo nim-odoo left a comment

Choose a reason for hiding this comment

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

robodoo r+

robodoo pushed a commit that referenced this pull request Apr 17, 2019
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>
@robodoo robodoo added r+ 👌 and removed r+ 👌 CI 🤖 Robodoo has seen passing statuses labels Apr 17, 2019
@robodoo
Copy link
Contributor

robodoo commented Apr 17, 2019

Staging failed: ci/runbot (view more at http://runbot.odoo.com/runbot/build/501697)

@nim-odoo
Copy link
Contributor Author

robodoo retry

@robodoo robodoo added CI 🤖 Robodoo has seen passing statuses r+ 👌 and removed error 🙅 CI 🤖 Robodoo has seen passing statuses labels Apr 17, 2019
@robodoo
Copy link
Contributor

robodoo commented Apr 17, 2019

Staging failed: ci/runbot on d5a36cb19cb82d1bb0e7a69f4bb0d0c4f3026b2b (view more at http://runbot.odoo.com/runbot/build/501724)

@nim-odoo
Copy link
Contributor Author

robodoo retry

@robodoo robodoo added CI 🤖 Robodoo has seen passing statuses r+ 👌 and removed error 🙅 CI 🤖 Robodoo has seen passing statuses labels Apr 17, 2019
@robodoo
Copy link
Contributor

robodoo commented Apr 17, 2019

Staging failed: ci/runbot on 448f9b29a81da8d04560251a74b60e14ae05e5ad (view more at http://runbot.odoo.com/runbot/build/501795)

@nim-odoo
Copy link
Contributor Author

robodoo retry

@robodoo robodoo added CI 🤖 Robodoo has seen passing statuses r+ 👌 and removed error 🙅 labels Apr 17, 2019
@robodoo
Copy link
Contributor

robodoo commented Apr 17, 2019

Merged, thanks!

@robodoo robodoo closed this Apr 17, 2019
@nim-odoo nim-odoo deleted the 10.0-opw-1969009-cert-nim branch April 17, 2019 13:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI 🤖 Robodoo has seen passing statuses OE the report is linked to a support ticket (opw-...)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants