Files
Odoo-18.0-20251222/account_invoice_transmit_method/views/res_partner.xml
tocmo0nlord adbe430761
Some checks failed
pre-commit / pre-commit (push) Has been cancelled
tests / Detect unreleased dependencies (push) Has been cancelled
tests / test with OCB (push) Has been cancelled
tests / test with Odoo (push) Has been cancelled
Initial commit: Odoo 18.0-20251222 extra-addons
2026-03-13 20:43:25 +00:00

39 lines
1.7 KiB
XML

<?xml version="1.0" encoding="utf-8" ?>
<!--
Copyright 2017-2022 Akretion France (http://www.akretion.com/)
@author: Alexis de Lattre <alexis.delattre@akretion.com>
Copyright 2021-2022 Camptocamp SA (https://www.camptocamp.com).
@author: Iván Todorovich <ivan.todorovich@camptocamp.com>
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
-->
<odoo>
<record id="view_partner_property_form" model="ir.ui.view">
<field name="model">res.partner</field>
<field name="inherit_id" ref="account.view_partner_property_form" />
<field name="arch" type="xml">
<field name="property_payment_term_id" position="after">
<field name="customer_invoice_transmit_method_id" widget="selection" />
</field>
<field name="property_supplier_payment_term_id" position="after">
<field name="supplier_invoice_transmit_method_id" widget="selection" />
</field>
<field name="child_ids" position="attributes">
<attribute name="context" operation="update">
{
"default_customer_invoice_transmit_method_code": customer_invoice_transmit_method_code,
"default_supplier_invoice_transmit_method_code": supplier_invoice_transmit_method_code,
}
</attribute>
</field>
<xpath
expr="//field[@name='child_ids']/form//field[@name='email']"
position="attributes"
>
<attribute
name="required"
>customer_invoice_transmit_method_code == 'mail' and type == 'invoice'</attribute>
</xpath>
</field>
</record>
</odoo>