[FIX] loyalty, pos_loyalty: fix typo in loyalty, pos_loyalty

closes odoo/odoo#106830

X-original-commit: 718fabf04247912df450974fad0da679007eb8e9
Signed-off-by: Trinh Jacky (trj) <trj@odoo.com>
This commit is contained in:
niyasraphy
2022-11-30 12:13:52 +01:00
parent 728f41fb97
commit c8f9a4ed6b
2 changed files with 2 additions and 2 deletions
@@ -44,7 +44,7 @@ QUnit.module("Fields", (hooks) => {
serverData,
arch: `
<form>
<field name="program_type" widget="filterable_selection" options="{'whitelisted_values': ['coupon', 'promotion']}"/>
<field name="program_type" widget="filterable_selection" options="{'whitelisted_values': ['coupons', 'promotion']}"/>
</form>`,
});
@@ -23,7 +23,7 @@ ResetProgramsButton.template = 'ResetProgramsButton';
ProductScreen.addControlButton({
component: ResetProgramsButton,
condition: function () {
return this.env.pos.programs.some(p => ['coupon', 'promotion'].includes(p.program_type));
return this.env.pos.programs.some(p => ['coupons', 'promotion'].includes(p.program_type));
}
});