fix(spp_programs): fix in-kind entitlement item form layout and product domain#24
fix(spp_programs): fix in-kind entitlement item form layout and product domain#24
Conversation
…EL field ordering
Summary of ChangesHello @emjay0921, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request addresses several UI and compatibility issues within the in-kind entitlement manager's item form. It updates the product domain filter to align with Odoo 19, restructures the form layout for better organization, and resolves visual alignment problems in the condition section. These changes collectively enhance the form's functionality and user interface. Highlights
Changelog
Activity
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request effectively addresses the UI layout issues in the in-kind entitlement item form and corrects the product domain filter for Odoo 19 compatibility. The XML view has been well-restructured using standard Odoo practices to improve the form's organization and fix rendering problems with the CEL widget. The Python changes are correct and necessary. Overall, these are solid fixes that improve both the user experience and maintainability of the code.
Why is this change needed?
The in-kind entitlement manager's item form had several UI issues:
type=product(removed in Odoo 19, renamed toconsu)How was the change implemented?
<form>inentitlement_manager_inkind_view.xmlto use properly organized<group>elements matching the wizard's layoutdomain=[("type", "=", "product")]todomain=[("type", "=", "consu")]in bothentitlement_manager_inkind.pyandentitlement.pyto match Odoo 19's product type naming<group name="condition_section" col="1">so Odoo's form renderer enforces proper vertical ordering; addednolabel="1"to CEL-inserted fields inentitlement_inkind_cel_views.xmlfor full-width renderingNew unit tests
Unit tests executed by the author
How to test manually
Related links