Community mailing list archives
Re: Add data to Many2many using search in XMLby
Just to close this, It's possible to do what I wanted.
CEO | Odoo Consultant
tm.+244 913 728 600
Não imprima este email caso não seja estritamente necessário. A Terra agradece-lhe!
> it is not possible to use a 'search' in xml. yes it is: https://github.com/odoo/odoo/blob/9.0/openerp/tools/convert.py#L97 A syntax in the lines of should do what you want. But it's nearly never a good idea to do this. Better declare the records in question in XML anyways, and write a pre-migration script that creates the XML ids in question. An example can be found here: https://github.com/OCA/OpenUpgrade/blob/8.0/addons/stock/migrations/22.214.171.124/post-migration.py#L488 -- Therp - Maatwerk in open ontwikkeling Holger Brunn - Ontwerp en implementatie mail: firstname.lastname@example.org web: http://therp.nl phone: +31 (0)20 3093096