【发布时间】:2019-12-16 09:40:00
【问题描述】:
我正在尝试继承销售模块产品部分的新选项卡下的归档。我尝试并且代码工作正常,但它只是显示选项卡未显示在该选项卡下。让我与您分享我的代码。请帮我找到我失踪的地方
这是我的模块代码
class ProductTemplate (models.Model):
_inherit = 'product.template'
field_name1 = fields.Char (string = "label for the field")
这是我的视图代码
<record id = "product_template_sale" model = "ir.ui.view">
<field name = "name"> product.tamplate.tab </field>
<field name = "model"> product.template </field>
< field name = "inherit_id" ref = "product.product_template_only_form_view" />
<field name = "arch" type = "xml">
<notebook>
<page string = "Barcode">
<filed name = "field_name1" />
</ page>
</notebook>
</field>
</record>
那里显示了我想要开发但归档的新标签条码没有显示在那里。 为什么它没有显示以及我做错了什么请帮助我找到它。
【问题讨论】:
-
检查
拼写错误
标签: inheritance barcode odoo-12