Skip to content

[16.0][IMP] subscription_oca: Support section/note subscription lines, add search filters#1419

Open
ivilata wants to merge 1 commit into
OCA:16.0from
ivilata:16.0-imp-subscription_oca-comments-filters
Open

[16.0][IMP] subscription_oca: Support section/note subscription lines, add search filters#1419
ivilata wants to merge 1 commit into
OCA:16.0from
ivilata:16.0-imp-subscription_oca-comments-filters

Conversation

@ivilata
Copy link
Copy Markdown

@ivilata ivilata commented Apr 27, 2026

This PR improves subscriptions in the following ways:

  • Enable adding section and note lines to subscriptions, and reordering them.
  • Propagate section/note lines to equivalent sale order or account move lines.
  • Make section/note lines display across the full row to avoid empty-field clutter.
  • Add search filters for In progress, Expired, and Archived subscriptions.

It is a re-take of @PolComas' #1287 with very minor fixes.

@ivilata ivilata changed the title [16.0][IMP] subscription_oca: Improve subscription lines view with section/note support and added filters [16.0][IMP] subscription_oca: Support section/note subscription lines, add search filters Apr 27, 2026
ivilata added a commit to ivilata/oca--contract that referenced this pull request Apr 28, 2026
That version avoids `ModuleNotFoundError: No module named 'pkg_resources'`
when running the Git pre-commit hook, which causes an error in all CI runs.

See OCA#1402 or OCA#1419 for examples of 16.0 PRs failing because of this error, and
acsone/setuptools-odoo#126 for some context on the error (caused by the recent
removal on `pkg_resources` from `setuptools`) and how `setuptools-odoo` v3.3.2
fixes it.

Pre-commit hook configurations for 17.0 and 18.0 don't seem to depend on
`setuptools-odoo`.  Similar changes may be ported back to 16.0 as a more
stable fix, but the current one is a very simple, low-impact fix that may help
unlock PRs right now.
@ivilata
Copy link
Copy Markdown
Author

ivilata commented Apr 28, 2026

Please note that the "pre-commit" check errors and TestContract's KeyError: 'test_target_state' test errors are pre-existing as mentioned in #1421.

Update 2026-05-12: PR #1421 was discarded and replaced by PR #1422, which hopefully fixed the issues. Updating this PR.

@ivilata ivilata force-pushed the 16.0-imp-subscription_oca-comments-filters branch from 1b70064 to b483c71 Compare May 12, 2026 14:10
…ction/note support and added filters

[IMP] subscription_oca: Very minor fixes to Pol's original changes
@ivilata ivilata force-pushed the 16.0-imp-subscription_oca-comments-filters branch from b483c71 to 1856b51 Compare May 12, 2026 14:52
@ivilata ivilata marked this pull request as ready for review May 12, 2026 14:57
@ivilata
Copy link
Copy Markdown
Author

ivilata commented May 12, 2026

@pedrobaeza, @etobella would you mind reviewing this PR? IMHO it brings some useful enhancements without much distress. Thanks! 🙂

@pedrobaeza
Copy link
Copy Markdown
Member

I use and prefer contract

@ivilata
Copy link
Copy Markdown
Author

ivilata commented May 13, 2026

@pedrobaeza: Hehe, ok, I just saw that you were active lately with mergin some repo PRs.

I also see that @rousseldenis merged/reviewed some PRs related with subscription_oca before. Denis, would you mind having a look at this one? Thanks! 🙂

@ivilata
Copy link
Copy Markdown
Author

ivilata commented May 13, 2026

Also @HaraldPanten and @PauMAVA, you may be interested in reviewing these. Thanks! 🙂

@HaraldPanten
Copy link
Copy Markdown

@ivilata We used this module a few years ago but, as Pedro suggested, we eventually moved all our projects to contract as well.

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.

5 participants