Skip to content

Commit

Permalink
[FIX]l10n_ar_ux:checks from same company on payment group
Browse files Browse the repository at this point in the history
  • Loading branch information
pablohmontenegro committed Apr 14, 2023
1 parent 6b0a0b4 commit 0b89658
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion l10n_ar_ux/__manifest__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
'name': 'Argentinian Accounting UX',
'version': "16.0.1.1.1",
'version': "16.0.1.1.2",
'category': 'Localization/Argentina',
'sequence': 14,
'author': 'ADHOC SA',
Expand Down
1 change: 1 addition & 0 deletions l10n_ar_ux/views/account_payment_group_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
string="Entregar varios cheques"
icon="fa-plus-circle"
type="action"
context="{'default_company_id': company_id}"
attrs="{'invisible':[('state','not in', ['draft', 'confirmed'])]}"
/>
</field>
Expand Down
1 change: 1 addition & 0 deletions l10n_ar_ux/wizards/account_payment_add_checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ class AccounTpaymentAddChecks(models.TransientModel):
_description = "account.payment.add.checks"

check_ids = fields.Many2many(comodel_name="account.payment")
company_id = fields.Many2one('res.company')

def confirm(self):
self.ensure_one()
Expand Down
2 changes: 1 addition & 1 deletion l10n_ar_ux/wizards/account_payment_add_checks_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<field name="arch" type="xml">
<form>
<field name="check_ids"
domain="[('payment_method_code', '=', 'new_third_party_checks'), ('l10n_latam_check_current_journal_id', '!=', False), ('state', '=', 'posted')]"
domain="[('payment_method_code', '=', 'new_third_party_checks'), ('l10n_latam_check_current_journal_id', '!=', False), ('state', '=', 'posted'), ('company_id', '=', 'company_id')]"
context="{'tree_view_ref': 'l10n_latam_check.view_account_third_party_check_tree'}"
options="{'no_create': True}"/>
<footer>
Expand Down

0 comments on commit 0b89658

Please sign in to comment.