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
3 years ago
by
Félicie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
parameter used
parent
96f15a4f
2 merge requests
!30
2175 search coop number
,
!38
Intégration développement Coopératic pour La Cagette
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
backend.js
...ette_addons/lacagette_custom_pos/static/src/js/backend.js
+18
-0
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) {
"use strict"
;
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
({
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
){
var
str
=
partner
.
name
;
//Diacritric search
...
...
@@ -12,9 +26,13 @@ odoo.define('lacagette_custom_pos.DB', function(require) {
}
catch
(
e
)
{
console
.
log
(
e
)
}
if
(
reduce_pos_members_search
===
'True'
)
{
if
(
partner
.
barcode
){
str
+=
'|'
+
partner
.
barcode
;
}
}
if
(
partner
.
barcode_base
){
str
+=
'|'
+
partner
.
barcode_base
;
}
...
...
This diff is collapsed.
Click to expand it.
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