[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#70399 X-original-commit: f3ef533ed18c996f7f87c9596135e450479a8c19 Signed-off-by: Quentin De Paoli (qdp) <qdp@openerp.com> Signed-off-by: Adrien Widart <adwid@users.noreply.github.com>
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user