Quantity error during export of invoice
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenERP Connector - Magento |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Here is the error I get during the invoice export to magento when there are several positions of the same product in a magento-order:
Traceback (most recent call last):
File "/opt/openerp/
job.
File "/opt/openerp/
self.result = self.func(session, *self.args, **self.kwargs)
File "/opt/openerp/
return invoice_
File "/opt/openerp/
mail_
File "/opt/openerp/
False)
File "/opt/openerp/
email, include_comment])
File "/opt/openerp/
return super(AccountIn
File "/opt/openerp/
result = api.call(method, arguments)
File "/usr/local/
return self.client.
File "/usr/lib/
return self.__
File "/usr/lib/
verbose=
File "/usr/lib/
return self.single_
File "/usr/lib/
return self.parse_
File "/usr/lib/
return u.close()
File "/usr/lib/
raise Fault(*
Fault: <Fault 1: u'"Invalid qty to invoice item ""xxxxxxxx"""'>
If there is a order with several positions of the same product, then the method "_get_lines_info" in magentoerpconne
All quantities are sumed up, which results in the error message above
Changed in openerp-connector-magento: | |
status: | Confirmed → Fix Released |
status: | Fix Released → Won't Fix |
status: | Won't Fix → Confirmed |
This patch addresses the problem with multiple lines which the same product_id.