Files
contract/contract_sale_payment_mode/views/sale_order.xml
sbejaoui 0d73cab59d [12.0][IMP] - Different payment mode for contracts generated from sale orders
new option allow to set different payment mode for the contracts generated from
the sale order than the one will be used for invoices.
2020-11-13 18:58:27 +01:00

21 lines
767 B
XML

<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright 2020 ACSONE SA/NV
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
<odoo>
<record model="ir.ui.view" id="sale_order_form_view">
<field name="model">sale.order</field>
<field name="inherit_id" ref="account_payment_sale.view_order_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='payment_mode_id']" position="after">
<field name="specific_contract_payment_mode" invisible="1"/>
<field name="contract_payment_mode_id" options="{'no_open': True, 'no_create': True}" attrs="{'invisible': [('specific_contract_payment_mode', '=', False)]}"/>
</xpath>
</field>
</record>
</odoo>