On 2016-07-05 01:43, Maxime Richez wrote: > Hi, > > I would like to add start_date and end_date for a product supplier price. > > Here's my code: > > http://pastebin.com/Bm9GwTps > > My problem: > > get_purchase_price method is called from PurchaseLine with a specific > context (purchase_date,...) then get_purchase_price check if there's > product_supplier_price matching. > How to keep previous context to check if purchase_date is between > start_date and end_date ?
I do not understand. The context inside the execution of get_purchase_price stays the same. So what do you name "previous context"? -- Cédric Krier - B2CK SPRL Email/Jabber: [email protected] Tel: +32 472 54 46 59 Website: http://www.b2ck.com/ -- You received this message because you are subscribed to the Google Groups "tryton" group. To view this discussion on the web visit https://groups.google.com/d/msgid/tryton/20160706101007.GC4037%40tetsuo.
