Skip to content

Commit

Permalink
ReAdd order_dicount and inform about the PS regression
Browse files Browse the repository at this point in the history
  • Loading branch information
flotho committed May 31, 2019
1 parent 7f70d13 commit 954daea
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 4 additions & 1 deletion connector_prestashop/components/version_key.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,13 +102,16 @@ class VersionKey1750(Component):
_inherit = '_prestashop.version.key'
_usage = 'prestashop.version.key.1.7.5.0'

# TODO: Don't forget to adpt your PS server due to this regression :
# https://www.prestashop.com/forums/topic/890277-r%C3%A9cup%C3%A9rer-le-d%C3%A9tail-des-r%C3%A9ductions-sur-commande-via-lapi/?tab=comments#comment-2955986


keys = {
'product_option_value': 'product_option_value',
'category': 'categories',
'image': 'image',
'order_slip': 'order_slip',
'order_slip_detail': 'order_slip_details',
'order_discounts': 'cart_rules',
'order_row': 'order_row',
'group': 'groups',
'tax': 'tax',
Expand Down
1 change: 0 additions & 1 deletion connector_prestashop/models/sale_order/importer.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,6 @@ def _get_sale_order_lines(self, record):
return orders

def _get_discounts_lines(self, record):
return {}
if record['total_discounts'] == '0.00':
return []
adapter = self.component(
Expand Down

0 comments on commit 954daea

Please sign in to comment.