Skip to content

[18.0][IMP] split functions which need undefined dependencies#8

Open
remi-filament wants to merge 1 commit into
akretion:18.0from
lefilament:18.0-imp-l10n_fr_einvoicing-split-functions
Open

[18.0][IMP] split functions which need undefined dependencies#8
remi-filament wants to merge 1 commit into
akretion:18.0from
lefilament:18.0-imp-l10n_fr_einvoicing-split-functions

Conversation

@remi-filament

Copy link
Copy Markdown
Contributor

This PR proposes to split functions calling undefined dependencies such as base.document.import and Factur-x / UBL / CII document generation in separated functions so that these could be overriden in case one would like to use a different set of modules instead of the OCA ones (for instance Odoo account_edi_ubl_cii one)

@alexis-via could you please review this PR ?
I kept you original functions, so that they can easily be overriden for other contexts without impacting current behavior !

Although I think that using self.env["business.document.import"]._match_partner() in a function which should not raise error, where base.document.import model may not exist, is quite risky !

Closes #4

@ak-git-bot

Copy link
Copy Markdown

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

@remi-filament remi-filament force-pushed the 18.0-imp-l10n_fr_einvoicing-split-functions branch from b5f808f to 42826a9 Compare June 22, 2026 09:07
remi-filament added a commit to lefilament/fr-einvoicing that referenced this pull request Jun 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mod:l10n_fr_einvoicing Module l10n_fr_einvoicing series:18.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[18.0] l10n_fr_einvoicing : reference to base.document.import not in dependencies

2 participants