Skip to content
Snippets Groups Projects
Commit b6e0f1ad authored by Christophe Simonis's avatar Christophe Simonis
Browse files

[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
parent 3f5663e9
Branches
Tags
No related merge requests found
......@@ -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,
......
<?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>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment