when I click a button which run a function A;
I want to show two piece of information which are in different formates by "warning"; how shall I do that?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
when I click a button which run a function A;
I want to show two piece of information which are in different formates by "warning"; how shall I do that?
Hi,
Please check this example
raise exceptions.ValidationError(_("Cannot create new attendance record for %(empl_name)s,
the employee was already checked in on %(datetime)s") % {
'empl_name': attendance.employee_id.name,
'datetime': fields.Datetime.to_string(fields.Datetime.context_timestamp(self, fields.Datetime.from_string(attendance.check_in))),
})
thank you; it is exactly what I want to
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up