Skip to content

Commit 8b7d84e

Browse files
lepistoneyvaucher
authored andcommitted
adapt tests to new required pricelist
This is needed here because the dependency on purchase_requisition_multicurrency (that introduces the required field) has just been introduced.
1 parent 26114fc commit 8b7d84e

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

purchase_requisition_auto_rfq_bid_selection/test/purchase_requisition.yml

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
!record {model: purchase.requisition, id: requisition1}:
1616
name: PR01
1717
bid_tendering_mode: open
18+
pricelist_id: purchase.list0
1819
line_ids:
1920
- product_id: purchase_requisition_auto_rfq.kitchenset
2021
product_qty: 10

purchase_requisition_bid_selection/test/process/restricted.yml

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
bid_tendering_mode: 'restricted'
99
schedule_date: '2013-09-30'
1010
req_validity: '2013-09-10'
11+
pricelist_id: purchase.list0
1112
line_ids:
1213
- product_id: product.product_product_15
1314
product_qty: 15.0

purchase_requisition_bid_selection/tests/test_generate_po.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ def setUp(self):
4040
'purchase_requisition_bid_selection.act_closed').id,
4141
'condition': True,
4242
})
43-
self.preq = PReq.create({'state': 'closed'})
43+
self.preq = PReq.create({'state': 'closed',
44+
'pricelist_id': self.ref('purchase.list0')})
4445
dummy_wkf_trans.unlink()
4546

4647
partner_12 = self.env.ref('base.res_partner_12')

0 commit comments

Comments
 (0)