You need to change few following changes in your file of core module.
addons/mrp/mrp.py
In above file first find class mrp_production
and _columns = {
and field is name
remove required=True and readonly=Ture and than find _defaults =
and than comment on name
.
After than write below create method.
def create(self, cr, uid, vals, context=None):
vals['name'] = self.pool.get('ir.sequence').get(cr, uid, 'mrp.production')
return super(mrp_production, self).create(cr, uid, vals, context=context)
addons/mrp/mrp_view.xml
In this file find <h1>Manufacturing Order <field name="name" class="oe_inline"/></h1>
and replace with this
<h1>Manufacturing Order <field name="name" class="oe_inline" readonly="1"/></h1>
After than restart your server with upgrade database and module name mrp
.
Hope this will solve your problem.