Skip to content
Snippets Groups Projects
Commit c578c2e5 authored by Adrien Widart's avatar Adrien Widart
Browse files

[FIX] account: prevent creation of JE on analytic line creation


When the user creates a new account analytic line, he should not be able
to create a new journal item.

To reproduce the error:
(Use demo data)
1. In Settings, enable "Analytic Accounting"
2. Accounting > Configuration > Analytic Accounts > Administrative >
Cost/Revenue
3. Create a new one
4. Click on "Journal Item" list

Error: the list contains the "Create and Edit..." option. Such an action
should not be possible.

OPW-2481197

closes #69881

closes odoo/odoo#70380

X-original-commit: f3ef533ed18c996f7f87c9596135e450479a8c19
Signed-off-by: default avatarQuentin De Paoli (qdp) <qdp@openerp.com>
Signed-off-by: default avatarAdrien Widart <adwid@users.noreply.github.com>
parent 4c9d1882
No related branches found
No related tags found
No related merge requests found
......@@ -18,7 +18,7 @@
<group/> <!-- put Accounting group under Amount group -->
<group name="accounting" string="Accounting">
<field name="general_account_id" options="{'no_create': True}"/>
<field name="move_id"/>
<field name="move_id" options="{'no_create': True}"/>
</group>
</group>
</data>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment