Skip to content

[18.0][FIX] fleet_vehicle_inspection: fix dead search filters and unsafe multi-record button_confirm - #234

Draft
CristianoMafraJunior wants to merge 2 commits into
OCA:18.0from
Escodoo:18.0-imp-fleet_vehicle_inspection
Draft

[18.0][FIX] fleet_vehicle_inspection: fix dead search filters and unsafe multi-record button_confirm#234
CristianoMafraJunior wants to merge 2 commits into
OCA:18.0from
Escodoo:18.0-imp-fleet_vehicle_inspection

Conversation

@CristianoMafraJunior

Copy link
Copy Markdown
Member

Depend #233

Summary

  • Fix "Inspection Completed" and "Inspection Canceled" search filters, which compared state/result against values that never exist on those fields and therefore always returned an empty list.
  • Make button_confirm safe to call on a recordset with more than one inspection, by iterating over self instead of reading self.amount/self.service_type_id directly (which raises ValueError: Expected singleton).

@CristianoMafraJunior
CristianoMafraJunior marked this pull request as draft September 3, 2026 17:28
@OCA-git-bot

Copy link
Copy Markdown
Contributor

Hi @marcelsavegnago,
some modules you are maintaining are being modified, check this out!

@OCA-git-bot OCA-git-bot added mod:fleet_vehicle_inspection_template Module fleet_vehicle_inspection_template series:18.0 mod:fleet_vehicle_inspection Module fleet_vehicle_inspection labels Sep 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mod:fleet_vehicle_inspection_template Module fleet_vehicle_inspection_template mod:fleet_vehicle_inspection Module fleet_vehicle_inspection series:18.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants