Merge lp:~openerp-community/prestashoperpconnect/7.0-pass-vals-to-events into lp:prestashoperpconnect
Status: | Rejected |
---|---|
Rejected by: | Sébastien BEAU - http://www.akretion.com |
Proposed branch: | lp:~openerp-community/prestashoperpconnect/7.0-pass-vals-to-events |
Merge into: | lp:prestashoperpconnect |
Diff against target: |
142 lines (+18/-23) 4 files modified
prestashoperpconnect/product.py (+2/-2) prestashoperpconnect/sale.py (+3/-8) prestashoperpconnect_catalog_manager/product.py (+5/-5) prestashoperpconnect_catalog_manager/product_attribute.py (+8/-8) |
To merge this branch: | bzr merge lp:~openerp-community/prestashoperpconnect/7.0-pass-vals-to-events |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Sébastien BEAU - http://www.akretion.com | Needs Fixing | ||
Review via email: mp+190227@code.launchpad.net |
Commit message
[CHG] adapt the API to the change done in the connector (events on_record_create and on_record_write)
Description of the change
This is the change in the Prestashop Connector to adapt the API change here: https:/
Will need to be merged at the same time.
The same MP exist for the Magento connector at https:/
Unmerged revisions
- 267. By Sébastien BEAU - http://www.akretion.com
-
[CHG] complete the API adaptation with the change done in the connector (events on_record_create and on_record_write)
- 266. By Guewen Baconnier @ Camptocamp
-
[CHG] adapt the API to the change done in the connector (events on_record_create and on_record_write)
Hi Guewen, I ifx some stuff in my local branch, can you change the branch owner so I can directly push in this branch the fix?
Thanks
Here is my diff
=== modified file 'prestashoperpc onnect/ product. py' nnect/product. py 2013-10-08 13:28:25 +0000 nnect/product. py 2013-10-10 06:48:40 +0000
--- prestashoperpco
+++ prestashoperpco
@@ -432,10 +432,10 @@
@on_record_ write(model_ names=' prestashop. product. product' ) product_ stock_updated( session, model_name, record_id, context. get('connector_ no_export' ): fields) .intersection( INVENTORY_ FIELDS) ) vals).intersect ion(INVENTORY_ FIELDS) )
export_ inventory. delay(session, model_name,
record_ id, fields= inventory_ fields,
def prestashop_
- fields=None):
+ vals):
if session.
return
- inventory_fields = list(set(
+ inventory_fields = list(set(
if inventory_fields:
=== modified file 'prestashoperpc onnect/ sale.py' nnect/sale. py 2013-10-09 08:07:30 +0000 nnect/sale. py 2013-10-10 06:52:33 +0000 write(model_ names=' sale.order' ) sale_state_ modified( session, model_name, record_id, pool[model_ name].browse(
state_ list_model = 'sale.order. state.list' pool[state_ list_model] .search(
session. cr,
session. uid,
--- prestashoperpco
+++ prestashoperpco
@@ -262,18 +262,13 @@
# TODO improve me, make the search on the sale order backend only
@on_record_
def prestashop_
- fields=None):
- if 'state' in fields:
- sale = session.
- session.cr,
- session.uid,
- record_id
- )
+ vals):
+ if 'state' in vals:
states = session.
- [('name', '=', sale.state)]
+ [('name', '=', vals['state'])]
)