Odoo 组合价格实现方法
-
想在odoo中实现 组合价格 的功能,比如3A(优惠3)+ 2B(优惠2)= C 一起优惠 13
方案一:
请教了下gavin,gavin建议利用生产中产品bom的功能,订单中 临时完成生产,组合出C产品
这样要安装生产模块
方案二:
如果不安装生产模块,自己bom仿照设计模型sale_bom
sale.bom 里面存组合产品C的信息,有产品对象product_id,bom_line_ids
sale.bom.line 里面存组成产品的i信息A和B,有product_id,bom_id (外键到sale_bom)
这样订单里面每次要读sale_bom信息,然后生成C
[attachimg=3]
方案三:
请教了严总,实现累似 multi image 的功能,就用 multi_image 一个字段,保存产品组合优惠的信息,类似json的格式存取组合信息
这样虽然数据库简单了,但是要用到qweb和js,界面就复杂了
方案四:
发现product images这个模块,是product 一对多 image 的实现,image 保存tile,descrption字段,类似,image保存产品A和B的信息,
那么怎么保存产品A和产品B的信息,字符字段保存A的id或者sku? 那么界面上又该怎么设计选择产品,然后保存id或者sku
[attachimg=4] -
-------------------
方案一:
请教了下gavin,gavin建议利用生产中产品bom的功能,订单中 临时完成生产,组合出C产品
-------------------
很想了解,这里的临时完成生产,我想应该指的自动化,怎么设置才能自动完成。
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login