From fc9e81a15fafccd955c20c7e59eaa48664b623b0 Mon Sep 17 00:00:00 2001 From: moylop260 Date: Thu, 13 Nov 2014 21:53:52 -0600 Subject: [PATCH] [REF] auto-fix conventions --- stock_bill_of_lading_webkit/report/stock_report.py | 2 ++ stock_picking_webkit/report/__init__.py | 2 +- stock_picking_webkit/report/stock_report.py | 4 ++++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/stock_bill_of_lading_webkit/report/stock_report.py b/stock_bill_of_lading_webkit/report/stock_report.py index 8a536dd..21c8b84 100644 --- a/stock_bill_of_lading_webkit/report/stock_report.py +++ b/stock_bill_of_lading_webkit/report/stock_report.py @@ -26,6 +26,7 @@ import time class BillOfLadingOut(report_sxw.rml_parse): + def _get_invoice_address(self, picking): if picking.sale_id: return picking.sale_id.partner_invoice_id @@ -64,6 +65,7 @@ report_sxw.report_sxw('report.webkit.bill_of_lading_out', class BillOfLadingIn(report_sxw.rml_parse): + def _get_warehouse_address(self, picking): # By default, print the warehouse selected from the related # purchase order diff --git a/stock_picking_webkit/report/__init__.py b/stock_picking_webkit/report/__init__.py index 3bbbe54..068d4fa 100644 --- a/stock_picking_webkit/report/__init__.py +++ b/stock_picking_webkit/report/__init__.py @@ -18,4 +18,4 @@ # along with this program. If not, see . # ############################################################################### -import stock_report +from . import stock_report diff --git a/stock_picking_webkit/report/stock_report.py b/stock_picking_webkit/report/stock_report.py index ad3d30c..e66ec92 100644 --- a/stock_picking_webkit/report/stock_report.py +++ b/stock_picking_webkit/report/stock_report.py @@ -28,7 +28,9 @@ import time class NullMove(object): + """helper class to generate empty lines in the delivery report""" + def __init__(self): self.product_id = NullObj() self.picking_id = NullObj() @@ -36,8 +38,10 @@ class NullMove(object): class NullObj(object): + """the null obj has any attribute you want with an empty string as the value""" + def __getattr__(self, attr): return ''