From 5cfe750282fe33a9bba7b5ba8195cac85c8391d8 Mon Sep 17 00:00:00 2001 From: VoicuStefan2001 Date: Mon, 27 Jan 2025 10:05:21 +0200 Subject: [PATCH] [17.0][UPD] deltatech_record_type --- README.md | 2 +- deltatech_record_type/__manifest__.py | 2 +- deltatech_record_type/models/sale.py | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d9a70cfe8..2c4d1992f 100644 --- a/README.md +++ b/README.md @@ -124,7 +124,7 @@ addon | version | maintainers | summary | price [deltatech_queue_job](deltatech_queue_job/) | 17.0.1.0.2 | [![dhongu](https://github.com/dhongu.png?size=30px)](https://github.com/dhongu) | Deltatech Queue Job | Free [deltatech_ral](deltatech_ral/) | 17.0.1.0.3 | | RAL | Free [deltatech_reception_note](deltatech_reception_note/) | 17.0.0.1.0 | [![dhongu](https://github.com/dhongu.png?size=30px)](https://github.com/dhongu) | Batch reception note | Free -[deltatech_record_type](deltatech_record_type/) | 17.0.1.1.3 | [![VoicuStefan2001](https://github.com/VoicuStefan2001.png?size=30px)](https://github.com/VoicuStefan2001) | Manage multiple record types | Free +[deltatech_record_type](deltatech_record_type/) | 17.0.1.1.4 | [![VoicuStefan2001](https://github.com/VoicuStefan2001.png?size=30px)](https://github.com/VoicuStefan2001) | Manage multiple record types | Free [deltatech_replenish](deltatech_replenish/) | 17.0.1.0.0 | [![dhongu](https://github.com/dhongu.png?size=30px)](https://github.com/dhongu) | Deltatech Replenish | Free [deltatech_report_packaging](deltatech_report_packaging/) | 17.0.1.0.2 | [![cojocariudaniel1](https://github.com/cojocariudaniel1.png?size=30px)](https://github.com/cojocariudaniel1) [![dhongu](https://github.com/dhongu.png?size=30px)](https://github.com/dhongu) | Report Packaging | Free [deltatech_report_prn](deltatech_report_prn/) | 17.0.1.0.4 | [![dhongu](https://github.com/dhongu.png?size=30px)](https://github.com/dhongu) | Raport PRN | Free diff --git a/deltatech_record_type/__manifest__.py b/deltatech_record_type/__manifest__.py index 68ece66ca..88860afcc 100644 --- a/deltatech_record_type/__manifest__.py +++ b/deltatech_record_type/__manifest__.py @@ -6,7 +6,7 @@ { "name": "Terrabit - Record Type", "summary": "Manage multiple record types", - "version": "17.0.1.1.3", + "version": "17.0.1.1.4", "author": "Terrabit, Voicu Stefan", "website": "https://www.terrabit.ro", "category": "Generic Modules/Other", diff --git a/deltatech_record_type/models/sale.py b/deltatech_record_type/models/sale.py index f7964a537..03a2559cf 100644 --- a/deltatech_record_type/models/sale.py +++ b/deltatech_record_type/models/sale.py @@ -9,6 +9,8 @@ class SaleOrder(models.Model): def action_confirm(self): for order in self: + if hasattr(order, "website_id") and order.website_id: + continue if not self.env.user.has_group("deltatech_record_type.group_confirm_order_without_record_type"): if not order.so_type: raise exceptions.UserError(