OCA / account-financial-tools

Odoo Accountant Financial Tools and Utils
GNU Affero General Public License v3.0
303 stars 749 forks source link

[16.0][FIX] account_journal_restrict_mode: Ensure that the secure sequence is always created. #1799

Closed JordiBForgeFlow closed 2 months ago

JordiBForgeFlow commented 8 months ago

Currently the secure sequence is only created on the write operation. But during the set up of a new company, when the inventory valuation and other journals are created upon setting up the chart of accounts, only the create method is called, not the write, and as a consequence no secure sequence is created.

@MarinaAForgeFlow @LoisRForgeFlow

LoisRForgeFlow commented 8 months ago

Makes sense, I would wait to see if Odoo accepts the proposed fix: https://github.com/odoo/odoo/pull/147738

MarinaAForgeFlow commented 8 months ago

LGTM

JordiBForgeFlow commented 2 months ago

Closing, as it has already been considered by odoo in https://github.com/odoo/odoo/commit/b48e66ed3a4157ca65bdd4c519b797cc6509b9a3