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

In my company a period closure is made every month, and it is sought that once this has been done, it is no longer possible to modify documents of the period that has just closed. For example, you cannot edit or modify a document that is dated August / 2020

アバター
破棄
最善の回答

Is your question about Accounting Documents or Sales Order Documents?

Edits to Sales Orders never affect Accounting, it is just the corresponding Invoice that does.


Sales Order Documents:

LOCK the Sales Order and create (via attrs) an invisible condition on the UNLOCK button? 

See https://www.odoo.com/documentation/user/13.0/purchase/purchases/rfq/lock_orders.html for details (even though this link is for Purchase Orders, the same feature is available for Sales Orders)

You can see that the domain for "Today's Activities" we use context_today() to get the current date.

[('activity_ids.date_deadline', '=', context_today().strftime('%Y-%m-%d'))]


Accounting Documents:

This is the function of Lock Dates - see https://www.odoo.com/documentation/user/13.0/accounting/fiscality/fiscal_year/close_fiscal_year.html for a discussion


 

アバター
破棄
関連投稿 返信 ビュー 活動
0
3月 25
868
2
10月 20
7354
3
12月 24
22954
2
3月 22
5312
1
8月 21
5604