On Friday, February 27, 2015 at 1:14:38 AM UTC+1, Cédric Krier wrote:
>
> On 26 Feb 15:53, Simon Klemenc wrote: 
> > hi there, 
> > 
> > I recognized that when i update the party from a sale, the tax rule is 
> not 
> > updated for the sales line.. 
> > 
> > Easy, i thought, just add it to an on_change_party... 
> > however, I dont know how i would update relational fields (sale lines) 
> > calling line.save() is not really intended here i think and it doesnt 
> work 
> > aswel... 
> > 
> > Is there a way to do this? 
>
> Not really that's why the party is readonly once there is a line added on 
> sale. 
>
> All right.
We have sale templates which we reuse quite often and i really need to 
update taxes...
so i'll put it somewhere in validate or so...
Whats the reason i can't call line.save() in on_change? rpc-readonly? can i 
change it?

sorry i messed up with the groups, i inteded to pick "tryton"...

simon 

>
> PS: tryton-dev@ if about developping Tryton, general question are for 
> tryton@ 
> -- 
> Cédric Krier - B2CK SPRL 
> Email/Jabber: [email protected] <javascript:> 
> Tel: +32 472 54 46 59 
> Website: http://www.b2ck.com/ 
>

Reply via email to