Skip to content
Snippets Groups Projects
Commit 718fabf0 authored by niyasraphy's avatar niyasraphy
Browse files

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


closes odoo/odoo#106779

Signed-off-by: default avatarTrinh Jacky (trj) <trj@odoo.com>
parent 58373508
No related branches found
No related tags found
No related merge requests found
......@@ -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>`,
});
......
......@@ -21,7 +21,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));
}
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment