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
  • Loading branch information
rov-adhoc committed Feb 26, 2024
1 parent c404e78 commit 0b666c3
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 1 deletion.
3 changes: 2 additions & 1 deletion account_cashbox_l10n_latam_check/__manifest__.py
Original file line number Diff line number Diff line change
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
7 changes: 7 additions & 0 deletions account_cashbox_l10n_latam_check/i18n/es.po
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,10 @@ msgstr "Requiere Sesión de Caja"
#, python-format
msgid "Your user requires to use payment session on each tranfer"
msgstr ""

#. module: account_cashbox_l10n_latam_check
#: model:ir.actions.act_window,name:account_cashbox_l10n_latam_check.action_view_l10n_latam_payment_mass_transfer
#: model_terms:ir.ui.view,arch_db:account_cashbox_l10n_latam_check.view_account_third_party_check_tree
msgid "Check Transfer"
msgstr "Transferir Cheque"

18 changes: 18 additions & 0 deletions account_cashbox_l10n_latam_check/views/account_payment_view.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<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">
<tree position="inside">
<xpath expr="//header/button[@name='%(l10n_latam_check.action_view_l10n_latam_payment_mass_transfer)d']" position="replace">
<button name="%(l10n_latam_check.action_view_l10n_latam_payment_mass_transfer)d" type="action" string="Check Transfer" groups="account.group_account_invoice"/>
</xpath>
</tree>
</field>
</record>

</odoo>

0 comments on commit 0b666c3

Please sign in to comment.