Hello,
I add a new field into my form, the field is not visible.
<!-- My form view -->
<field name="res_model">stock.production.lot</field>
<field name="inherit_id" ref="stock.view_production_lot_form" />
<field name="arch" type="xml">
<xpath expr="//field[@name='product_id']" position="before"> <!-- or After -->
<field name="newField"/>
</xpath>
</field>
<!-- My manifest file -->
'depends': ['stock','product'],
<!-- My module class -->
class ProductionLot(models.Model):
_inherit = '''stock.production.lot'''
newField = fields.Char(string='New field ', required=False, store=False)
<!-- Parent view "stock.view_production_lot_form" -->
<form>
<sheet>
<group>
</group>
<field name="product_id"/>
</group>
</group>
</sheet>
</form>
Help please.