Show insurance surveyor address

This commit is contained in:
2026-07-28 07:35:59 +02:00
parent c62cee33af
commit a1bb0e8a04
4 changed files with 73 additions and 5 deletions

View File

@@ -7765,6 +7765,25 @@ description</t></is></c>
self.assertEqual(
shipment.report_insurance_surveyor, 'SGS')
def test_shipment_insurance_contact_surveyor_includes_address_once(self):
'insurance contact surveyor displays name and address without duplicate party name'
ShipmentIn = Pool().get('stock.shipment.in')
shipment = ShipmentIn()
address = Mock(
party_name='SGS SA',
party_full_name='SGS SA',
full_address='SGS SA\nRue du Test 1\n1201 Geneva\nSwitzerland')
shipment.surveyor = Mock(
rec_name='SGS',
full_name='SGS SA',
address_get=Mock(return_value=address))
shipment.controller = Mock(rec_name='CONTROL UNION')
shipment.fees = []
self.assertEqual(
shipment.report_insurance_contact_surveyor,
'SGS\nRue du Test 1\n1201 Geneva\nSwitzerland')
def test_shipment_insurance_order_reference_falls_back_to_lot_qt(self):
'insurance order reference can read sale deal through matching lot.qt'
ShipmentIn = Pool().get('stock.shipment.in')