コンテンツへスキップ
メニュー
この質問にフラグが付けられました

In prior versions there was no action to open the product.template model, just the product.product. In v8 there are two actions, one shows product.template and one shows product.product. Several fields have been moved to a product.template view. For what I've seen if I want to extend the product view I have to be careful which fields I'm referencing, if those on the template or on the product. For example if I want to add a field after the "list_price" field, I must inherit the template view and thus this new custom field must be necesasrily defined in the product.template model or it won't work ("custom field" doesn't exist"). Yet I see that from the default product.template view I can see the default_code which is a product.product field.

Furthermore if I want to have some on_change actions both in the product_template and the product_product models it seems I have to define these methods in both models.

Am I missing something regarding all this? I seem to not understand howthe product.template-product.product type of inheritance really works.

アバター
破棄
関連投稿 返信 ビュー 活動
1
5月 21
6351
1
3月 18
7969
1
12月 16
5601
1
8月 15
5088
1
3月 15
4035