[IMP]In yml update context.

bzr revid: bth@tinyerp.com-20130218061801-nbihwaxv8yi8d7b6
This commit is contained in:
Bhumi Thakkar (Open ERP) 2013-02-18 11:48:01 +05:30
parent bdae636bca
commit 51005a923e
2 changed files with 5 additions and 3 deletions

View File

@ -1,8 +1,9 @@
-
In order to merge RFQ, I merge two RFQ which has same supplier and check new merged order.
-
!python {model: purchase.order}: |
new_id = self.do_merge(cr, uid, [ref('purchase_order_4'), ref('purchase_order_7')])
!python {model: purchase.order}: |
context = dict(context, mail_create_nolog=True)
new_id = self.do_merge(cr, uid, [ref('purchase_order_4'), ref('purchase_order_7')], context=context)
order3 = self.browse(cr, uid, ref('purchase_order_4'))
order7 = self.browse(cr, uid, ref('purchase_order_7'))
total_qty = sum([x.product_qty for x in order3.order_line] + [x.product_qty for x in order7.order_line])

View File

@ -44,7 +44,8 @@
!record {model: purchase.requisition.partner, id: requisition_partner_0}:
partner_id: base.res_partner_12
-
!python {model: purchase.requisition.partner}: |
!python {model: purchase.requisition.partner}: |
context = dict(context, mail_create_nolog=True)
self.create_order(cr, uid, [ref("requisition_partner_0")], context=context)
-
I check that the RFQ details which created for supplier.