[FIX] account: Purchase journal and Sale journal
A purchase journal cannot be created without a default expense account A sale journal cannot be created without a default income account opw:2431278 closes odoo/odoo#64854 X-original-commit: c0af2df89dbe8f0cea384f15b2a7e3d53a16dfc6 Signed-off-by: Simon Goffin (sig) <sig@openerp.com>
This commit is contained in:
@@ -60,11 +60,11 @@
|
||||
<field name="loss_account_id" attrs="{'invisible': [('type', '!=', 'cash')]}"/>
|
||||
<!-- Sales -->
|
||||
<field name="default_account_id" string="Default Income Account"
|
||||
attrs="{'required': [('id', '!=', False), ('type', '=', 'sale')], 'invisible': [('type', '!=', 'sale')]}"
|
||||
attrs="{'required': [('type', '=', 'sale')], 'invisible': [('type', '!=', 'sale')]}"
|
||||
groups="account.group_account_readonly"/>
|
||||
<!-- Purchase -->
|
||||
<field name="default_account_id" string="Default Expense Account"
|
||||
attrs="{'required': [('id', '!=', False), ('type', '=', 'purchase')], 'invisible': [('type', '!=', 'purchase')]}"
|
||||
attrs="{'required': [('type', '=', 'purchase')], 'invisible': [('type', '!=', 'purchase')]}"
|
||||
groups="account.group_account_readonly"/>
|
||||
<field name="refund_sequence" attrs="{'invisible': [('type', 'not in', ['sale', 'purchase'])]}"/>
|
||||
<field name="code"/>
|
||||
|
||||
Reference in New Issue
Block a user