Purpose ======= While cleaning the stat buttons across all modules, we decided to move the (un)archiving from stat button to actions in the 'Action' dropdown. Specification ============= Remove the 'active' stat buttons in all views
29 lines
1.3 KiB
XML
29 lines
1.3 KiB
XML
<?xml version="1.0"?>
|
|
<odoo>
|
|
<data>
|
|
|
|
<!-- Add creditcard to res.partner -->
|
|
<record id="view_partners_form_payment_defaultcreditcard" model="ir.ui.view">
|
|
<field name="name">view.res.partner.form.payment.defaultcreditcard</field>
|
|
<field name="model">res.partner</field>
|
|
<field name="inherit_id" ref="base.view_partner_form"/>
|
|
<field name="priority" eval="15"/>
|
|
<field name="arch" type="xml">
|
|
<div name="button_box" position="inside">
|
|
<button type="action" class="oe_stat_button"
|
|
icon="fa-credit-card"
|
|
name="%(payment.payment_token_action)d"
|
|
context="{'search_default_partner_id': active_id}">
|
|
<div class="o_form_field o_stat_info">
|
|
<span class="o_stat_value">
|
|
<field name="payment_token_count" widget="statinfo" nolabel="1"/>
|
|
</span>
|
|
<span class="o_stat_text">Credit card(s)</span>
|
|
</div>
|
|
</button>
|
|
</div>
|
|
</field>
|
|
</record>
|
|
</data>
|
|
</odoo>
|