Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
2637 Lượt xem

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

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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


Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

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

Thanks for your answer!

Ảnh đại diện
Huỷ bỏ