Shipment creation bug

This commit is contained in:
2026-06-07 05:45:21 +02:00
parent 06f9a62dbc
commit 801e53f953
2 changed files with 19 additions and 1 deletions

View File

@@ -5427,6 +5427,17 @@ class PurchaseTradeTestCase(ModuleTestCase):
'vessel': None,
})
def test_shipment_in_write_ignores_empty_record_groups(self):
'shipment write normalization keeps empty internal writes as no-op'
ShipmentIn = Pool().get('stock.shipment.in')
self.assertEqual(
ShipmentIn._normalize_transport_write_args((
[],
{'cost_price': Decimal('12.34')},
)),
[])
def test_invoice_report_transportation_uses_truck_label(self):
'invoice_melya Transportation displays By Truck for truck shipments'
Invoice = Pool().get('account.invoice')