Skip to content

Commit

Permalink
[FIX] product_supplierinfo_for_customer_sale: fix tests
Browse files Browse the repository at this point in the history
In [1] the test where changed and try to set a field restricted to a
group that the user used in the test don't have.

[1]: OCA/sale-workflow/OCA#3163
  • Loading branch information
xmglord committed Jun 4, 2024
1 parent 6e503ec commit c6728cd
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ def setUp(self):
self.pricelist_template = self._create_pricelist(
"Test Pricelist Template", self.product_template.product_variant_ids[:1]
)
self.env.user.groups_id |= self.env.ref("product.group_product_pricelist")

def _create_customer(self, name):
return self.env["res.partner"].create(
Expand Down

0 comments on commit c6728cd

Please sign in to comment.