[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:
@@ -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));
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user