Skip to Content
Menu
This question has been flagged
2 Replies
1674 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"/>



Here are the few line giving the error...Solution well be  appreciated 

Avatar
Discard

The Warning may rise based on your checkin date and checkout date ,because you cannnot enter checkout date before check in date (if you dont want this validation remove ,onchange api from checkin,checkout function:

Please use a meaningful title.

Best Answer

you cannot do it in context, you have to use on_change attribute in view and handle in models.

if you are looking for an example of it, dig into account module.

Avatar
Discard
Best Answer

your problem is not clear is what you can better explain

Avatar
Discard