mirror of
https://gitlab.com/flectra-community/account-closing.git
synced 2024-11-22 13:42:06 +00:00
69 lines
2.6 KiB
XML
69 lines
2.6 KiB
XML
|
<?xml version="1.0" encoding="utf-8" ?>
|
||
|
<!--
|
||
|
Copyright 2013-2020 Akretion France (http://www.akretion.com/)
|
||
|
@author: Alexis de Lattre <alexis.delattre@akretion.com>
|
||
|
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||
|
-->
|
||
|
<flectra>
|
||
|
<record id="view_move_line_form" model="ir.ui.view">
|
||
|
<field name="name">start_end_dates.view_move_line_form</field>
|
||
|
<field name="model">account.move.line</field>
|
||
|
<field name="inherit_id" ref="account.view_move_line_form" />
|
||
|
<field name="arch" type="xml">
|
||
|
<field name="date_maturity" position="after">
|
||
|
<field name="must_have_dates" invisible="1" />
|
||
|
<field
|
||
|
name="start_date"
|
||
|
attrs="{'required': [('must_have_dates', '=', True)]}"
|
||
|
/>
|
||
|
<field
|
||
|
name="end_date"
|
||
|
attrs="{'required': [('must_have_dates', '=', True)]}"
|
||
|
/>
|
||
|
</field>
|
||
|
</field>
|
||
|
</record>
|
||
|
<record id="view_move_form" model="ir.ui.view">
|
||
|
<field name="name">start_end_dates.view_move_form</field>
|
||
|
<field name="model">account.move</field>
|
||
|
<field name="inherit_id" ref="account.view_move_form" />
|
||
|
<field name="arch" type="xml">
|
||
|
<xpath
|
||
|
expr="//field[@name='invoice_line_ids']/tree/field[@name='quantity']"
|
||
|
position="before"
|
||
|
>
|
||
|
<field name="must_have_dates" invisible="1" />
|
||
|
<field
|
||
|
name="start_date"
|
||
|
attrs="{'required': [('must_have_dates', '=', True)]}"
|
||
|
/>
|
||
|
<field
|
||
|
name="end_date"
|
||
|
attrs="{'required': [('must_have_dates', '=', True)]}"
|
||
|
/>
|
||
|
</xpath>
|
||
|
<xpath
|
||
|
expr="//field[@name='invoice_line_ids']/form//field[@name='analytic_tag_ids']"
|
||
|
position="before"
|
||
|
>
|
||
|
<field name="must_have_dates" invisible="1" />
|
||
|
<field
|
||
|
name="start_date"
|
||
|
attrs="{'required': [('must_have_dates', '=', True)]}"
|
||
|
/>
|
||
|
<field
|
||
|
name="end_date"
|
||
|
attrs="{'required': [('must_have_dates', '=', True)]}"
|
||
|
/>
|
||
|
</xpath>
|
||
|
<xpath
|
||
|
expr="//field[@name='line_ids']/tree/field[@name='credit']"
|
||
|
position="after"
|
||
|
>
|
||
|
<field name="start_date" />
|
||
|
<field name="end_date" />
|
||
|
</xpath>
|
||
|
</field>
|
||
|
</record>
|
||
|
</flectra>
|