From 137bb82fcd0dada71e9b761846ca2bd38c409e04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 7 Aug 2025 11:11:32 +0200 Subject: [PATCH] Call super for on_change of supplier and customer for Intrastat on shipments Closes #14150 --- modules/account_stock_eu/stock.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/modules/account_stock_eu/stock.py b/modules/account_stock_eu/stock.py index 4c421e8826..cded8c2433 100644 --- a/modules/account_stock_eu/stock.py +++ b/modules/account_stock_eu/stock.py @@ -599,6 +599,10 @@ class ShipmentIn(ShipmentMixin, metaclass=PoolMeta): @fields.depends('supplier') def on_change_supplier(self): + try: + super().on_change_supplier() + except AttributeError: + pass if self.supplier: address = self.supplier.address_get(type='delivery') if address: @@ -662,6 +666,10 @@ class ShipmentOutReturn(ShipmentMixin, metaclass=PoolMeta): @fields.depends('customer') def on_change_customer(self): + try: + super().on_change_customer() + except AttributeError: + pass if self.customer: address = self.customer.address_get(type='delivery') if address: