Hide balance_sheet and income_statement for non root type
This commit is contained in:
1 parent
ea72588301
commit
e2f7e0dfaa
2 files changed
+9
-5
No files matched your search
+6
-2
@@ -31,8 +31,12 @@ class Type(OSV):
|
||||
help='Use to order the account type')
|
||||
#TODO fix digits depend of the currency
|
||||
amount = fields.Function('get_amount', digits=(16, 2), string='Amount')
|
||||
balance_sheet = fields.Boolean('Balance Sheet')
|
||||
income_statement = fields.Boolean('Income Statement')
|
||||
balance_sheet = fields.Boolean('Balance Sheet', states={
|
||||
'invisible': "parent",
|
||||
})
|
||||
income_statement = fields.Boolean('Income Statement', states={
|
||||
'invisible': "parent",
|
||||
})
|
||||
display_balance = fields.Selection([
|
||||
('debit-credit', 'Debit - Credit'),
|
||||
('credit-debit', 'Credit - Debit'),
|
||||
|
||||
+3
-3
@@ -43,14 +43,14 @@
|
||||
<label name="sequence"/>
|
||||
<field name="sequence"/>
|
||||
<newline/>
|
||||
<label name="display_balance"/>
|
||||
<field name="display_balance"/>
|
||||
<newline/>
|
||||
<label name="balance_sheet"/>
|
||||
<field name="balance_sheet"/>
|
||||
<newline/>
|
||||
<label name="income_statement"/>
|
||||
<field name="income_statement"/>
|
||||
<newline/>
|
||||
<label name="display_balance"/>
|
||||
<field name="display_balance"/>
|
||||
</form>
|
||||
]]>
|
||||
</field>
|
||||
|
||||
Reference in new issue
Block a user