[IMP]account_usability_misc:hide create button in bank statement line view

This commit is contained in:
2025-02-26 14:34:06 +01:00
committed by Stéphan Sainléger
parent 8b2c182103
commit c2b0c827a3
3 changed files with 15 additions and 1 deletions

View File

@@ -13,10 +13,10 @@ Use Odoo normal module installation procedure to install
Description Description
=========== ===========
- Hide Create button in Bank Statement Line view without changing rights
- Removes the right to unlink bank statements and bank statement lines for all users - Removes the right to unlink bank statements and bank statement lines for all users
- Changes some french translation - Changes some french translation
- On reconcile view : filter account move lines by defaut with journal type - On reconcile view : filter account move lines by defaut with journal type
- Hide Create button in Bank Statement tree view
Known issues / Roadmap Known issues / Roadmap
====================== ======================

View File

@@ -16,6 +16,7 @@
'views/account_search.xml', 'views/account_search.xml',
'views/account_tree_view.xml', 'views/account_tree_view.xml',
"views/bank_statement_line_views.xml", "views/bank_statement_line_views.xml",
"views/bank_statement_views.xml",
], ],
'installable': True, 'installable': True,
'auto_install': False, 'auto_install': False,

View File

@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<odoo>
<record id="view_bank_statement_tree" model="ir.ui.view">
<field name="name">account.bank.statement.tree</field>
<field name="model">account.bank.statement</field>
<field name="inherit_id" ref="account.view_bank_statement_tree" />
<field name="arch" type="xml">
<tree position="attributes">
<attribute name="create">false</attribute>
</tree>
</field>
</record>
</odoo>