コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
4751 ビュー

Hello Odoo community,

I was thinking if there is any example that let say if invoice date is less then current date lock particular fields or field?

Any example or ideas would be appreciated

Thank you

アバター
破棄
最善の回答

Have you tried using the readonly attribute with something like

('date','<=', ((context_today()-datetime.timedelta(days=10)).strftime('%Y-%m-%d')))  

(I haven't - just an idea)

 

アバター
破棄
関連投稿 返信 ビュー 活動
2
1月 24
2567
2
6月 22
4499
2
6月 18
6059
2
11月 16
13672
2
2月 24
12534