how to compare two dates in openerp
i need to compare two dates in openerp i have an erreur in this code please help me to solve this problem
code:
_columns = {
'date_service'
'date_cession'
'is_delayed': fields.
}
def _is_delayed (self, cr, uid, ids,date_
res = {}
for m in self.browse (cr, uid,ids,context):
if m.date_cession < m.date_service:
else:
return res
and in xml
<field name="date_cession" string="Date de Cession" domain filter ="[('is_
Question information
- Language:
- English Edit question
- Status:
- Answered
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask maroua for more information if necessary.