Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MIG] account_payment_pro_multi_store: Migration to 18.0 #57

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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