[IMP]account_usability_misc: prevent creation of bank statement lines

This commit is contained in:
2024-07-30 10:53:52 +02:00
parent b9ddf46922
commit f329a27f4b
3 changed files with 87 additions and 2 deletions

View File

@@ -0,0 +1,51 @@
===============
account_usability_misc
===============
Various chantes to improve the usability of Account application
Installation
============
Use Odoo normal module installation procedure to install
``account_usability_misc``.
Description
===========
- Hideq Create button in Bank Statement Line view without changing rights
- Removes the right to unlink bank statements and bank statement lines for all users
- Changes some french translation
Known issues / Roadmap
======================
None yet.
Bug Tracker
===========
Bugs are tracked on `our issues website <https://github.com/elabore-coop/bank_statement_line_prevent_creating/issues>`_. In case of
trouble, please check there if your issue has already been
reported. If you spotted it first, help us smashing it by providing a
detailed and welcomed feedback.
Credits
=======
Contributors
------------
* `Elabore <mailto:laetitia.dacosta@elabore.coop>`
Funders
-------
The development of this module has been financially supported by:
* Elabore (https://elabore.coop)
Maintainer
----------
This module is maintained by Elabore.

View File

@@ -1,6 +1,6 @@
{ {
'name': 'Account Usability Misc', 'name': 'Account Usability Misc',
'version': '16.0.1.1.0', 'version': '16.0.1.2.0',
'description': 'account usability misc : improve account usability in v16', 'description': 'account usability misc : improve account usability in v16',
'summary': '', 'summary': '',
'author': '', 'author': '',
@@ -8,13 +8,15 @@
'license': 'AGPL-3', 'license': 'AGPL-3',
'category': '', 'category': '',
'depends': [ 'depends': [
'account','base','account_reconcile_oca','account_check_deposit','account_cash_deposit' 'account','base','account_reconcile_oca','account_check_deposit','account_cash_deposit','account_statement_base',
], ],
'data': [ 'data': [
'security/ir.model.access.csv', 'security/ir.model.access.csv',
'views/account_search.xml', 'views/account_search.xml',
'views/account_menu.xml', 'views/account_menu.xml',
'views/account_tree_view.xml', 'views/account_tree_view.xml',
"views/bank_statement_line_views.xml",
], ],
'installable': True, 'installable': True,
'auto_install': False, 'auto_install': False,

View File

@@ -0,0 +1,32 @@
<?xml version="1.0" encoding="UTF-8"?>
<odoo>
<data>
<!-- Hide Create button in line view -->
<record id="account_bank_statement_line_tree_inherit_hide_create" model="ir.ui.view">
<field name="name">account.bank.statement.line.tree.inherit.hide.create</field>
<field name="model">account.bank.statement.line</field>
<field name="inherit_id" ref="account_statement_base.account_bank_statement_line_tree"/>
<field name="arch" type="xml">
<xpath expr="//tree" position="attributes">
<attribute name="create">false</attribute>
</xpath>
</field>
</record>
<!-- Hide Create button in kanban view -->
<record id="account_bank_statement_line_kanban_inherit_hide_create" model="ir.ui.view">
<field name="name">account.bank.statement.line.kanban.inherit.hide.create</field>
<field name="model">account.bank.statement.line</field>
<field name="inherit_id" ref="account_reconcile_oca.bank_statement_line_reconcile_view"/>
<field name="arch" type="xml">
<xpath expr="//kanban" position="attributes">
<attribute name="create">false</attribute>
</xpath>
</field>
</record>
</data>
</odoo>