summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorSwapnesh Shah <swapneshshah111@gmail.com>2020-10-15 17:54:09 +0000
committerSwapnesh Shah <swapneshshah111@gmail.com>2020-10-15 18:18:15 +0000
commit7fbdfba8cbeb2ed724f2493320a5f609d07dca97 (patch)
tree5c395d48238021fe326e23306226e23cadb5a7de /addons
parenta7b9bde99ea98486b4b6d0973a8268b26ed5567d (diff)
[FIX] account: mandatory field journal
Before this commit, `journal_id` field was not required on model/view, Creating record without `journal_id` is not allowed since it is required on `account.move`. Now field is required. closes odoo/odoo#60133 Signed-off-by: Quentin De Paoli (qdp) <qdp@openerp.com>
Diffstat (limited to 'addons')
-rw-r--r--addons/account/wizard/account_payment_register_views.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/account/wizard/account_payment_register_views.xml b/addons/account/wizard/account_payment_register_views.xml
index edf4f5db2c0..16eec30e265 100644
--- a/addons/account/wizard/account_payment_register_views.xml
+++ b/addons/account/wizard/account_payment_register_views.xml
@@ -28,7 +28,7 @@
<group>
<group name="group1">
- <field name="journal_id" widget="selection"/>
+ <field name="journal_id" widget="selection" required="1"/>
<field name="payment_method_id" widget="radio"
required="1"
attrs="{'invisible': [('hide_payment_method', '=', True)]}"/>