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.

55 lines
2.4 KiB

  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <odoo>
  3. <record id="view_partner_form" model="ir.ui.view">
  4. <field name="model">res.partner</field>
  5. <field name="inherit_id" ref="base.view_partner_form" />
  6. <field name="arch" type="xml">
  7. <xpath expr="//field[@name='child_ids']" position="before">
  8. <group>
  9. <group>
  10. <field
  11. name="partner_delivery_id"
  12. domain="[('id', 'child_of', commercial_partner_id), ('type', '=', 'delivery')]"
  13. widget="selection"
  14. />
  15. </group>
  16. <group>
  17. <field
  18. name="partner_invoice_id"
  19. domain="[('id', 'child_of', commercial_partner_id), ('type', '=', 'invoice')]"
  20. widget="selection"
  21. />
  22. </group>
  23. </group>
  24. </xpath>
  25. <xpath expr="//field[@name='child_ids']//form//group" position="after">
  26. <group
  27. string="Force addresses"
  28. attrs="{'invisible': [('type', '!=', 'contact')]}"
  29. >
  30. <group colspan="4">
  31. <field name="commercial_partner_id" invisible="1" />
  32. <div class="oe_grey">
  33. <div
  34. >You can force and delivery and invoice address for this contacts.</div>
  35. <div
  36. >If you keep empty this fields the Odoo's behavior will be normal</div>
  37. </div>
  38. </group>
  39. <group colspan="4">
  40. <field
  41. name="partner_delivery_id"
  42. domain="[('id', 'child_of', commercial_partner_id), ('type', '=', 'delivery')]"
  43. />
  44. </group>
  45. <group colspan="4">
  46. <field
  47. name="partner_invoice_id"
  48. domain="[('id', 'child_of', commercial_partner_id), ('type', '=', 'invoice')]"
  49. />
  50. </group>
  51. </group>
  52. </xpath>
  53. </field>
  54. </record>
  55. </odoo>