diff options
| author | Adrien Widart <awt@odoo.com> | 2021-05-04 10:46:29 +0000 |
|---|---|---|
| committer | Adrien Widart <awt@odoo.com> | 2021-05-05 09:00:38 +0000 |
| commit | c578c2e52dcf347de9734462d3dcf7b7df042c60 (patch) | |
| tree | 3c77469dff61d62f452fcf3200d027986afa57df | |
| parent | 4c9d1882ca249cae8babdff1ed0f4ca13943b484 (diff) | |
[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: Quentin De Paoli (qdp) <qdp@openerp.com>
Signed-off-by: Adrien Widart <adwid@users.noreply.github.com>
| -rw-r--r-- | addons/account/views/account_analytic_view.xml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/account/views/account_analytic_view.xml b/addons/account/views/account_analytic_view.xml index c91e6070079..0488534d2c8 100644 --- a/addons/account/views/account_analytic_view.xml +++ b/addons/account/views/account_analytic_view.xml @@ -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> |
