Declare product.product so Function fields from template are created.

This commit is contained in:
Albert Cervera i Areny 2021-07-09 11:17:29 +02:00
parent dfe64c5062
commit cdc49872b3
2 changed files with 6 additions and 1 deletions

View File

@ -46,6 +46,7 @@ def register():
user.User,
user.UserLocation,
product.Template,
product.Product,
events.event_order.EventOrder,
events.move_event.MoveEvent,
events.feed_inventory.FeedInventory,

View File

@ -3,7 +3,7 @@
from trytond.model import fields
from trytond.pool import PoolMeta
__all__ = ['Template']
__all__ = ['Template', 'Product']
class Template(metaclass=PoolMeta):
@ -15,3 +15,7 @@ class Template(metaclass=PoolMeta):
weaning_price = fields.Numeric('Weaning Price', digits=(16, 4),
help=('Unitary cost for weaning events. It\'s only used when the '
'product is a group product of a farm specie.'))
class Product(metaclass=PoolMeta):
__name__ = 'product.product'