Skip to content

Commit

Permalink
[MIG] account_payment_pro_multi_store: Migration to 18.0
Browse files Browse the repository at this point in the history
closes #57

Signed-off-by: Camila Vives <[email protected]>
  • Loading branch information
docker-odoo authored and rov-adhoc committed Dec 26, 2024
1 parent 609a9cb commit 5a79a80
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions account_payment_pro_multi_store/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
##############################################################################
{
'name': 'Payment Pro Multi Stores',
'version': '17.0.1.1.0',
'version': "18.0.1.0.0",
'category': 'Accounting',
'sequence': 14,
'summary': '',
Expand All @@ -38,7 +38,7 @@
'demo': [
'demo/res_store_demo.xml',
],
'installable': False,
'installable': True,
'auto_install': False,
'application': False,
}
2 changes: 2 additions & 0 deletions account_payment_pro_multi_store/models/account_payment.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ def _get_to_pay_move_lines_domain(self):
res = super()._get_to_pay_move_lines_domain()
if self.store_id.only_allow_reonciliaton_of_this_store:
res += [('store_id', '=', self.store_id.id)]
if self.partner_id.commercial_partner_id.id:
self.with_context(restrict_store_id=self.store_id.id)._compute_available_journal_ids()
elif self.store_id:
res += ['|', ('store_id', '=', False), ('store_id.only_allow_reonciliaton_of_this_store', '=', False)]
return res
Expand Down

0 comments on commit 5a79a80

Please sign in to comment.