Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
2 Ответы
2773 Представления

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-


Аватар
Отменить
Лучший ответ

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.


Аватар
Отменить
Автор Лучший ответ

to risky

Аватар
Отменить
Related Posts Ответы Просмотры Активность
11
янв. 24
17536
0
мар. 15
3895
1
мар. 15
5192
1
дек. 23
25369
5
февр. 25
11527