[FIX] sale,sale_payment: remove implicit dependency of sale on payment module
This worked by accident only because `payment` module is auto-installed when `account` is installed. opw-1829812
This commit is contained in:
@@ -169,9 +169,6 @@
|
||||
<field name="portal_confirmation_options" class="o_light_label" widget="radio"
|
||||
attrs="{'required': [('portal_confirmation', '=', True)]}"/>
|
||||
</div>
|
||||
<div attrs="{'invisible': [('portal_confirmation_options', '!=', 'pay')]}">
|
||||
<button name='%(payment.action_payment_acquirer)d' icon="fa-arrow-right" type="action" string="Payment Acquirers" class="btn-link"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -20,6 +20,7 @@ Provide tools for sale-related payment
|
||||
'views/crm_team_views.xml',
|
||||
'views/sale_order_views.xml',
|
||||
'views/sale_portal_templates.xml',
|
||||
'views/settings.xml',
|
||||
],
|
||||
'installable': True,
|
||||
'auto_install': False,
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<record id="res_config_settings_view_form" model="ir.ui.view">
|
||||
<field name="name">res.config.settings.view.form.inherit.sale_payment</field>
|
||||
<field name="model">res.config.settings</field>
|
||||
<field name="inherit_id" ref="sale.res_config_settings_view_form" />
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//field[@name='portal_confirmation_options']/.." position="after">
|
||||
<div attrs="{'invisible': [('portal_confirmation_options', '!=', 'pay')]}">
|
||||
<button name='%(payment.action_payment_acquirer)d' icon="fa-arrow-right" type="action" string="Payment Acquirers" class="btn-link"/>
|
||||
</div>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
</odoo>
|
||||
Reference in New Issue
Block a user