[18.0][FIX] account_invoice_margin: Remove product_cost_security.group_product_edit_cost from tests#266
Conversation
|
Hi @sergio-teruel, |
…uct_edit_cost from tests
e24608d to
2995302
Compare
There was a problem hiding this comment.
You are writing standard_price with sudo(), which bypasses the field access checks.
This PR fixes the issue:
OCA/product-attribute#2254
| ) | ||
| cls.product_a.lst_price = 200 | ||
| cls.product_a.standard_price = 100 | ||
| cls.product_a.sudo().write({"standard_price": 100}) |
There was a problem hiding this comment.
If the other PR from @sergio-teruel is merged, the sudo can be removed. However, I think the groups also need to be removed because there is no explicit dependency here.
|
@sergio-teruel It is only needed to change This module does not depend on product_cost_security, so we cannot use its XML ID in the test. |
|
What a great day to merge this nice PR. Let's do it! |
|
Congratulations, your PR was merged at 8d3757c. Thanks a lot for contributing to OCA. ❤️ |
Without this change, the test fails.
account_invoice_margindoes not depend onproduct_cost_security@pedrobaeza can you review please.
@Tecnativa