Re: [tryton-dev] on_change update relationals

2015-03-02 Thread Cédric Krier
On 02 Mar 13:39, Jean C wrote: > 2015-03-02 13:19 GMT+01:00 Cédric Krier : > > > > I would like that when the user changes the bank account, the mandate > > > be set (if one matching exists), > > > > This can be done. > > > > And it is. > > > or a default one created. > > > > This has to be mana

Re: [tryton-dev] on_change update relationals

2015-03-02 Thread Jean C
2015-03-02 13:19 GMT+01:00 Cédric Krier : > > I would like that when the user changes the bank account, the mandate > > be set (if one matching exists), > > This can be done. > And it is. > or a default one created. > > This has to be managed in the create method. > But I find it is a very bad d

Re: [tryton-dev] on_change update relationals

2015-03-02 Thread Cédric Krier
On 02 Mar 12:42, Jean C wrote: > Hi all, > > I am having a similar problem with bank accounts and sepa mandates. > > I have a model on which the user selects a bank account, and a mandate > to use (there may be multiple valid mandates, so the decision cannot be > automated). > > I would like tha

Re: [tryton-dev] on_change update relationals

2015-03-02 Thread Jean C
Hi all, I am having a similar problem with bank accounts and sepa mandates. I have a model on which the user selects a bank account, and a mandate to use (there may be multiple valid mandates, so the decision cannot be automated). I would like that when the user changes the bank account, the man

Re: [tryton-dev] on_change update relationals

2015-02-27 Thread Cédric Krier
On 27 Feb 20:51, Simon Klemenc wrote: > 2015-02-27 13:20 GMT+01:00 Cédric Krier : > > > On 27 Feb 04:05, Simon Klemenc wrote: > > > Let me explain: > > > > > > We sell certain Systems, those consist of several pieces of varying > > > size/quantity. > > > Most of the time we use a predefined quotat

Re: [tryton-dev] on_change update relationals

2015-02-27 Thread Simon Klemenc
2015-02-27 13:20 GMT+01:00 Cédric Krier : > On 27 Feb 04:05, Simon Klemenc wrote: > > Let me explain: > > > > We sell certain Systems, those consist of several pieces of varying > > size/quantity. > > Most of the time we use a predefined quotation, adapt its size (pieces). > We > > include possibl

Re: [tryton-dev] on_change update relationals

2015-02-27 Thread Guillem Barba Domingo
2015-02-27 10:21 GMT+01:00 Simon Klemenc : > 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.. >>

Re: [tryton-dev] on_change update relationals

2015-02-27 Thread Cédric Krier
On 27 Feb 04:05, Simon Klemenc wrote: > Let me explain: > > We sell certain Systems, those consist of several pieces of varying > size/quantity. > Most of the time we use a predefined quotation, adapt its size (pieces). We > include possible variants in comments and send those quotations... I s

Re: [tryton-dev] on_change update relationals

2015-02-27 Thread Simon Klemenc
On Friday, February 27, 2015 at 12:55:04 PM UTC+1, Cédric Krier wrote: > > On 27 Feb 03:33, Simon Klemenc wrote: > > On Friday, February 27, 2015 at 11:00:03 AM UTC+1, Cédric Krier wrote: > > > On 27 Feb 01:21, Simon Klemenc wrote: > > > > We have sale templates which we reuse quite often and

Re: [tryton-dev] on_change update relationals

2015-02-27 Thread Cédric Krier
On 27 Feb 03:33, Simon Klemenc wrote: > On Friday, February 27, 2015 at 11:00:03 AM UTC+1, Cédric Krier wrote: > > On 27 Feb 01:21, Simon Klemenc wrote: > > > We have sale templates which we reuse quite often and i really need to > > > update taxes... > > > > There is no such need, opportunity c

Re: [tryton-dev] on_change update relationals

2015-02-27 Thread Simon Klemenc
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 wh

Re: [tryton-dev] on_change update relationals

2015-02-27 Thread Cédric Krier
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 lin

Re: [tryton-dev] on_change update relationals

2015-02-27 Thread Simon Klemenc
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_ch

Re: [tryton-dev] on_change update relationals

2015-02-26 Thread Cédric Krier
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) > cal

[tryton-dev] on_change update relationals

2015-02-26 Thread Simon Klemenc
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 a