On 27 Feb 01:21, Simon Klemenc wrote:
> 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...

There is no such need, opportunity creates sale without problems.

> 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?

No you can not change on_change to not be readonly.

-- 
Cédric Krier - B2CK SPRL
Email/Jabber: cedric.kr...@b2ck.com
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/

Reply via email to