mirror of
https://gitlab.com/datalifeit/trytond-stock_product_category_location
synced 2023-12-14 04:33:11 +01:00
Arreglar error en la llamada al super de default_warehouse convirtiendolo a @classmethod
This commit is contained in:
parent
727ae66cc3
commit
26011968d6
|
@ -59,8 +59,9 @@ class ProductCategoryLocation(ModelSQL, ModelView):
|
||||||
values['sequence'] = cls._compute_sequence(cls.__table__(), values)
|
values['sequence'] = cls._compute_sequence(cls.__table__(), values)
|
||||||
return super(ProductCategoryLocation, cls).create(vlist)
|
return super(ProductCategoryLocation, cls).create(vlist)
|
||||||
|
|
||||||
@staticmethod
|
# @staticmethod
|
||||||
def default_warehouse():
|
@classmethod
|
||||||
|
def default_warehouse(cls):
|
||||||
loc_id = Transaction().context.get('current_location', None)
|
loc_id = Transaction().context.get('current_location', None)
|
||||||
|
|
||||||
if loc_id:
|
if loc_id:
|
||||||
|
|
Loading…
Reference in a new issue