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()})
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
1
Dec 24
|
189 | ||
|
2
Mar 24
|
705 | ||
|
1
Mar 24
|
896 | ||
|
2
Mar 24
|
1334 | ||
|
0
Sep 23
|
354 |