-
-
Notifications
You must be signed in to change notification settings - Fork 247
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
account_invoice_start_end_dates: add start/end dates in tree view of …
…move lines The 2 new fields are hidden by default
- Loading branch information
1 parent
0b46abe
commit 5879beb
Showing
3 changed files
with
38 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
account_invoice_start_end_dates/views/account_move_line.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<!-- | ||
Copyright 2013-2022 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). | ||
--> | ||
<odoo> | ||
<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" required="must_have_dates" /> | ||
<field name="end_date" required="must_have_dates" /> | ||
</field> | ||
</field> | ||
</record> | ||
<record id="view_move_line_tree" model="ir.ui.view"> | ||
<field name="name">start_end_dates.view_move_line_tree</field> | ||
<field name="model">account.move.line</field> | ||
<field name="inherit_id" ref="account.view_move_line_tree" /> | ||
<field name="arch" type="xml"> | ||
<field name="date_maturity" position="after"> | ||
<field name="must_have_dates" column_invisible="1" /> | ||
<field name="start_date" optional="hide" /> | ||
<field name="end_date" optional="hide" /> | ||
</field> | ||
</field> | ||
</record> | ||
</odoo> |