Skip to Content
Menu
This question has been flagged
1 Reply
7828 Views

How can we set 'Requested Date' field for default value other than current date, using odoo studio.


Avatar
Discard
Hi Niyas,

Thanks for your revert.

Here, I would like to set a default for the requested date field, 30 days after the confirmation date.
Here, I can't set this condition

Thanks

On Sat, Apr 13, 2019 at 10:53 AM Niyas Raphy <niyasraphyk@gmail.com> wrote:

A new question Setting Default Date on Help has been posted. Click here to access the question :

See question

Sent by Odoo S.A. using Odoo.

def your_function_name(self):
# your logic goes here
return some_date

from_date = fields.Date(string="From Date" ,default=your_function_name)

Best Answer

Hi,

You can set a default value for a field by activating the developer mode, select the value in the corresponding field and click the lady debugger button near logged in users name in the menu bar and click Set Defaults.


See here in this video:https://youtu.be/cQYHiGAd9k4

Thanks

Avatar
Discard

Hi,

What if we want a default value for the date that matches the actualdate instead of a static set value ?

Thanks in advance,