Skip to content

[19.0][FIX] subscription_oca: fall back to journal account when product has no income account - #1511

Open
alvaro-domatix wants to merge 1 commit into
OCA:19.0from
alvaro-domatix:19.0-fix-subscription_oca-account-without-product-account
Open

alvaro-domatix wants to merge 1 commit into
OCA:19.0from
alvaro-domatix:19.0-fix-subscription_oca-account-without-product-account

Conversation

@alvaro-domatix

@alvaro-domatix alvaro-domatix commented Sep 2, 2026 •

Copy link
Copy Markdown
Contributor

A subscription line on a product without income account (neither the product nor its category defines one) previously forced account_id=False on the generated invoice line, which violates the database constraint account_move_line_check_accountable_required_fields (account_id IS NOT NULL). The management cron then failed five times in a row and Odoo deactivated it silently.

With this change, when no income account is found the key is omitted so the standard fallback applies: the line gets the journal default account, like any other sale invoice line.

  • Module installs and upgrades cleanly on 19.0
  • Existing tests pass (0 failed, 0 error)
  • Reviewed by a maintainer

@OCA-git-bot OCA-git-bot added series:19.0 mod:subscription_oca Module subscription_oca labels Sep 2, 2026
@alvaro-domatix

Copy link
Copy Markdown
Contributor Author

Bumping for a maintainer look. @pedrobaeza

@pedrobaeza pedrobaeza added this to the 19.0 milestone Sep 17, 2026
@pedrobaeza

pedrobaeza commented Sep 17, 2026 •

Copy link
Copy Markdown
Member

I'm not a maintainer nor user of this module. You should become that figure IMO. Others using the module can review.

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants