03.02.26
This commit is contained in:
@@ -471,10 +471,14 @@ class ShipmentIn(metaclass=PoolMeta):
|
|||||||
lines = [
|
lines = [
|
||||||
"<p>Hi,</p>",
|
"<p>Hi,</p>",
|
||||||
"<p>Please find details below for the requested control</p>",
|
"<p>Please find details below for the requested control</p>",
|
||||||
f"<p><strong>BL number:</strong> {self.bl_number}</p>",
|
|
||||||
f"<p><strong>ETA:</strong> {self.eta}</p>",
|
|
||||||
f"<p><strong>Vessel:</strong> {vessel}</p>",
|
|
||||||
]
|
]
|
||||||
|
lines.append(
|
||||||
|
"<p>"
|
||||||
|
f"<strong>BL number:</strong> {self.bl_number} | "
|
||||||
|
f"<strong>Vessel:</strong> {vessel} | "
|
||||||
|
f"<strong>ETA:</strong> {self.eta}"
|
||||||
|
"</p>"
|
||||||
|
)
|
||||||
|
|
||||||
if self.incoming_moves:
|
if self.incoming_moves:
|
||||||
tot_net = sum([m.lot.get_current_quantity() for m in 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 ""
|
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
|
unit = self.incoming_moves[0].lot.lot_unit_line.symbol
|
||||||
lines.append("<p>"
|
lines.append("<p>"
|
||||||
f"<strong>Customer:</strong> {customer}"
|
f"<strong>Customer:</strong> {customer} | "
|
||||||
"</p>"
|
f"<strong>Invoice Nb:</strong> {inv_nb} | "
|
||||||
)
|
|
||||||
lines.append("<p>"
|
|
||||||
f"<strong>Invoice Nb:</strong> {inv_nb}"
|
|
||||||
"</p>"
|
|
||||||
)
|
|
||||||
lines.append("<p>"
|
|
||||||
f"<strong>Invoice Date:</strong> {inv_date}"
|
f"<strong>Invoice Date:</strong> {inv_date}"
|
||||||
"</p>"
|
"</p>"
|
||||||
)
|
)
|
||||||
@@ -715,8 +713,7 @@ class ShipmentIn(metaclass=PoolMeta):
|
|||||||
attachment = None
|
attachment = None
|
||||||
if sh.add_bl:
|
if sh.add_bl:
|
||||||
attachments = Attachment.search([
|
attachments = Attachment.search([
|
||||||
('res_model', '=', 'stock.shipment.in'),
|
('resource', '=', 'stock.shipment.in,' + str(sh.id)),
|
||||||
('res_id', '=', sh.id),
|
|
||||||
])
|
])
|
||||||
if attachments:
|
if attachments:
|
||||||
attachment = attachments[0]
|
attachment = attachments[0]
|
||||||
|
|||||||
Reference in New Issue
Block a user