Skip to Content
Menu
This question has been flagged
2 Replies
1390 Views

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-


Avatar
Discard
Best Answer

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.


Avatar
Discard
Author Best Answer

to risky

Avatar
Discard
Related Posts Replies Views Activity
11
Jan 24
15499
0
Mar 15
2746
1
Mar 15
4061
1
Dec 23
23463
1
Aug 24
205