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

I am currently using version 13 Enterprise of Odoo and I need the journal sequences not to take the system date, but the accounting record date.

For example, when a transaction is recorded after the end of the month, the entry bears the date of the following month in progress and not the month in which the movement must be recorded in accounting. This makes it difficult for me to keep a monthly physical file (required by the regulatory entity) for example in month 05 I would have journals with the number 06 instead of 05.

Does anyone have an idea how to solve this? Because the sequence of the diaries parameterized in the system does not allow me to do it.

Example as it is created:

MMI-BILL-%(range_year)s-%(month)s-


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

You can't do that  with a sequence because its for current dates only not past dates.

You can use an alternative way. All sequences fields are regular text fields (Char) .

Make the field editable by going In the form view of the record (Debug mode), click on the debug and Edit View: Form. Usually, the field is "name" or "number", depending on the model. Add the attribute readonly="False" then click on save and update . Refresh your page and then you can update the sequence field directly every time you have past dates.


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

to risky

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
11
thg 1 24
17602
0
thg 3 15
3930
1
thg 3 15
5240
1
thg 12 23
25419
5
thg 2 25
11586