Skip to content

Commit

Permalink
[ADD] account_cashbox_l10n_latam_check: modify the
Browse files Browse the repository at this point in the history
view_l10n_latam_payment_mass_transfer_form in order to
add permission to account.group_account_invoice

closes #461

Signed-off-by: Filoquin adhoc <maq@adhoc.com.ar>
  • Loading branch information
rov-adhoc committed Feb 28, 2024
1 parent c404e78 commit f523086
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
3 changes: 2 additions & 1 deletion account_cashbox_l10n_latam_check/__manifest__.py
Expand Up @@ -2,7 +2,7 @@
{
"name": "Check Cashbox management",
"summary": "Add cashbox for check operations",
"version": "16.0.1.0.1",
"version": "16.0.1.0.2",
"category": "Accounting",
"website": "www.adhoc.com.ar",
"author": "ADHOC SA",
Expand All @@ -13,6 +13,7 @@
],
"demo": [],
"data": [
'views/account_payment_view.xml',
'wizards/l10n_latam_payment_mass_transfer_views.xml',
],
"installable": True,
Expand Down
16 changes: 16 additions & 0 deletions account_cashbox_l10n_latam_check/views/account_payment_view.xml
@@ -0,0 +1,16 @@
<odoo>

<!-- Third party check Views and menus -->

<record model="ir.ui.view" id="view_account_third_party_check_tree">
<field name="name">account.check.tree</field>
<field name="model">account.payment</field>
<field name="inherit_id" ref="l10n_latam_check.view_account_third_party_check_tree"/>
<field name="arch" type="xml">
<xpath expr="//header/button[@name='%(l10n_latam_check.action_view_l10n_latam_payment_mass_transfer)d']" position="attributes">
<attribute name="groups" separator="," add="account.group_account_invoice"/>
</xpath>
</field>
</record>

</odoo>

0 comments on commit f523086

Please sign in to comment.