Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 1 addition & 7 deletions account_invoice_margin/tests/test_account_invoice_margin.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,8 @@ class TestAccountInvoiceMargin(AccountTestInvoicingCommon):
@classmethod
def setUpClass(cls):
super().setUpClass()
cls.env.user.groups_id |= cls.env.ref(
"product_cost_security.group_product_edit_cost"
)
cls.env.user.groups_id |= cls.env.ref(
"product_cost_security.group_product_cost"
)
cls.product_a.lst_price = 200
cls.product_a.standard_price = 100
cls.product_a.sudo().write({"standard_price": 100})
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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.

cls.invoice = cls.init_invoice(
"out_invoice",
partner=cls.partner_a,
Expand Down
Loading