From b9e8fec1282119603de3b5194571aaa00556fa58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Barnab=C3=A9?= Date: Wed, 20 Oct 2021 13:10:49 +0200 Subject: [PATCH] bugfix autocomplete --- app/models/p_product_ref.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/p_product_ref.rb b/app/models/p_product_ref.rb index 31ae21e..a4ef1e7 100644 --- a/app/models/p_product_ref.rb +++ b/app/models/p_product_ref.rb @@ -43,7 +43,7 @@ class PProductRef < ApplicationRecord :id => {:name => "Id", :reorder => true}, :p_product_cat => {:name => "Catégorie", :reorder => true, :sort_name => "cc_p_product_cat_id",}, :ref => {:name => "Référence"}, - :cc_name => {:name => "Produit"}, + # :cc_name => {:name => "Produit"}, # :description => {:name => "Description"}, :cc_name => {:name => "Nom référence"}, :ct_price_ht => {:name => "Prix de vente", :as => :currency}, @@ -204,7 +204,7 @@ class PProductRef < ApplicationRecord end def member_label - "#{self.ref} | #{self.p_product.name} - #{self.ct_sub_name} - #{self.p_product_color.name if self.p_product_color} | #{self.ca_name}" + "#{self.ref} | #{self.cc_name}" end def ca_sorecop