Browse Source

[FIX] Double header on partner form

pull/53/head
Thibault Francois 7 years ago
parent
commit
49433e8767
  1. 16
      beesdoo_easy_my_coop/views/partner.xml
  2. 1
      beesdoo_shift/views/cooperative_status.xml

16
beesdoo_easy_my_coop/views/partner.xml

@ -25,4 +25,20 @@
</filter>
</field>
</record>
<record model="ir.ui.view" id="beesdoo_partner_form_view_remove_duplicate_header">
<field name="name">beesdoo.partner.form.view.remove_duplicate_cooperator_type</field>
<field name="model">res.partner</field>
<field name="inherit_id" ref="beesdoo_base.beesdoo_partner_form_view" />
<field name="arch" type="xml">
<xpath expr="header" position="replace" />
<xpath expr="//field[@name='state']" position="before">
<button string="Create Subscription" name="%(easy_my_coop.action_view_create_subscription)d"
type="action" context="{'default_active_id': active_id}" groups="easy_my_coop.group_energiris_manager"/>
<button string="Update info" name="%(easy_my_coop.action_view_update_partner_info)d"
type="action" context="{'default_active_id': active_id}" groups="easy_my_coop.group_energiris_manager"/>
</xpath>
</field>
<field name="priority">99</field>
</record>
</odoo>

1
beesdoo_shift/views/cooperative_status.xml

@ -3,6 +3,7 @@
<field name="name">Partner Super Coop</field>
<field name="model">res.partner</field>
<field name="inherit_id" ref="beesdoo_base.beesdoo_partner_form_view" />
<field name="priority">50</field>
<field name="arch" type="xml">
<xpath expr="//sheet" position="before">
<header>

Loading…
Cancel
Save