[IMP]account_usability_misc: prevent creation of bank statement lines
This commit is contained in:
51
account_usability_misc/README.rst
Normal file
51
account_usability_misc/README.rst
Normal 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.
|
@@ -1,6 +1,6 @@
|
||||
{
|
||||
'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',
|
||||
'summary': '',
|
||||
'author': '',
|
||||
@@ -8,13 +8,15 @@
|
||||
'license': 'AGPL-3',
|
||||
'category': '',
|
||||
'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': [
|
||||
'security/ir.model.access.csv',
|
||||
'views/account_search.xml',
|
||||
'views/account_menu.xml',
|
||||
'views/account_tree_view.xml',
|
||||
"views/bank_statement_line_views.xml",
|
||||
],
|
||||
'installable': True,
|
||||
'auto_install': False,
|
||||
|
32
account_usability_misc/views/bank_statement_line_views.xml
Normal file
32
account_usability_misc/views/bank_statement_line_views.xml
Normal 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>
|
Reference in New Issue
Block a user