Hey i'm new to Odoo and i have problem to solve.
I want to stop put the back dates to the Oder date in sales Oder in odoo. how can i do this in odoo. please help me to fix this problem ASAP...
Thank you....!
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hey i'm new to Odoo and i have problem to solve.
I want to stop put the back dates to the Oder date in sales Oder in odoo. how can i do this in odoo. please help me to fix this problem ASAP...
Thank you....!
use the function
_inherit="sale.order"
today_date = fields.Datetime('Date', default=datetime.today())
@api.multi
@api.onchange('date_order')
def _check_date(self):
for order in self:
start_date = order.date_order
end_date = order.today_date
if start_date < end_date:
raise Warning(_('Please select proper Order date.'))
order.update({'date_order': datetime.today()})
Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.
Inscribirse| Publicaciones relacionadas | Respuestas | Vistas | Actividad | |
|---|---|---|---|---|
|
0
dic 25
|
43 | |||
|
2
oct 25
|
3424 | |||
|
3
feb 25
|
3601 | |||
|
1
dic 24
|
2990 | |||
|
2
mar 24
|
3407 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.