Skip to content

[19.0][MIG] account_caba_payment_date: Migration to 19.0 - #7

Open
alan196 wants to merge 8 commits into
19.0from
19.0-mig-account_caba_payment_date
Open

alan196 wants to merge 8 commits into
19.0from
19.0-mig-account_caba_payment_date

Conversation

@alan196

@alan196 alan196 commented Jul 30, 2026

Copy link
Copy Markdown

Migration of the Jarsa custom module account_caba_payment_date from 17.0 to 19.0.

Ported the full 17.0 history (7 commits) and adapted to 19.0:

  • Manifest version 19.0.1.0.0.
  • company._get_user_fiscal_lock_date() now requires the journal argument; pass move.journal_id.
  • company.max_tax_lock_date was removed in 18.0+; replaced with company.user_tax_lock_date.
  • Translations via self.env._() (prefer-env-translation).
  • Since 19.0 the date of a posted move is readonly in account.move.write(); the internal controlled write of the CABA move date now uses the skip_readonly_check context (same mechanism the core uses).
  • Tests: setUpClass() without chart_template_ref and account.account.company_ids (m2m) instead of company_id.

Quality:

  • pre-commit-vauxoo scoped to the module: Mandatory Passed, Optional Passed (pre-existing failures in other modules of the 19.0 branch are untouched).
  • Real install + tests on a scratch 19.0 DB: 0 failed, 0 error(s) of 5 tests.

Task: Starka migration 17.0 -> 19.0.

alan196 and others added 8 commits July 30, 2026 17:26
…f module account_move_name_sequence is installed
…sk#31944

Date each cash basis entry with the payment date of its own partial
reconcile instead of the first partial of the batch, and consider the
tax lock date in addition to the user fiscal lock date.

When the payment date falls in a locked period the behavior is now
configurable per company (default: block the reconciliation with an
explanatory error; alternatives: date the entry on the first open day
or keep the standard behavior). Add settings UI, tests and readme.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
- Bump manifest version to 19.0.1.0.0
- account.partial.reconcile: pass the journal to
  company._get_user_fiscal_lock_date() (new signature) and replace the
  removed company.max_tax_lock_date with company.user_tax_lock_date
- Use self.env._() instead of odoo._ for translations
- Write the CABA move date with skip_readonly_check context: since 19.0
  the date of a posted move is readonly in account.move.write()
- Tests: setUpClass() without chart_template_ref (removed in 18.0) and
  account.account company_ids m2m instead of company_id
- Strip trailing whitespace in README.rst (doc8)
@jarsabot

Copy link
Copy Markdown
    **WARNING**: Could not link to Odoo task. Record ID not found in the title of the MR, supported formats:
{ record type }#{ number }

Available types: 'task#', 't#' (case insensitive)

Examples:

  • task#123

  • i#123

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants