Sum all rule apply lines

#047787
This commit is contained in:
Raimon Esteve 2021-10-28 19:51:57 +02:00
parent 9286a2fa15
commit e2b7673cf8
2 changed files with 4 additions and 2 deletions

View File

@ -87,7 +87,7 @@ class Sale(metaclass=PoolMeta):
lines = []
for rule in rules:
lines = rule.apply(self)
lines += rule.apply(self)
if lines and rule.stop_further:
break
return lines

View File

@ -5,11 +5,13 @@ copyright notices and license terms. -->
<form col="4">
<label name="name"/>
<field name="name"/>
<group colspan="2" col="4" id="booleans">
<group colspan="2" col="6" id="booleans">
<label name="active"/>
<field name="active"/>
<label name="stop_further"/>
<field name="stop_further"/>
<label name="sequence"/>
<field name="sequence"/>
</group>
<label name="from_date"/>
<field name="from_date"/>