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.

50 lines
2.3 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
  12. model="base_import.match.field"
  13. id="res_partner_parent_name_is_company_name"
  14. >
  15. <field name="match_id" ref="res_partner_parent_name_is_company" />
  16. <field name="field_id" ref="base.field_res_partner__name" />
  17. </record>
  18. <record
  19. model="base_import.match.field"
  20. id="res_partner_parent_name_is_company_parent"
  21. >
  22. <field name="match_id" ref="res_partner_parent_name_is_company" />
  23. <field name="field_id" ref="base.field_res_partner__parent_id" />
  24. </record>
  25. <record
  26. model="base_import.match.field"
  27. id="res_partner_parent_name_is_company_is_company"
  28. >
  29. <field name="match_id" ref="res_partner_parent_name_is_company" />
  30. <field name="field_id" ref="base.field_res_partner__is_company" />
  31. </record>
  32. <!-- Match partner by email -->
  33. <record model="base_import.match" id="res_partner_email">
  34. <field name="model_id" eval="ref('base.model_res_partner')" />
  35. <field name="sequence" type="int">30</field>
  36. </record>
  37. <record model="base_import.match.field" id="res_partner_email_email">
  38. <field name="match_id" ref="base_import_match.res_partner_email" />
  39. <field name="field_id" ref="base.field_res_partner__email" />
  40. </record>
  41. <!-- Match partner by name -->
  42. <record model="base_import.match" id="res_partner_name">
  43. <field name="model_id" eval="ref('base.model_res_partner')" />
  44. <field name="sequence" type="int">40</field>
  45. </record>
  46. <record model="base_import.match.field" id="res_partner_name_name">
  47. <field name="match_id" ref="base_import_match.res_partner_name" />
  48. <field name="field_id" ref="base.field_res_partner__name" />
  49. </record>
  50. </odoo>