You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
2.1 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!-- Copyright 2016 Grupo ESOC Ingeniería de Servicios, S.L.U. - Jairo Llopis
  3. Copyright 2016 Tecnativa - Vicent Cubells
  4. License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -->
  5. <odoo noupdate="1">
  6. <!-- Match partners by name, parent_id and is_company -->
  7. <record model="base_import.match" id="res_partner_parent_name_is_company">
  8. <field name="model_id" eval="ref('base.model_res_partner')"/>
  9. <field name="sequence" type="int">20</field>
  10. </record>
  11. <record model="base_import.match.field" id="res_partner_parent_name_is_company_name">
  12. <field name="match_id" ref="res_partner_parent_name_is_company"/>
  13. <field name="field_id" ref="base.field_res_partner_name"/>
  14. </record>
  15. <record model="base_import.match.field" id="res_partner_parent_name_is_company_parent">
  16. <field name="match_id" ref="res_partner_parent_name_is_company"/>
  17. <field name="field_id" ref="base.field_res_partner_parent_id"/>
  18. </record>
  19. <record model="base_import.match.field" id="res_partner_parent_name_is_company_is_company">
  20. <field name="match_id" ref="res_partner_parent_name_is_company"/>
  21. <field name="field_id" ref="base.field_res_partner_is_company"/>
  22. </record>
  23. <!-- Match partner by email -->
  24. <record model="base_import.match" id="res_partner_email">
  25. <field name="model_id" eval="ref('base.model_res_partner')"/>
  26. <field name="sequence" type="int">30</field>
  27. </record>
  28. <record model="base_import.match.field" id="res_partner_email_email">
  29. <field name="match_id" ref="base_import_match.res_partner_email"/>
  30. <field name="field_id" ref="base.field_res_partner_email"/>
  31. </record>
  32. <!-- Match partner by name -->
  33. <record model="base_import.match" id="res_partner_name">
  34. <field name="model_id" eval="ref('base.model_res_partner')"/>
  35. <field name="sequence" type="int">40</field>
  36. </record>
  37. <record model="base_import.match.field" id="res_partner_name_name">
  38. <field name="match_id" ref="base_import_match.res_partner_name"/>
  39. <field name="field_id" ref="base.field_res_partner_name"/>
  40. </record>
  41. </odoo>