Skip to content

Commit 657c45d

Browse files
committed
fix_price product_variant
1 parent 53becff commit 657c45d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

import_helper_generic/wizards/import_helper_generic.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,13 @@ def product_import_generic(self):
318318
vals["standard_price"] = float(
319319
vals["standard_price"]
320320
)
321+
if vals.get("list_price") and hasattr(
322+
p, "fix_price"
323+
):
324+
vals["fix_price"] = vals["list_price"]
325+
vals.pop("list_price")
326+
elif vals.get("list_price"):
327+
vals.pop("list_price")
321328
p.write(vals)
322329
continue
323330
else:

0 commit comments

Comments
 (0)