Reviewing the issue2345 [1], I came to the conclusion that we must remove the Property fields. The design is wrong as Albert pointed and we can replace it by something more explicit and efficient.
All the current Property fields are used for multi-company only. So my idea is to replace them by Function field that will use a table to store the value (with the company if needed). For the default value, I think depending of the cases we could use the same design as on product when it must use the category values, so simply a check box and store it on a Singleton. For the search, we will be able to reuse the ORM of Tryton and for now it will use a clause "id IN" (could be done with the SQL query). But I think once we will have python-sql intergrated we will use a python SQL clause. This work can be done incrementally by changing Property fields one by one. So if you plan to help on this, please fill an issue before starting and link it to issue2349 [2]. [1] https://bugs.tryton.org/issue2345 [2] https://bugs.tryton.org/issue2349 -- 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/
pgpmgGA46wwrC.pgp
Description: PGP signature
