Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
odoo
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cooperatic-foodcoops
odoo
Commits
128a6532
Commit
128a6532
authored
Feb 23, 2022
by
Félicie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
parameter used
parent
96f15a4f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
2 deletions
+20
-2
backend.js
...ette_addons/lacagette_custom_pos/static/src/js/backend.js
+20
-2
No files found.
lacagette_addons/lacagette_custom_pos/static/src/js/backend.js
View file @
128a6532
...
@@ -2,8 +2,22 @@ odoo.define('lacagette_custom_pos.DB', function(require) {
...
@@ -2,8 +2,22 @@ odoo.define('lacagette_custom_pos.DB', function(require) {
"use strict"
;
"use strict"
;
var
PosDB
=
require
(
'point_of_sale.DB'
);
var
PosDB
=
require
(
'point_of_sale.DB'
);
var
Model
=
require
(
'web.DataModel'
);
var
config_parameter
=
new
Model
(
'ir.config_parameter'
);
var
reduce_pos_members_search
=
null
;
PosDB
.
include
({
PosDB
.
include
({
init
:
function
(
parent
,
options
){
this
.
_super
(
parent
,
options
);
config_parameter
.
call
(
'get_param'
,
[
'lacagette_cpo.reduce_pos_members_search'
])
.
then
(
function
(
param
){
if
(
param
!=
undefined
)
{
reduce_pos_members_search
=
param
;
console
.
log
(
'init'
,
reduce_pos_members_search
);
}
})
},
_partner_search_string
:
function
(
partner
){
_partner_search_string
:
function
(
partner
){
var
str
=
partner
.
name
;
var
str
=
partner
.
name
;
//Diacritric search
//Diacritric search
...
@@ -12,9 +26,13 @@ odoo.define('lacagette_custom_pos.DB', function(require) {
...
@@ -12,9 +26,13 @@ odoo.define('lacagette_custom_pos.DB', function(require) {
}
catch
(
e
)
{
}
catch
(
e
)
{
console
.
log
(
e
)
console
.
log
(
e
)
}
}
if
(
partner
.
barcode
){
if
(
reduce_pos_members_search
===
'True'
)
{
if
(
partner
.
barcode
){
str
+=
'|'
+
partner
.
barcode
;
str
+=
'|'
+
partner
.
barcode
;
}
}
}
if
(
partner
.
barcode_base
){
if
(
partner
.
barcode_base
){
str
+=
'|'
+
partner
.
barcode_base
;
str
+=
'|'
+
partner
.
barcode_base
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment