add column reference in searchproduct dialog
This commit is contained in:
parent
ceeb9144f5
commit
908ab45af2
|
@ -299,9 +299,13 @@ class SearchProduct(SearchWindow):
|
|||
_cols_width_append(300)
|
||||
|
||||
if parent._config.get('show_brand'):
|
||||
headers['template.brand'] = {'desc': 'BRAND', 'type': 'char'}
|
||||
headers['template.brand'] = {'desc': 'MARCA', 'type': 'char'}
|
||||
_cols_width_append(100)
|
||||
|
||||
if parent.enviroment == 'retail':
|
||||
headers['template.reference'] = {'desc': 'REFERENCIA', 'type': 'char'}
|
||||
_cols_width_append(200)
|
||||
|
||||
price = {'desc': ('PRICE'), 'type': 'number'}
|
||||
if not parent._config.get('encoded_sale_price'):
|
||||
headers['template.sale_price_w_tax'] = price
|
||||
|
|
|
@ -2282,7 +2282,6 @@ class AppWindow(FrontWindow):
|
|||
# products = self.local_db.find_product_elastic(domain, limit=100)
|
||||
# print('ingresa a esta ')
|
||||
# else:
|
||||
print(domain, 'domain')
|
||||
fields = self.dialog_search_products.fields_names
|
||||
products = self.Product.find(domain, fields=fields,
|
||||
limit=100, ctx=self.stock_context)
|
||||
|
|
Loading…
Reference in New Issue