2 In order to test the onchange events of purchase requisition.
4 I call onchange event to change the product of purchase requisition line.
6 !python {model: purchase.requisition.line}: |
7 self.onchange_product_id(cr, uid, [ref('order_purchase_requisition1')],ref('product.product_product_hdd2'), ref('product.product_uom_unit'))
9 I change state of requisition in "In progress".
11 !python {model: purchase.requisition}: |
12 self.tender_in_progress(cr, uid, ref('order_purchase_requisition1'))
14 I change state of requisition as "done".
16 !python {model: purchase.requisition}: |
17 self.tender_done(cr, uid, ref('order_purchase_requisition1'))
19 I reset the state of requisition as "New".
21 !python {model: purchase.requisition}: |
22 self.tender_reset(cr, uid, ref('order_purchase_requisition1'))
24 I call onchange event to change the partner of purchase requisition.
26 !python {model: purchase.requisition.partner}: |
27 self.onchange_partner_id(cr, uid, ref('order_purchase_requisition1'), ref('base.res_partner_desertic_hispafuentes'))