Skip to content

Commit

Permalink
[MIG] account_payment_group_financial_surcharge: Migration to 16.0
Browse files Browse the repository at this point in the history
  • Loading branch information
pablohmontenegro committed Aug 7, 2023
1 parent f2a7e0a commit 5c61dee
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions account_payment_group_financial_surcharge/__manifest__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Payment Groups with Financial Surchange",
"version": "15.0.1.0.1",
"version": "16.0.1.0.0",
"author": "ADHOC SA",
"license": "AGPL-3",
"category": "Payment",
Expand All @@ -20,6 +20,6 @@
],
'images': [
],
'installable': False,
'installable': True,
'auto_install': False,
}
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ def post(self):
wiz.confirm()

# If we are registering a payment of a draft invoice then we need to remove the invoice from the debts of the payment group
# in order to be able to post/reconcile the payment group (this is needed because in odoo 15 we are not able to renconcile
# draft account.move. only can reconile posted ones)
# in order to be able to post/reconcile the payment group (this is needed because in odoo 16 we are not able to renconcile
# draft account.move. only can reconcile posted ones)
if self.env.context.get('open_invoice_payment'):
move_line_ids = self._context.get('to_pay_move_line_ids')
move_lines = move_line_ids and self.env['account.move.line'].browse(move_line_ids) or self.env['account.move.line']
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<field name="inherit_id" ref="account.view_move_form"/>
<field name="arch" type="xml">
<button id="account_invoice_payment_btn" position="attributes">
<attribute name="attrs">{'invisible': ['|', '|', ('state', '=', 'cancel'), ('payment_state', 'not in', ['not_paid', 'patial']), ('move_type', 'not in', ('out_invoice', 'out_refund', 'in_invoice', 'in_refund', 'out_receipt', 'in_receipt'))]}</attribute>
<attribute name="attrs">{'invisible': ['|', '|', ('state', '=', 'cancel'), ('payment_state', 'not in', ['not_paid', 'partial']), ('move_type', 'not in', ('out_invoice', 'out_refund', 'in_invoice', 'in_refund', 'out_receipt', 'in_receipt'))]}</attribute>
<attribute name="context">{'open_invoice_payment': True}</attribute>
</button>
</field>
Expand Down

0 comments on commit 5c61dee

Please sign in to comment.