Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd

I'm designing product specification reports (for a food industry) and I have the following issue:

There are several fields in the variant (aka product.product) that will be the same among ALL product variations. eg. use_time, track_production.

The product.product object inherits (decorates actually) the product.template object so everything in the latter is inherited to the former.

What would make sense is to move those fields from product.product to product.template so as to not re-enter the same information for each variant, make updating and reporting easier.

The questions are:

  1. Will writing a module that simply adds the fields in product.template collide with the field definitions in product.product? (I don't know how openERP handles decorator inheritance)

  2. If so, is there a way to remove fields from product.product module (from code in a module, that is)


A workaround would be to add an onchange function for each of these fields so when one gets updated it updates all the other products that are based on the same template, but that beats the whole meaning of product.template + is error prone.


PS. We are running v7

Avatar
Annuleer
Auteur

Anyone, please? I've been searching for 2 days and still haven't found anything.

Gerelateerde posts Antwoorden Weergaven Activiteit
1
mrt. 15
4566
2
aug. 23
3190
0
jun. 23
1835
3
apr. 23
2288
3
dec. 22
33784