Skip to Content
Menu
This question has been flagged

Hello everyone, i am quite new to odoo and javascript development and there is something i would like to do.

My target platform is odoo 14 community.

I'd like to be able to only sell product by 12 or 24 but always show the unit price. in order to do that i'd like to change the behavior of the + button so that it goes from 12 to 24 etc.

Side Note: all the product contains the unit Sale in their title, and i'd like to use that piece of information to use the correct add step.

I know i can achieve this behavior with product packages, or UoM but we have a lot of already defined product we imported, Uom displays the wrong price, and this is a fun challenge to me.

So far it looks like sale.VariantMixin contains a lot of helper function ( i am interessted in the OnClickAddCartJson ) and it would be dumb to override it completely am i right ?

So i am curious on what i should do ?

I hope i provided enough details, thanks a lot for your time.



Avatar
Discard
Related Posts Replies Views Activity
1
Dec 24
106
2
Nov 24
80
1
Oct 24
252
1
Oct 24
313
1
Oct 24
3017