Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions viin_brand_mrp/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
# always loaded
'data': [
'data/digest_data.xml',
'views/mrp_production_views.xml',
],
'installable': True,
'auto_install': True,
Expand Down
15 changes: 15 additions & 0 deletions viin_brand_mrp/views/mrp_production_views.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<odoo>
<record id="mrp_production_form_inherit" model="ir.ui.view">
<field name="name">mrp.production.form</field>
<field name="model">mrp.production</field>
<field name="inherit_id" ref="mrp.mrp_production_form_view"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='product_qty']" position="attributes">
<attribute name="style">width: 50% !important;</attribute>
</xpath>
<xpath expr="//field[@groups='uom.group_uom']" position="attributes">
<attribute name="style">width: 50% !important;</attribute>
</xpath>
</field>
</record>
</odoo>