Add Packing list template

This commit is contained in:
2026-04-08 09:46:01 +02:00
parent 50a8c6328f
commit da01249f66
8 changed files with 1856 additions and 0 deletions

View File

@@ -510,11 +510,13 @@ class PurchaseTradeTestCase(ModuleTestCase):
'shipment report paths are resolved from purchase_trade configuration'
shipping_report = Pool().get('stock.shipment.in.shipping', type='report')
insurance_report = Pool().get('stock.shipment.in.insurance', type='report')
packing_report = Pool().get('stock.shipment.in.packing_list', type='report')
config_model = Mock()
config_model.search.return_value = [
Mock(
shipment_shipping_report_template='si_custom.fodt',
shipment_insurance_report_template='insurance_custom.fodt',
shipment_packing_list_report_template='packing_list_custom.fodt',
)
]
@@ -535,6 +537,12 @@ class PurchaseTradeTestCase(ModuleTestCase):
'report': 'stock/insurance.fodt',
}),
'stock/insurance_custom.fodt')
self.assertEqual(
packing_report._resolve_configured_report_path({
'name': 'Packing List',
'report': 'stock/packing_list.fodt',
}),
'stock/packing_list_custom.fodt')
def test_shipment_insurance_helpers_use_fee_and_controller(self):
'shipment insurance helpers read insurance fee and shipment context'