Skip to content

Commit

Permalink
[FIX] account: some options should be available with the billing app …
Browse files Browse the repository at this point in the history
…only

As long as they involve objects usable in billing.
  • Loading branch information
qdp-odoo committed Oct 19, 2017
1 parent 0cf3b12 commit d2b5af9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion addons/account/views/account_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -322,10 +322,12 @@
<field name="type_control_ids" widget="many2many_tags"/>
<field name="account_control_ids" widget="many2many_tags"/>
</group>
<group string="Miscellaneous" groups="account.group_account_user">
<group string="Miscellaneous">
<field name="inbound_payment_method_ids" widget="many2many_checkboxes" attrs="{'invisible': [('type', 'not in', ['bank', 'cash'])]}"/>
<field name="outbound_payment_method_ids" widget="many2many_checkboxes" attrs="{'invisible': [('type', 'not in', ['bank', 'cash'])]}"/>
<field name="group_invoice_lines" attrs="{'invisible': [('type', 'not in', ['sale', 'purchase'])]}"/>
</group>
<group string="Accounting App Options" groups="account.group_account_user">
<field name="profit_account_id" attrs="{'invisible': [('type', '!=', 'cash')]}"/>
<field name="loss_account_id" attrs="{'invisible': [('type', '!=', 'cash')]}"/>
<field name="show_on_dashboard" groups="base.group_no_one"/>
Expand Down

0 comments on commit d2b5af9

Please sign in to comment.