From a705be3b982feaf79507feb03dc32aa6730c4614 Mon Sep 17 00:00:00 2001 From: Sergi Almacellas Abellana Date: Fri, 19 Sep 2025 09:12:53 +0200 Subject: [PATCH] Leave the unit price field empty for the purchase line of production outsourcing Since changeset 65be15fb7d8a the unit price is not required until the purchase is confirmed Closes #14245 --- modules/production_outsourcing/production.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/modules/production_outsourcing/production.py b/modules/production_outsourcing/production.py index 5f5987f813..4c32c4c640 100644 --- a/modules/production_outsourcing/production.py +++ b/modules/production_outsourcing/production.py @@ -1,7 +1,6 @@ # This file is part of Tryton. The COPYRIGHT file at the top level of # this repository contains the full copyright notices and license terms. -from decimal import Decimal from itertools import groupby from trytond.i18n import gettext @@ -218,8 +217,6 @@ class Production(metaclass=PoolMeta): factor * self.routing.supplier_quantity) line.purchase = purchase line.on_change_product() - if line.unit_price is None: - line.unit_price = round_price(Decimal(0)) return line @classmethod