From ead1f0248588fa6d68764fdbe1b29957e4af935a Mon Sep 17 00:00:00 2001 From: pilarvargas-tecnativa Date: Fri, 10 Jan 2025 11:03:14 +0100 Subject: [PATCH] [MIG] sale_order_whole_delivered_invoiceability: Migration to version 17.0 TT52356 --- sale_order_whole_delivered_invoiceability/__manifest__.py | 2 +- .../models/sale_order.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sale_order_whole_delivered_invoiceability/__manifest__.py b/sale_order_whole_delivered_invoiceability/__manifest__.py index da026e31d88..34f715ed866 100644 --- a/sale_order_whole_delivered_invoiceability/__manifest__.py +++ b/sale_order_whole_delivered_invoiceability/__manifest__.py @@ -3,7 +3,7 @@ { "name": "Sale Order Whole Delivered Invoiceability", - "version": "15.0.1.0.0", + "version": "17.0.1.0.0", "category": "Sales Management", "license": "AGPL-3", "author": "Tecnativa, Odoo Community Association (OCA)", diff --git a/sale_order_whole_delivered_invoiceability/models/sale_order.py b/sale_order_whole_delivered_invoiceability/models/sale_order.py index f07225df395..18d0d6a3e66 100644 --- a/sale_order_whole_delivered_invoiceability/models/sale_order.py +++ b/sale_order_whole_delivered_invoiceability/models/sale_order.py @@ -20,11 +20,11 @@ def _compute_whole_delivered_invoiceability(self): record.whole_delivered_invoiceability = True @api.depends("whole_delivered_invoiceability") - def _get_invoice_status(self): + def _compute_invoice_status(self): # Intercept the invoice_status computed method to # set it as not invoiceable if the delivered quantity # is less than the ordered quantity. - res = super()._get_invoice_status() + res = super()._compute_invoice_status() for order in self.filtered("whole_delivered_invoiceability"): uncomplete_lines = order.order_line.filtered( lambda line: line.product_id.invoice_policy == "delivery"