Avoid deprecated product key field getter
This commit is contained in:
parent
8cc6def93e
commit
08a75f6e9f
|
@ -238,8 +238,7 @@ class ProductView(MasterView):
|
|||
ProductCostCodeAny.product_uuid == model.Product.uuid)
|
||||
|
||||
# product key
|
||||
key = self.rattail_config.product_key()
|
||||
field = self.product_key_fields.get(key, key)
|
||||
field = self.get_product_key_field()
|
||||
g.filters[field].default_active = True
|
||||
g.filters[field].default_verb = 'equal'
|
||||
g.set_sort_defaults(field)
|
||||
|
@ -1253,8 +1252,7 @@ class ProductView(MasterView):
|
|||
}
|
||||
|
||||
def get_panel_fields_main(self, product):
|
||||
key = self.rattail_config.product_key()
|
||||
product_key_field = self.product_key_fields.get(key, key)
|
||||
product_key_field = self.get_product_key_field()
|
||||
fields = [
|
||||
product_key_field,
|
||||
'brand',
|
||||
|
|
Loading…
Reference in a new issue