Skip to content
Browse files

[IMP] account: traceback in list view of account.move.line

removed move_id from view to prevent traceback.

added readonly and no_create attribute on account_id to be consistent with
form view.


closes #33269

Signed-off-by: Quentin De Paoli (qdp) <>
  • Loading branch information...
hdh-odoo committed May 3, 2019
1 parent 3e1f2c7 commit 43132ed5e6c05784fb9da415202c4fdb12a27f68
Showing with 2 additions and 2 deletions.
  1. +2 −2 addons/account/views/account_move_views.xml
@@ -135,13 +135,12 @@
<field name="arch" type="xml">
<tree string="Journal Items" create="false" editable="bottom">
<field name="date"/>
<field name="move_id" required="0" groups="account.group_account_user"/>
<field name="journal_id" options='{"no_open":True}'/>
<field name="name"/>
<field name="ref"/>
<field name="statement_id" invisible="1"/>
<field name="partner_id"/>
<field name="account_id" options='{"no_open":True}' domain="[('company_id', '=', company_id)]" groups="account.group_account_user"/>
<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="analytic_account_id" groups="account.group_account_user"/>
<field name="analytic_tag_ids" widget="many2many_tags" groups="analytic.group_analytic_tags"/>
<field name="reconciled" invisible="1"/>
@@ -154,6 +153,7 @@
<field name="date_maturity"/>
<field name="company_currency_id" invisible="1"/>
<field name="company_id" invisible="1"/>
<field name="parent_state" invisible="1"/>
<groupby name="move_id">
<field name="state" invisible="1"/>
<button name="edit" type="edit" string="Edit"/>

0 comments on commit 43132ed

Please sign in to comment.
You can’t perform that action at this time.