Skip to content

Commit

Permalink
[IMP] account: swap date and invoice_date
Browse files Browse the repository at this point in the history
We currently have two date fields, "date" and "invoice_date". Before this pr,
the "date" column was before the "invoice_date" field. We think it's more
logical to have "invoice_date" before the other, since it's the legal date.

What has been done:
- Swap in the tree view the two columns
- Swap in the search view the two columns

closes odoo#140878

Related: odoo/enterprise#50107
Signed-off-by: Olivier Colson (oco) <oco@odoo.com>
  • Loading branch information
malb-odoo committed Nov 4, 2023
1 parent 1da277f commit 3bc350a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions addons/account/views/account_move_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,8 @@
<field name="arch" type="xml">
<tree string="Journal Items" create="false" edit="true" expand="context.get('expand', False)" multi_edit="1" sample="1">
<field name="move_id" column_invisible="True"/>
<field name="date" readonly="1"/>
<field name="invoice_date" string="Invoice Date" optional="hide"/>
<field name="date" readonly="1"/>
<field name="company_id" column_invisible="True"/>
<field name="company_id" groups="base.group_multi_company" readonly="1" optional="hide"/>
<field name="journal_id" readonly="1" options='{"no_open":True}' optional="hide"/>
Expand Down Expand Up @@ -313,8 +313,8 @@
('name', 'ilike', self), ('ref', 'ilike', self), ('account_id', 'ilike', self), ('partner_id', 'ilike', self)]"/>
<field name="name"/>
<field name="ref"/>
<field name="date"/>
<field name="invoice_date"/>
<field name="date"/>
<field name="date_maturity" string="Due Date"/>
<field name="discount_date" string="Discount Date"/>
<field name="balance" string="Amount" filter_domain="['|', ('credit', '=', self), ('debit', '=', self)]"/>
Expand Down Expand Up @@ -461,8 +461,8 @@
<tree string="Journal Entries" sample="1" decoration-info="state == 'draft'" expand="context.get('expand', False)">
<field name="company_currency_id" column_invisible="True"/>
<field name="made_sequence_hole" column_invisible="True"/>
<field name="date" readonly="state in ['cancel', 'posted']"/>
<field name="invoice_date" string="Invoice Date" optional="hide" readonly="state != 'draft'"/>
<field name="date" readonly="state in ['cancel', 'posted']"/>
<field name="name" decoration-danger="made_sequence_hole"/>
<field name="partner_id" optional="show" readonly="state != 'draft'"/>
<field name="ref" optional="show"/>
Expand Down Expand Up @@ -1402,8 +1402,8 @@
<field name="name" string="Journal Entry" filter_domain="['|', '|', ('name', 'ilike', self), ('ref', 'ilike', self), ('partner_id', 'ilike', self)]"/>
<field name="name"/>
<field name="ref"/>
<field name="date"/>
<field name="invoice_date"/>
<field name="date"/>
<field name="amount_total"/>
<field name="partner_id"/>
<field name="journal_id"/>
Expand Down

0 comments on commit 3bc350a

Please sign in to comment.