Re: [tryton-dev] Extending python-sql

2018-01-04 Thread 'Udo Spallek' via tryton-dev
Thu, 4 Jan 2018 19:38:54 +0100 Sergi Almacellas Abellana : >El 04/01/18 a les 18:13, 'Udo Spallek' via tryton-dev ha escrit: >> Thu, 4 Jan 2018 15:31:45 +0100 >> Sergi Almacellas Abellana : >>> El 04/01/18 a les 11:26, Cédric Krier ha escrit: In general, I think it is the wrong way to impl

Re: [tryton-dev] Extending python-sql

2018-01-04 Thread Sergi Almacellas Abellana
El 04/01/18 a les 18:13, 'Udo Spallek' via tryton-dev ha escrit: > Hi, > > Thu, 4 Jan 2018 15:31:45 +0100 > Sergi Almacellas Abellana : >> El 04/01/18 a les 11:26, Cédric Krier ha escrit: >>> In general, I think it is the wrong way to implement a discount. The >>> discount should modify the unit p

Re: [tryton-dev] Extending python-sql

2018-01-04 Thread 'Udo Spallek' via tryton-dev
Hi, Thu, 4 Jan 2018 15:31:45 +0100 Sergi Almacellas Abellana : >El 04/01/18 a les 11:26, Cédric Krier ha escrit: >> In general, I think it is the wrong way to implement a discount. The >> discount should modify the unit price. Is this in general your proposal? On sale.line/invoice.line, if ther

Re: [tryton-dev] Extending python-sql

2018-01-04 Thread Sergi Almacellas Abellana
El 04/01/18 a les 11:26, Cédric Krier ha escrit: > In general, I think it is the wrong way to implement a discount. The > discount should modify the unit price. Otherwise you are changing the > definition of the field 'unit_price' and this may break other modules > which may rely on it. I agree wit

Re: [tryton-dev] Extending python-sql

2018-01-04 Thread Cédric Krier
On 2017-12-30 15:08, 'Udo Spallek' via tryton-dev wrote: > Hi, > > I would like to extend account_invoice.Invoice.search_total_amount[A] > which is based on a python-sql query. > It should be extended with another module. > In my extension I would like to replace the following column[B]:: > >