Hi , I'm trying to increment a field by 1 , but it is incremented by 2. here is my code:
patient.py
Num_dossier = fields.Char('Numéro du dossier', required=True, readonly=True)
_defaults = {
lambda self,cr,uid,context={}: self.pool.get('ir.sequence').get(cr, uid, 'numero.dossier'),
}
my_sequence.xml
<record model="ir.sequence.type" id="seq_type_patient">
<field name="name">patient_sequence</field>
<field name="code">numero.dossier</field>
</record>
<record id="seq_patient" model="ir.sequence">
<field name="name">patient</field>
<field name="code">numero.dossier</field>
<field name="number_increment">1</field>
</record>