From 1dff3fc564876ad8e7aa7eab7769197ca504515d Mon Sep 17 00:00:00 2001 From: Andreas Osim Date: Thu, 9 Aug 2018 09:40:20 +0200 Subject: [PATCH] remove check for intrastat_id in lot --- ext/custom-addons/dp_custom/models/sale.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/custom-addons/dp_custom/models/sale.py b/ext/custom-addons/dp_custom/models/sale.py index 2bc8655b..bf09e461 100644 --- a/ext/custom-addons/dp_custom/models/sale.py +++ b/ext/custom-addons/dp_custom/models/sale.py @@ -510,8 +510,8 @@ class SaleOrderLine(models.Model): self.env['stock.production.lot'].browse([lot_id.id]).write({ 'intrastat_id': vals.get('intrastat_id') }) - elif vals.get('intrastat_id', False) and not lot_id: - raise UserError(_('Der Intrastrat Code kann nur gesetzt werden wenn ein Lot angegeben wurde.')) + # elif vals.get('intrastat_id', False) and not lot_id: + # raise UserError(_('Der Intrastrat Code kann nur gesetzt werden wenn ein Lot angegeben wurde.')) not_allowed_designbox_keys = ['product_uom_qty', 'product_uom', 'price_unit'] if not self.check_allowed_vals_from_designbox(not_allowed_designbox_keys, vals):