diff options
| author | wan <wan@odoo.com> | 2019-09-18 08:09:59 +0000 |
|---|---|---|
| committer | wan <wan@odoo.com> | 2019-09-18 12:45:59 +0000 |
| commit | 8b24456ecf498fecb2056480ea6fd97c2fddd74e (patch) | |
| tree | 33254279f85e7022234d49717563377d0faf3e87 | |
| parent | 754d2ef6aa8567b91269dc89f180319a0a726e67 (diff) | |
[IMP] account: change order of column of account.move.line trees
Task 2072312
closes odoo/odoo#37017
Signed-off-by: Quentin De Paoli (qdp) <qdp@openerp.com>
| -rw-r--r-- | addons/account/views/account_move_views.xml | 37 |
1 files changed, 20 insertions, 17 deletions
diff --git a/addons/account/views/account_move_views.xml b/addons/account/views/account_move_views.xml index dec9cc46a2a..4efb5f90b6e 100644 --- a/addons/account/views/account_move_views.xml +++ b/addons/account/views/account_move_views.xml @@ -135,27 +135,29 @@ <field name="arch" type="xml"> <tree string="Journal Items" create="false"> <field name="date" optional="show"/> - <field name="move_id" optional="show"/> - <field name="journal_id" options='{"no_open":True}'/> <field name="company_id" groups="base.group_multi_company" options="{'no_create': True}"/> - <field name="name" optional="show"/> - <field name="ref" optional="show"/> - <field name="statement_id" invisible="1"/> - <field name="partner_id" optional="show"/> + <field name="journal_id" options='{"no_open":True}'/> + <field name="move_id" optional="show"/> <field name="account_id" options="{'no_open': True, 'no_create': True}" domain="[('company_id', '=', company_id)]" groups="account.group_account_user" attrs="{'readonly':[('parent_state','=','posted')]}"/> + <field name="partner_id" optional="show"/> + <field name="statement_id" invisible="1"/> + <field name="ref" optional="show"/> + <field name="name" optional="show"/> <field name="analytic_account_id" groups="account.group_account_user" optional="show"/> - <field name="analytic_tag_ids" widget="many2many_tags" groups="analytic.group_analytic_tags"/> - <field name="reconciled" invisible="1"/> - <field name="full_reconcile_id" optional="show"/> - <field name="reconcile_model_id" invisible="1"/> + <field name="analytic_tag_ids" widget="many2many_tags" groups="analytic.group_analytic_tags" optional="hide"/> + <field name="tax_ids" widget="many2many_tags" width="0.5" optional="show" attrs="{'readonly':[('parent_state','=','posted')]}"/> <field name="debit" sum="Total Debit"/> <field name="credit" sum="Total Credit"/> <field name="amount_currency" readonly="True" groups="base.group_multi_currency" optional="hide"/> - <field name="currency_id" readonly="True" invisible="1" /> + <field name="tag_ids" widget="many2many_tags" width="0.5" optional="hide"/> + <field name="full_reconcile_id" optional="show"/> + <field name="reconcile_model_id" invisible="1"/> + <field name="reconciled" invisible="1"/> <field name="date_maturity" optional="hide"/> + <field name="currency_id" readonly="True" invisible="1" /> <field name="company_currency_id" invisible="1"/> - <field name="company_id" invisible="1"/> - <field name="parent_state" invisible="1"/></tree> + <field name="parent_state" invisible="1"/> + </tree> </field> </record> @@ -166,12 +168,13 @@ <field name="arch" type="xml"> <tree string="Journal Items" create="false" expand="context.get('expand', False)"> <field name="date" optional="show" attrs="{'readonly':[('parent_state','=','posted')]}"/> - <field name="ref" optional="hide"/> + <field name="company_id" groups="base.group_multi_company" options="{'no_create': True}" optional="show"/> <field name="move_id" optional="show" readonly="1"/> - <field name="name"/> - <field name="statement_id" invisible="1"/> <field name="account_id" options="{'no_open': True, 'no_create': True}" domain="[('company_id', '=', company_id)]" groups="account.group_account_user" attrs="{'readonly':[('parent_state','=','posted')]}" optional="show"/> + <field name="statement_id" invisible="1"/> <field name="partner_id" optional="show"/> + <field name="ref" optional="hide"/> + <field name="name"/> <field name="reconciled" invisible="1"/> <field name="full_reconcile_id" string="Matching" optional="show" readonly="1"/> <field name="reconcile_model_id" invisible="1"/> @@ -181,7 +184,6 @@ <field name="amount_currency" readonly="True" groups="base.group_multi_currency"/> <field name="currency_id" readonly="True" invisible="1" /> <field name="company_currency_id" invisible="1"/> - <field name="company_id" invisible="1"/> <field name="parent_state" invisible="1"/> <field name="tax_ids" widget="many2many_tags" width="0.5" optional="hide" attrs="{'readonly':[('parent_state','=','posted')]}"/> <field name="tag_ids" widget="many2many_tags" width="0.5" optional="hide"/> @@ -209,6 +211,7 @@ <attribute name="readonly">1</attribute> </field> <field name="full_reconcile_id" position="attributes"><attribute name="optional">hide</attribute></field> + <field name="tax_ids" position="attributes"><attribute name="optional">show</attribute></field> <field name="tag_ids" position="attributes"> <attribute name="optional">show</attribute> <attribute name="string">Tax Grids</attribute> |
