On Friday, February 27, 2015 at 11:00:03 AM UTC+1, Cédric Krier wrote: > > 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. > > I just tried that, but i dont know how it would fulfill our "templates" demand.. When i have a lead/opportunity and create a sale from it, how would i make another sale with my template? Also we have a lot of comments in our predefined quotations..
Anyhow, i just did the tax logic in validate().. might create a lot of queries, but it does the job... > 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. > too bad (for me)... regards and thanks! > > -- > Cédric Krier - B2CK SPRL > Email/Jabber: [email protected] <javascript:> > Tel: +32 472 54 46 59 > Website: http://www.b2ck.com/ >
