I think I have found a solution. First, we can have module extending Models define on other modules but without depending on it. Like puting the code of sale_shipment_cost_weight in carrier_weight but without making carrier_weight depending on sale. 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.
I think this design will allow to put glue code inside the module without crappy hack and it will be explicit via the extra_depends. -- Cédric Krier B2CK SPRL Rue de Rotterdam, 4 4000 Liège Belgium Tel: +32 472 54 46 59 Email/Jabber: [email protected] Website: http://www.b2ck.com/
pgpMLuYs8ZUs9.pgp
Description: PGP signature
