Send only the required fields when fetching a readonly view definition
issue11134
This commit is contained in:
parent
c571ca877d
commit
bf8c2e5e58
4
stock.py
4
stock.py
|
@ -2,7 +2,7 @@
|
|||
# copyright notices and license terms.
|
||||
from trytond.model import fields
|
||||
from trytond.pool import PoolMeta, Pool
|
||||
from trytond.modules.stock.move import STATES, DEPENDS
|
||||
from trytond.modules.stock.move import STATES
|
||||
|
||||
__all__ = ['StockMove']
|
||||
|
||||
|
@ -11,7 +11,7 @@ class StockMove(metaclass=PoolMeta):
|
|||
__name__ = 'stock.move'
|
||||
|
||||
bulk_product = fields.Many2One('product.product', 'Bulk Product',
|
||||
states=STATES, depends=DEPENDS)
|
||||
states=STATES)
|
||||
|
||||
# TODO: check if is necessary
|
||||
@classmethod
|
||||
|
|
Loading…
Reference in New Issue