diff --git a/modules/purchase_trade/stock.py b/modules/purchase_trade/stock.py index 1302cf4..ec94e37 100755 --- a/modules/purchase_trade/stock.py +++ b/modules/purchase_trade/stock.py @@ -471,10 +471,14 @@ class ShipmentIn(metaclass=PoolMeta): lines = [ "
Hi,
", "Please find details below for the requested control
", - f"BL number: {self.bl_number}
", - f"ETA: {self.eta}
", - f"Vessel: {vessel}
", ] + lines.append( + "" + f"BL number: {self.bl_number} | " + f"Vessel: {vessel} | " + f"ETA: {self.eta}" + "
" + ) if self.incoming_moves: tot_net = sum([m.lot.get_current_quantity() for m in self.incoming_moves]) @@ -483,14 +487,8 @@ class ShipmentIn(metaclass=PoolMeta): customer = self.incoming_moves[0].lot.sale_line.sale.party.name if self.incoming_moves[0].lot.sale_line else "" unit = self.incoming_moves[0].lot.lot_unit_line.symbol lines.append("" - f"Customer: {customer}" - "
" - ) - lines.append("" - f"Invoice Nb: {inv_nb}" - "
" - ) - lines.append("" + f"Customer: {customer} | " + f"Invoice Nb: {inv_nb} | " f"Invoice Date: {inv_date}" "
" ) @@ -715,8 +713,7 @@ class ShipmentIn(metaclass=PoolMeta): attachment = None if sh.add_bl: attachments = Attachment.search([ - ('res_model', '=', 'stock.shipment.in'), - ('res_id', '=', sh.id), + ('resource', '=', 'stock.shipment.in,' + str(sh.id)), ]) if attachments: attachment = attachments[0]