Skip to content

Commit

Permalink
[IMP] donation: partner form view usability improvement
Browse files Browse the repository at this point in the history
On res.partner form view, place the button for donations next to the button for fiscal receipts
  • Loading branch information
alexis-via committed Apr 24, 2024
1 parent 95538dc commit 44975ba
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions donation/views/res_partner.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,13 @@
<record id="view_partner_form" model="ir.ui.view">
<field name="name">donation.button.res.partner.form</field>
<field name="model">res.partner</field>
<field name="inherit_id" ref="base.view_partner_form" />
<field name="inherit_id" ref="donation_base.view_partner_property_form" />
<field name="groups_id" eval="[(4, ref('donation.group_donation_viewer'))]" />
<field name="arch" type="xml">
<xpath expr="//div[@name='button_box']" position="inside">
<button
name="%(donation_base.partner_tax_receipt_action)d"
position="before"
>
<button
class="oe_stat_button"
type="action"
Expand All @@ -26,7 +29,7 @@
>
<field string="Donations" name="donation_count" widget="statinfo" />
</button>
</xpath>
</button>
</field>
</record>
</odoo>

0 comments on commit 44975ba

Please sign in to comment.