Skip to content

Commit

Permalink
[FIX] sale_coupon: sdd sequence to the list view
Browse files Browse the repository at this point in the history
The coupon program applies only one rule based on the sequence.

Steps to reproduce the bug:

Create a promotion with 5% if untaxed amount is greater than 1,000$
Create a promotion with 10% if untaxed amount is greater than 2,000$
Create a promotion with 15% if untaxed amount is greater than 3,000$
Create a SO for 3500$
Click on "Update Promotions"

Bug:

The 5% promotion is applied because it is the first one in the list.

Solution:

Display the sequence field in the list view with a handle to sort the different
promotions.

closes odoo/enterprise#3209
  • Loading branch information
max3903 authored and mart-e committed Jan 15, 2019
1 parent 284eb62 commit 375c061
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions views/sale_coupon_program_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@
<field name="model">sale.coupon.program</field>
<field name="arch" type="xml">
<tree>
<field name="sequence" widget="handle"/>
<field name="name"/>
<field name="active"/>
</tree>
Expand Down

0 comments on commit 375c061

Please sign in to comment.