Hello , I have done research on this and did not find anything relevant , my requirement is i want my custom date in the create_date field in svl , Can somebody please help me out with this .
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Kế toán
- Tồn kho
- PoS
- Project
- MRP
Câu hỏi này đã bị gắn cờ
1
Trả lời
7228
Lượt xem
hello
maybe a little bit late...
create_date are protected field form odoo core therefore the only way to achieve this would be to modify the field by sql after having created it.
exemple :
env.cr.execute("UPDATE stock_valuation_layer set create_date = '%s' WHERE id=%s" % (record.date, svl_id.id))
Bạn có hứng thú với cuộc thảo luận không? Đừng chỉ đọc, hãy tham gia nhé!
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng ký