Hi,
Am Sat, 24 Dec 2011 07:45:18 +0530
schrieb Sharoon Thomas <[email protected]>:
> On Dec 24, 2011, at 3:09 AM, Cédric Krier wrote:
[...]
> > Second, we just need to ensure the carrier_weight will be loaded
> > after sale_shipment_cost if it is installed. For this, let's
> > introduce an other keyword "extra_depends" that will behave like
> > "depends" but it will not be read when installing the module.
> This will not prevent tryton module loader from loading classes which
> were meant to be inherited (but will be loaded as new). For example if
> you inherit `sale.sale` and change the behaviour of a method, and if
> sale module is not in `depends` tryton will create `sale.sale` as a
> new model ?
Maybe we can control the class level with a decorator, like:
@depends_module('account_invoice')
class Invoice(...):
_name='account.invoice'
...
Regards Udo
--
_____________________________
virtual things
Preisler & Spallek GbR
München - Aachen
Windeckstr. 77
81375 München
Tel: +49 (89) 710 481 55
Fax: +49 (89) 710 481 56
[email protected]
http://www.virtual-things.biz
--
[email protected] mailing list