Skip to content

Commit

Permalink
[MIG] sale_order_type_invoice_policy: Migration to 15.0
Browse files Browse the repository at this point in the history
  • Loading branch information
vib-adhoc committed Jul 25, 2022
1 parent 3fd02e2 commit 18aba7c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions sale_order_type_invoice_policy/__manifest__.py
Expand Up @@ -19,7 +19,7 @@
##############################################################################
{
'name': 'Sale Order Type Invoicing Policy',
'version': '13.0.1.0.0',
'version': "15.0.1.0.0",
'category': 'Sale Management',
'author': 'ADHOC SA',
'website': 'www.adhoc.com.ar',
Expand All @@ -40,6 +40,6 @@
'views/stock_picking_views.xml',
'data/sale_order_type_data.xml',
],
'installable': False,
'installable': True,
'auto_install': False,
}
2 changes: 1 addition & 1 deletion sale_order_type_invoice_policy/models/stock_picking.py
Expand Up @@ -43,7 +43,7 @@ def _check_sale_paid(self):
precision = self.env['decimal.precision'].precision_get(
'Product Unit of Measure')
invoice_status = self.sale_id.mapped(
'order_line.invoice_lines.move_id.invoice_payment_state')
'order_line.invoice_lines.move_id.payment_state')
if (set(invoice_status) - set(['paid'])) or any(
not float_is_zero(line.qty_to_invoice, precision_digits=precision)
for line in self.sale_id.order_line):
Expand Down

0 comments on commit 18aba7c

Please sign in to comment.