On 18 Nov 16:46, Sergi Almacellas Abellana wrote: > Hi, > > We have a module that replaces the currency Function [1] field of > analytic_lines with a Many2One field [2] so the field is materialized to the > table. > > This worked correctly on versions 3.2, but after migration to version 3.4, > the field is no more "overriden" so it is not created to the database table. > > Is the expected behaviour?
I don't think it was expected but it is probably due to http://hg.tryton.org/trytond/rev/690d629e0050 I think now it is a good feature because such field definition change could break the modularity. For example a third module could want to override the getter of the Function field and this will have no effect if it becomes a *real* field. > [1] > http://hg.tryton.org/modules/analytic_account/file/8822b2825924/line.py#l22 > [2] > https://bitbucket.org/nantic/trytond-analytic_line_state/src/4bd025f0b0523d0e99e4ac03aec2e769fd707df8/analytic.py?at=default#cl-188 -- Cédric Krier - B2CK SPRL Email/Jabber: [email protected] Tel: +32 472 54 46 59 Website: http://www.b2ck.com/
pgpk_zrveM49o.pgp
Description: PGP signature
