Commit d70ec7c1 by Félicie

parameter changed

parent 832245d2
......@@ -4,8 +4,4 @@
<field name="key">lacagette_cpo.proxy_url</field>
<field name="value">https://tools.lacagette-coop.fr/inventory/inventory/generate_inventory_list</field>
</record>
<record id="reduce_pos_members_search" model="ir.config_parameter">
<field name="key">lacagette_cpo.reduce_pos_members_search</field>
<field name="value">False</field>
</record>
</odoo>
......@@ -7,6 +7,8 @@
'description': """
Recherche par num. de coop\n
(la recherche inclut le code barre ou non,\n
le réglage se fait avec la clé lacagette_custom_pos.reduce_pos_members_search)\n
Après une recherche, le champ perd le focus\n
Utilisation du pavé numérique du clavier sur le panier\n
Personnalisation de la popup d'erreur "codebarre non reconnu" :\n
......
<?xml version="1.0"?>
<odoo noupdate="0">
<record id="reduce_pos_members_search" model="ir.config_parameter">
<field name="key">lacagette_custom_pos.reduce_pos_members_search</field>
<field name="value">False</field>
</record>
</odoo>
......@@ -9,7 +9,7 @@ odoo.define('lacagette_custom_pos.DB', function(require) {
PosDB.include({
init: function(parent, options){
this._super(parent,options);
config_parameter.call('get_param', ['lacagette_cpo.reduce_pos_members_search'])
config_parameter.call('get_param', ['lacagette_custom_pos.reduce_pos_members_search'])
.then(function(param){
if (param != undefined) {
reduce_pos_members_search = param;
......@@ -26,7 +26,7 @@ odoo.define('lacagette_custom_pos.DB', function(require) {
console.log(e)
}
if (reduce_pos_members_search === 'True') {
if (reduce_pos_members_search === 'False') {
if(partner.barcode){
str += '|' + partner.barcode;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment