aboutsummaryrefslogtreecommitdiffstats
path: root/gsxws/orders.py
diff options
context:
space:
mode:
authorFilipp Lepalaan <f@230.to>2013-05-15 12:09:18 +0300
committerFilipp Lepalaan <f@230.to>2013-05-15 12:09:18 +0300
commit0b2ab0ee81ea9028a8bf0da809d586e36664ec1e (patch)
tree89a5f66e68706e5741cec1d202a277cec8459d8c /gsxws/orders.py
parent47db98b2449009f8bf80fe9d30fb6bfe4a331341 (diff)
downloadpy-gsxws-0b2ab0ee81ea9028a8bf0da809d586e36664ec1e.tar.gz
py-gsxws-0b2ab0ee81ea9028a8bf0da809d586e36664ec1e.tar.bz2
py-gsxws-0b2ab0ee81ea9028a8bf0da809d586e36664ec1e.zip
Dont' set empty values in from_xml()
Diffstat (limited to 'gsxws/orders.py')
-rw-r--r--gsxws/orders.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/gsxws/orders.py b/gsxws/orders.py
index 791fe58..cc1f422 100644
--- a/gsxws/orders.py
+++ b/gsxws/orders.py
@@ -34,7 +34,8 @@ class StockingOrder(GsxObject):
self.orderLines = list()
def add_part(self, part_number, quantity):
- self.orderLines.append(OrderLine(partNumber=part_number, quantity=quantity))
+ part = OrderLine(partNumber=part_number, quantity=quantity)
+ self.orderLines.append(part)
return self
def submit(self):