Skip to content

[16.0][FIX] finish the 16.0 backport: view modifiers and manifest version - #59

Open
almumu wants to merge 1 commit into
akretion:16.0from
factorlibre:16.0-fix-view-modifiers
Open

[16.0][FIX] finish the 16.0 backport: view modifiers and manifest version#59
almumu wants to merge 1 commit into
akretion:16.0from
factorlibre:16.0-fix-view-modifiers

Conversation

@almumu

@almumu almumu commented Aug 20, 2026

Copy link
Copy Markdown

Two leftovers from the backport, both blocking or misleading on 16.0.

  1. Four view modifiers still use the Odoo 17+ syntax. In 16.0 a node-level invisible is evaluated against the context only, so an expression that references a field raises NameError and the module fails to install:

    ValueError: <class 'NameError'>: "name 'result_summary' is not defined"
    while evaluating 'not result_summary'

The two remaining invisible="not context.get(...)" in fr_einvoicing_event.xml are left untouched: those do resolve against the context in 16.0.

  1. l10n_fr_einvoicing_directory_import still declares version 18.0.1.0.0, while the other nine modules are on 16.0.1.0.0.

Tested on a clean 16.0 community database: the eight installable modules install without error (81 modules loaded) and the test suite passes (15 tests, 0 failed, 0 errors).

Partially addresses #55: this PR covers the two mechanical leftovers (the view modifiers and the manifest version). The third point of that issue — the missing tests/ directory of l10n_fr_einvoicing_directory_import, 34 tests that exist on the PR #33 branch but not here — is not covered.

Two leftovers from the backport, both blocking or misleading on 16.0.

1. Four view modifiers still use the Odoo 17+ syntax. In 16.0 a node-level
`invisible` is evaluated against the context only, so an expression that
references a field raises NameError and the module fails to install:

    ValueError: <class 'NameError'>: "name 'result_summary' is not defined"
    while evaluating 'not result_summary'

The two remaining `invisible="not context.get(...)"` in fr_einvoicing_event.xml
are left untouched: those do resolve against the context in 16.0.

2. l10n_fr_einvoicing_directory_import still declares version 18.0.1.0.0,
while the other nine modules are on 16.0.1.0.0.

Tested on a clean 16.0 community database: the eight installable modules
install without error (81 modules loaded) and the test suite passes
(15 tests, 0 failed, 0 errors).
@ak-git-bot ak-git-bot added mod:l10n_fr_einvoicing Module l10n_fr_einvoicing mod:account_invoice_en16931 Module account_invoice_en16931 mod:l10n_fr_einvoicing_directory_import Module l10n_fr_einvoicing_directory_import series:16.0 labels Aug 20, 2026
@ak-git-bot

Copy link
Copy Markdown

Hi @alexis-via,
some modules you are maintaining are being modified, check this out!

@almumu
almumu marked this pull request as ready for review August 20, 2026 09:07

@remi-filament remi-filament left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @almumu
Code review looks OK, although I always have a doubt on m2m whether we should check against [] or False (in [('result_partner_ids', '=', [])] )

@almumu almumu changed the title [FIX] finish the 16.0 backport: view modifiers and manifest version [16.0][FIX] finish the 16.0 backport: view modifiers and manifest version Aug 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mod:account_invoice_en16931 Module account_invoice_en16931 mod:l10n_fr_einvoicing_directory_import Module l10n_fr_einvoicing_directory_import mod:l10n_fr_einvoicing Module l10n_fr_einvoicing series:16.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants