Merge lp:~9-pierre-6/prestashoperpconnect/prestashoperpconnect-inculde-shipping-cost into lp:prestashoperpconnect

Proposed by Pierre Monod
Status: Rejected
Rejected by: Sébastien BEAU - http://www.akretion.com
Proposed branch: lp:~9-pierre-6/prestashoperpconnect/prestashoperpconnect-inculde-shipping-cost
Merge into: lp:prestashoperpconnect
Diff against target: 36 lines (+7/-1)
2 files modified
prestashoperpconnect/sale.py (+3/-0)
prestashoperpconnect/unit/mapper.py (+4/-1)
To merge this branch: bzr merge lp:~9-pierre-6/prestashoperpconnect/prestashoperpconnect-inculde-shipping-cost
Reviewer Review Type Date Requested Status
Sébastien BEAU - http://www.akretion.com Disapprove
Review via email: mp+171489@code.launchpad.net

Description of the change

This new version allow an automatic creation of a sale.order.line when we have a shipping cost on prestashop.
include new field in sale.order and an update of direct mapping

To post a comment you must log in.
Revision history for this message
Sébastien BEAU - http://www.akretion.com (sebastien.beau) wrote :

The project has moved to Github https://github.com/OCA/connector-prestashop.
Please resubmit your MP on github using following procedure https://github.com/OCA/maintainers-tools/wiki/How-to-move-a-Merge-Proposal-to-GitHub.

I put this MP in rejected in the meanwhile.

Regards

review: Disapprove

Unmerged revisions

217. By Pierre Monod

sale order sync:
add shipping cost of prestashop in sale order line openerp

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'prestashoperpconnect/sale.py'
2--- prestashoperpconnect/sale.py 2013-05-13 13:28:00 +0000
3+++ prestashoperpconnect/sale.py 2013-06-26 09:16:32 +0000
4@@ -35,6 +35,9 @@
5 _inherit = 'sale.order'
6
7 _columns = {
8+ 'shipping_amount_tax_excluded': fields.char('shipping_amount_tax_excluded', size=64),
9+ 'shipping_amount_tax_included': fields.char('shipping_amount_tax_included', size=64),
10+ 'shipping_tax_rate': fields.char('shipping_tax_rate', size=64),
11 'prestashop_bind_ids': fields.one2many(
12 'prestashop.res.partner',
13 'openerp_id',
14
15=== modified file 'prestashoperpconnect/unit/mapper.py'
16--- prestashoperpconnect/unit/mapper.py 2013-06-13 15:51:34 +0000
17+++ prestashoperpconnect/unit/mapper.py 2013-06-26 09:16:32 +0000
18@@ -239,6 +239,9 @@
19
20 direct = [
21 ('reference', 'name'),
22+ ('total_shipping_tax_excl', 'shipping_amount_tax_excluded'),
23+ ('total_shipping_tax_incl', 'shipping_amount_tax_included'),
24+ ('carrier_tax_rate', 'shipping_tax_rate'),
25 ]
26
27 def _get_sale_order_lines(self, record):
28@@ -294,7 +297,7 @@
29 return {'partner_shipping_id': self.get_openerp_id(
30 'prestashop.address',
31 record['id_address_delivery']
32- )}
33+ )}
34
35 @mapping
36 def pricelist_id(self, record):