Skip to Content
Menu
This question has been flagged
1 Reply
4156 Views

Odoo Warning - Validation Error Check in date should be greater than the current date.


Please how can this be resolved. 


<field name="checkin_date"/>

                                    <field name="checkout_date"/>

                                    <field name="duration"/>

                                </group>

                                <separator string="Room Lines" colspan="4"/>

                                <field name="room_lines" colspan="4" string="Room Line" nolabel="1" context="{'checkin':checkin_date,'checkout':checkout_date}">

                                    <form string="Room Line">

                                        <notebook>

                                            <page string="Folio Line">

                                                <group col="6" colspan="4">

                                                    <field name="checkout_date"/><field name="checkin_date"/>

Avatar
Discard
Best Answer

It seems a logical constraint is preventing you from entering a check in date that is earlier than today's date. A simple way to circumvent this constraint would be to:

  1. Save the document with a date equal or greater than today

  2. Export the same document with the check in date, change this date from the csv file to set it in the past as per your will

  3. Save and re-import.


Avatar
Discard