From 90d0e489519fb10d6e7d3f9561c3ea18a0a601b7 Mon Sep 17 00:00:00 2001 From: Jared Kipe Date: Fri, 11 Sep 2020 14:24:39 -0700 Subject: [PATCH] [IMP] rma_product_cores: Add hook to prevent rma invoicing due to upgrade. --- rma_product_cores/__manifest__.py | 2 +- rma_product_cores/models/rma.py | 4 ++++ rma_product_cores/views/portal_templates.xml | 4 ++-- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/rma_product_cores/__manifest__.py b/rma_product_cores/__manifest__.py index 1d02720e..810c31f3 100755 --- a/rma_product_cores/__manifest__.py +++ b/rma_product_cores/__manifest__.py @@ -3,7 +3,7 @@ { 'name': 'RMA - Product Cores', 'author': 'Hibou Corp. ', - 'version': '13.0.1.0.0', + 'version': '13.0.1.0.1', 'license': 'OPL-1', 'category': 'Tools', 'summary': 'RMA Product Cores', diff --git a/rma_product_cores/models/rma.py b/rma_product_cores/models/rma.py index 7cda5acf..1d52747c 100644 --- a/rma_product_cores/models/rma.py +++ b/rma_product_cores/models/rma.py @@ -120,6 +120,10 @@ class RMA(models.Model): return res2 return res + def _invoice_values_product_core_sale(self): + # the RMA invoice API will not be used as invoicing will happen at the SO level + return False + def _get_dirty_core_from_service_line(self, line): original_product_line = line.core_line_id return original_product_line.product_id.product_core_id diff --git a/rma_product_cores/views/portal_templates.xml b/rma_product_cores/views/portal_templates.xml index 84c02b56..ff1818d8 100644 --- a/rma_product_cores/views/portal_templates.xml +++ b/rma_product_cores/views/portal_templates.xml @@ -42,8 +42,8 @@
- Product image + Product Image + Product Image