mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
new option allow to set different payment mode for the contracts generated from the sale order than the one will be used for invoices.
21 lines
767 B
XML
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>
|