Skip to content

Commit

Permalink
[FIX] Fixed Issue OCA#291
Browse files Browse the repository at this point in the history
  • Loading branch information
nikul-serpentcs authored and olveracuenca committed Jun 6, 2023
1 parent 37aa789 commit 3c9e994
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions purchase_operating_unit/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ Contributors
* Aaron Henriquez <[email protected]>
* Sudhir Arya <[email protected]>
* Nicola Studer <[email protected]>
* Nikul Chaudhary <[email protected]>

Maintainers
~~~~~~~~~~~
Expand Down
1 change: 1 addition & 0 deletions purchase_operating_unit/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
* Aaron Henriquez <[email protected]>
* Sudhir Arya <[email protected]>
* Nicola Studer <[email protected]>
* Nikul Chaudhary <[email protected]>
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ def setUp(self):
self.StockPicking = self.env["stock.picking"]
self.PurchaseOrder = self.env["purchase.order"]
self.AccountInvoice = self.env["account.move"]
self.AccountAccount = self.env["account.account"]
# company
self.company1 = self.env.ref("base.main_company")
self.company2 = self.env.ref("stock.res_company_1")
Expand All @@ -32,7 +33,10 @@ def setUp(self):
self.product2 = self.env.ref("product.product_product_9")
self.product3 = self.env.ref("product.product_product_11")
# Account
self.account = self.env.ref("l10n_generic_coa.payable")
payable_acc_type = self.env.ref("account.data_account_type_payable").id
self.account = self.AccountAccount.search(
[("user_type_id", "=", payable_acc_type)], limit=1
)
# Create users
self.user1_id = self._create_user(
"user_1",
Expand Down

0 comments on commit 3c9e994

Please sign in to comment.