Vouchers: Fix field label inconsistency (Z#23222887) (#5902)

The field Voucher.price_mode is sometimes called "Price mode" and
sometimes "Price effect" in the UI, which is inconsistent. I think
"price effect" is a little clearer, but I don't really care as long as
it is consistent.
This commit is contained in:
Raphael Michel
2026-02-17 10:16:12 +01:00
committed by GitHub
parent cb464ad597
commit 8a7f54795e
3 changed files with 5 additions and 5 deletions

View File

@@ -170,7 +170,7 @@ def test_price_mode_validation(event, item, user):
import_vouchers.apply(
args=(event.pk, inputfile_factory().id, settings, 'en', user.pk)
).get()
assert 'It is pointless to set a value without a price mode.' in str(excinfo.value)
assert 'It is pointless to set a value without a price effect.' in str(excinfo.value)
settings['price_mode'] = 'static:percent'
import_vouchers.apply(