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.

18 lines
909 B

  1. <?xml version="1.0"?>
  2. <odoo>
  3. <record id="partner_property_form_view" model="ir.ui.view">
  4. <field name="name">partner.property.form</field>
  5. <field name="model">res.partner</field>
  6. <field name="inherit_id" ref="point_of_sale.view_partner_property_form"/>
  7. <field name="arch" type="xml">
  8. <button name="%(point_of_sale.action_pos_pos_form)d" position="before">
  9. <button class="oe_stat_button" type="action" name="%(point_of_sale.action_pos_pos_form)d"
  10. context="{'search_default_partner_id': active_id,'default_partner_id': active_id}"
  11. attrs="{'invisible': ['|', ('customer', '=', False), ('pos_order_count', '=', 0)]}"
  12. icon="fa-star">
  13. <field name="loyalty_points" widget="statinfo"/>
  14. </button>
  15. </button>
  16. </field>
  17. </record>
  18. </odoo>