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 494c07d20d
commit 755a13b056
2 changed files with 5 additions and 0 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

@ -13,3 +13,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'