Skip to Content
Menu
This question has been flagged
2 Replies
2296 Views

Any ideas if this is possible with default vanilla installation?

When creating a sales order I am able to set an expiration date, when this sales order is approved it is sent to projects under the respective project but not the expiration date.

So my question I:

can I make it so the expiration date is the same as the deadline in projects?


Thanks

Avatar
Discard
Best Answer

Hello German,

I think,Your question is second time as I told you previously.

You can override date_deadline field of project.task model.

Please go through below code which will help.

date_deadline = fields.Date(related="sale_line_id.validity_date",string='Deadline', index=True, copy=False, store=True)
Hope it will help.
Thanks.




Email: odoo@aktivsoftware.com

Skype: kalpeshmaheshwari


Avatar
Discard
Author Best Answer

Do I need to SSH to override a field in a model?

Thanks for your answer!

Avatar
Discard