mirror of
https://github.com/OCA/stock-logistics-reporting.git
synced 2025-02-16 17:13:21 +02:00
[REF] auto-fix conventions
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -18,4 +18,4 @@
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
###############################################################################
|
||||
import stock_report
|
||||
from . import stock_report
|
||||
|
||||
@@ -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 ''
|
||||
|
||||
|
||||
Reference in New Issue
Block a user