hide odoo report menu and hide the button_cancel on bacnk_statement as the code do not allow to cancel it
This commit is contained in:
committed by
Alexis de Lattre
parent
66532aec75
commit
51b49249f0
@@ -419,6 +419,9 @@ module -->
|
|||||||
<field name="model">account.bank.statement</field>
|
<field name="model">account.bank.statement</field>
|
||||||
<field name="inherit_id" ref="account.view_bank_statement_form"/>
|
<field name="inherit_id" ref="account.view_bank_statement_form"/>
|
||||||
<field name="arch" type="xml">
|
<field name="arch" type="xml">
|
||||||
|
<button name="button_cancel" position="attributes">
|
||||||
|
<attribute name="invisible">1</attribute>
|
||||||
|
</button>
|
||||||
<xpath expr="//field[@name='line_ids']/tree/field[@name='bank_account_id']" position="after">
|
<xpath expr="//field[@name='line_ids']/tree/field[@name='bank_account_id']" position="after">
|
||||||
<!-- The cancel button is provided by the account_cancel module, but we don't want to depend on it -->
|
<!-- The cancel button is provided by the account_cancel module, but we don't want to depend on it -->
|
||||||
<button name="show_account_move" type="object"
|
<button name="show_account_move" type="object"
|
||||||
@@ -515,6 +518,11 @@ because it is useless and confusing -->
|
|||||||
<field name="groups_id" eval="[(6, 0, [ref('base_usability.group_nobody')])]"/>
|
<field name="groups_id" eval="[(6, 0, [ref('base_usability.group_nobody')])]"/>
|
||||||
</record>
|
</record>
|
||||||
|
|
||||||
|
<!-- Remove menu entry "Accounting > Reports > PDF Reports" as there are broken -->
|
||||||
|
<record id="account.menu_finance_legal_statement" model="ir.ui.menu">
|
||||||
|
<field name="groups_id" eval="[(6, 0, [ref('base_usability.group_nobody')])]"/>
|
||||||
|
</record>
|
||||||
|
|
||||||
<!-- Duplicate the menu "Sales > Configuration > Contacts > Bank Accounts"
|
<!-- Duplicate the menu "Sales > Configuration > Contacts > Bank Accounts"
|
||||||
under "Accounting > Configuration", because most users will try to find it there -->
|
under "Accounting > Configuration", because most users will try to find it there -->
|
||||||
<menuitem id="bank_account_account_config_menu" name="Bank Accounts" parent="account.menu_finance_configuration" sequence="9"/>
|
<menuitem id="bank_account_account_config_menu" name="Bank Accounts" parent="account.menu_finance_configuration" sequence="9"/>
|
||||||
|
|||||||
Reference in New Issue
Block a user