26.02.26
This commit is contained in:
@@ -257,6 +257,24 @@ class Sale(metaclass=PoolMeta):
|
||||
operator = fields.Many2One('party.party',"Operator")
|
||||
our_reference = fields.Char("Our Reference")
|
||||
|
||||
@property
|
||||
def report_terms(self):
|
||||
if self.lines:
|
||||
return self.lines[0].note
|
||||
else:
|
||||
return ''
|
||||
|
||||
@property
|
||||
def report_shipment(self):
|
||||
if self.lines:
|
||||
if len(self.lines[0].lots)>1:
|
||||
shipment = self.lines[0].lots[1].lot_shipment_in
|
||||
if shipment:
|
||||
info = 'B/L ' + shipment.bl_number + ' ' + shipment.note
|
||||
return info
|
||||
else:
|
||||
return ''
|
||||
|
||||
@classmethod
|
||||
def default_viewer(cls):
|
||||
country_start = "Zobiland"
|
||||
|
||||
Reference in New Issue
Block a user