Commit 4ba74318 by Solo Group

pln

1 parent 7db32d78
...@@ -46,8 +46,9 @@ class VendorClass(object): ...@@ -46,8 +46,9 @@ class VendorClass(object):
self.response = None self.response = None
self.vend_inv_no = invoice_det and invoice_det.vend_inv_no or None self.vend_inv_no = invoice_det and invoice_det.vend_inv_no or None
self.status = invoice_det and invoice_det.status or 0 self.status = invoice_det and invoice_det.status or 0
if hasattr(invoice_det , 'serial_number'):
self.serial_number = invoice_det and invoice_det.serial_number or None self.serial_number = invoice_det and hasattr(invoice_det, 'serial_number') \
and invoice_det.serial_number or None
def save_log(self, typ): def save_log(self, typ):
# if not self.partner_log: # if not self.partner_log:
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!