Skip to content

[16.0][REF] rental_base_extension, sale_rental_extension: fix cross-dependency on type_id#866

Merged
eantones merged 2 commits into16.0from
16.0-fix-sale_rental_extension-cross_dependency
Mar 23, 2026
Merged

[16.0][REF] rental_base_extension, sale_rental_extension: fix cross-dependency on type_id#866
eantones merged 2 commits into16.0from
16.0-fix-sale_rental_extension-cross_dependency

Conversation

@eantones
Copy link
Copy Markdown
Member

Summary

  • sale_rental_extension referenced rental_base XML IDs and type_id from sale_order_type without declaring rental_base as a dependency, causing installation errors when rental_base was not installed
  • Instead of adding coupling, moved all rental_base-dependent code to rental_base_extension where it naturally belongs
  • Each module now only extends its natural parent: rental_base_extensionrental_base, sale_rental_extensionsale_rental
  • Renamed all XML IDs, view names and files to follow OCA naming conventions

Test plan

  • Uninstall sale_rental_extension, update rental_base_extension, reinstall sale_rental_extension
  • Verify rental order views (form, tree, kanban, calendar) work from the Rentals menu
  • Verify signature flow on rental delivery pickings
  • Verify rental position kanban/calendar views work
  • Install sale_rental_extension alone (without rental_base) on a clean DB — should not crash

…e_rental_extension

sale_rental_extension referenced rental_base XML IDs (views, menus,
rental_sale_type) and sale_order_type fields (type_id) without declaring
rental_base as a dependency. Instead of adding coupling, move all
rental_base-dependent code to rental_base_extension where it belongs.

Moved from sale_rental_extension:
- SaleOrder model (rental status tracking, is_rental_order, picking helpers)
- StockPicking model (is_rental_picking, sign-to-validate)
- ResCompany and ResConfigSettings (signature terms)
- Dedicated rental form/tree/kanban/calendar/search views and actions
- Rental app menus and rental_base view deactivations
- Config settings view, stock picking view, delivery slip report
- JS signature widget, SCSS kanban styles, XML signature dialog
- Rental status tests

All XML IDs, view names, file names and internal identifiers follow
OCA naming conventions (sale_order_view_form_rental, sale_order_action_rental,
sale_order_menu_rental, etc.).
Code that referenced rental_base (views, menus, actions, SaleOrder model,
StockPicking model, config settings, signature widget, delivery report
and tests) has been moved to rental_base_extension where it belongs.

This module now only extends sale_rental with:
- SaleOrderLine: rental_qty defaults, inline editing, qty sync
- sale.rental: kanban, calendar views and search enhancements
@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 23, 2026

Codecov Report

❌ Patch coverage is 36.95652% with 29 lines in your changes missing coverage. Please review.
✅ Project coverage is 44.30%. Comparing base (aed24d9) to head (832a753).
⚠️ Report is 3 commits behind head on 16.0.

Files with missing lines Patch % Lines
sale_rental_extension/models/sale_order_line.py 25.64% 28 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             16.0     #866      +/-   ##
==========================================
+ Coverage   44.27%   44.30%   +0.02%     
==========================================
  Files         310      313       +3     
  Lines        6227     6230       +3     
  Branches      989      989              
==========================================
+ Hits         2757     2760       +3     
  Misses       3449     3449              
  Partials       21       21              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@eantones eantones merged commit 419ffde into 16.0 Mar 23, 2026
12 of 13 checks passed
@eantones eantones deleted the 16.0-fix-sale_rental_extension-cross_dependency branch March 23, 2026 23:06
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.

1 participant