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.

26 lines
1.1 KiB

  1. <odoo>
  2. <record model="ir.ui.view" id="res_partner_form_view">
  3. <field name="model">res.partner</field>
  4. <field name="inherit_id" ref="base.view_partner_form" />
  5. <field name="arch" type="xml">
  6. <xpath expr="//group[@name='purchase']" position="inside">
  7. <field
  8. name="default_supplierinfo_discount"
  9. attrs="{'invisible': [('is_company', '=', False), ('parent_id', '!=', False)]}"
  10. />
  11. <div
  12. name="supplierinfo_discount_disabled"
  13. colspan="2"
  14. attrs="{'invisible': ['|',('is_company', '=', True), ('parent_id', '=', False)]}"
  15. >
  16. <p>Discount-related settings are managed on <button
  17. name="open_commercial_entity"
  18. type="object"
  19. string="the parent company"
  20. class="oe_link"
  21. /></p>
  22. </div>
  23. </xpath>
  24. </field>
  25. </record>
  26. </odoo>