File "/odoo/odoo-server/openerp/fields.py", line 1431, in convert_to_cache
raise ValueError("Wrong value for %s: %r" % (self, value))
ParseError: "Wrong value for ir.sequence.code: 'hospital.group'" while parsing /odoo/custom/addons/hospital/data/sequence.xml:5, near
<record id="sequence_hospital" model="ir.sequence">
<field name="name">Hospital patient code</field>
<field name="code">hospital.group</field>
<field name="prefix">PH/</field>
<field name="padding">4</field>
<field name="number_next">1</field>
<field name="number_increment">1</field>
</record>
sequence file is
<openerp>
<data noupdate="1">
<record id="sequence_hospital" model="ir.sequence">
<field name="name">Hospital patient code</field>
<field name="code">hospital.group</field>
<field name="prefix">PH/</field>
<field name="padding">4</field>
<field name="number_next">1</field>
<field name="number_increment">1</field>
</record>
</data>
</openerp>
models
name_seq = fields.Char(string="Order reference", readonly=True, copy=False, index=True, default='New')
@api.model
def create(self, values):
if values.get('name_seq', 'New') == 'New':
values['name_seq']=self.env['ir.sequence'].next_by_code('hospital.group') or 'New'
return super(HospitalPatient, self).create(values)
please help me hw to resolve this