Skip to content

Conversation

@chafique-delli
Copy link
Contributor

On the repair order, the basic field 'Under warranty' and the field 'Under warranty' linked to the RMA are confusing.
I think it's better to display only one of the two.

@JasminSForgeFlow , @LoisRForgeFlow

@codecov-commenter
Copy link

codecov-commenter commented Aug 4, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (18.0@414360a). Learn more about missing BASE report.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             18.0     #682   +/-   ##
=======================================
  Coverage        ?   79.35%           
=======================================
  Files           ?      130           
  Lines           ?     5560           
  Branches        ?      702           
=======================================
  Hits            ?     4412           
  Misses          ?      922           
  Partials        ?      226           

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 414360a...7d8f10e. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@chafique-delli chafique-delli changed the title [IMP] rma_repair [18.0][IMP] rma_repair Aug 4, 2025
Copy link
Contributor

@LoisRForgeFlow LoisRForgeFlow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for raising the issue and contributing. However, I do not fully agree with your approach. See below.

under_warranty = fields.Boolean(
rma_under_warranty = fields.Boolean(
string="Under Warranty",
related="rma_line_id.under_warranty",
Copy link
Contributor

@LoisRForgeFlow LoisRForgeFlow Aug 5, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was making the repair one related to the linked RMA (at least that's the intention, I have not functionally checked). In case, we don't want to disconnect them, you should fix only the view and keep only one.

If what I describe above (have both fields related) does not work as one would expect, a refactor with proper compute methods might be needed.

@chafique-delli chafique-delli marked this pull request as draft August 5, 2025 15:04
@chafique-delli chafique-delli marked this pull request as ready for review August 5, 2025 15:19
@LoisRForgeFlow
Copy link
Contributor

@chafique-delli thanks for adjusting, have you tested what I mentioned?

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.

3 participants