Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
3 Antwoorden
11058 Weergaven


/data/sequence.xml

<?xml version='1.0' encoding='utf-8'?>
<odoo>
    <data noupdate="1">
        <record id="seq_hospital_patient" model="ir.sequence">
            <field name="name">Patient Reference</field>
            <field name="code">hospital.patient.sequence</field>
            <field name="prefix">PN</field>
            <field name="padding">3</field>
            <field name="company_id" eval="False"/>
        </record>
    </data>
    <data noupdate="1">    
        <record id="seq_hospital_appointment" model="ir.sequence">
            <field name="name">Appointment ID</field>
            <field name="code">hospital.appointment.sequence</field>
            <field name="prefix"> PA </field>
            <field name="padding">3</field>
            <field name="company_id" eval="False"/>
        </record>

    </data>
</odoo>


Sequence has been created and Active





Avatar
Annuleer
Beste antwoord

Hi,

Everything seems to be correct , make sure that there is no extra space get entered in the code of the sequence, just copy paste the code of the sequence from the user interface and add it your code and see.

As rest of the sequence are working correctly this also has to work.

You can see a use case here, which seems you have added in the question: How to Add New Sequence in odoo


Thanks

Avatar
Annuleer
Auteur

Thanks it worked

Beste antwoord

If you have multiple companies, switching the company can be a solution

Avatar
Annuleer
Auteur Beste antwoord

Yes there was a space in the Sequence Prefix


Avatar
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
2
okt. 25
1472
3
okt. 23
9706
1
sep. 23
3698
3
sep. 23
4121
1
mei 23
2653