Merge lp:~mathieu-julius/prestashoperpconnect/prestashoperpconnect-get-good-taxes-in-lines into lp:prestashoperpconnect
Proposed by
Mathieu Vatel - Julius Network Solutions
Status: | Rejected |
---|---|
Rejected by: | Sébastien BEAU - http://www.akretion.com |
Proposed branch: | lp:~mathieu-julius/prestashoperpconnect/prestashoperpconnect-get-good-taxes-in-lines |
Merge into: | lp:prestashoperpconnect |
Diff against target: |
159 lines (+40/-11) 2 files modified
prestashoperpconnect/sale.py (+31/-11) prestashoperpconnect/unit/mapper.py (+9/-0) |
To merge this branch: | bzr merge lp:~mathieu-julius/prestashoperpconnect/prestashoperpconnect-get-good-taxes-in-lines |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Sébastien BEAU - http://www.akretion.com | Needs Fixing | ||
Mathieu Vatel - Julius Network Solutions | Needs Resubmitting | ||
Guewen Baconnier @ Camptocamp | Needs Fixing | ||
Review via email: mp+174663@code.launchpad.net |
Description of the change
This is a fix to get the good taxes in the lines (delivery line) or even in sale order line if there's no taxes in prestashop.
The taxes in delivery lines should be improved by put the function in e-commerce-addons
To post a comment you must log in.
Unmerged revisions
- 239. By Mathieu Vatel - Julius Network Solutions
-
[IMP] - inherit the method which has been merge in the revno 333 of e-commerce-addons branch
- 238. By Mathieu Vatel - Julius Network Solutions
-
[IMP] move the method in the good model (sale.order)
- 237. By Mathieu Vatel - Julius Network Solutions
-
[IMP] make possible to get the lines with or without taxes (which is defined in prestashop)
The whole _add_order_ extra_line seems redundant with what we have in the connector_ ecommerce.
I think that you probably need to re-use most of what is done in connector_ecommerce (extracting / splitting the things in methods that you need to reuse).
Do you use this method? I can't find a single call to it.
By the way, for information, I started a refactoring of the code which add the extra order lines because 2 things bother me in the actual code: /code.launchpad .net/~openerp- connector- core-editors/ openerp- connector/ 7.0-e-commerce- addons- refactor- so-extra- lines /code.launchpad .net/~openerp- connector- core-editors/ openerp- connector/ 7.0-magentoerpc onnect- refactor- so-extra- lines /code.launchpad .net/~openerp- connector- core-editors/ openerp- connector/ 7.0-connector- mapper- refactor
- it should not be part of the 'sale.order' model but rather use the ConnectorUnit mechanism
- the temporary fields put in the record and then removed back really really hurt me
The branches are here:
https:/
https:/
https:/