I have a promotion that I need applied as follows:
Buy 4 x Item A and get 1 x Item B for free
However, the promotion should not be limited to one per order, so if the sale includes 12 item A, the reward should be 3 x item B.
In the base configuration, even when the sale includes 12 item A, the reward is still only 1 x item B.
¿How can I configure this behaviour?
Thank you!
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Księgowość
- Zapasy
- PoS
- Project
- MRP
To pytanie dostało ostrzeżenie
1
Odpowiedz
3032
Widoki
You could override the write method to display the correct amount of items or define an onchange method on the item count
onchange sounds easier
@api.onchange('items')
def _onchange_items(self):
promotion_item_amount = len(self.items)//4
Podoba Ci się ta dyskusja? Dołącz do niej!
Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!
Zarejestruj sięPowiązane posty | Odpowiedzi | Widoki | Czynność | |
---|---|---|---|---|
|
1
mar 24
|
3323 | ||
|
1
lis 21
|
2810 | ||
|
0
paź 24
|
1183 | ||
|
0
cze 24
|
1476 | ||
|
1
maj 24
|
3027 |