[ADD] product_secondary_unit_ux: show secondary unit factor with more decimals - #913
Closed
fw-bot-adhoc wants to merge 1 commit into
Closed
[ADD] product_secondary_unit_ux: show secondary unit factor with more decimals#913fw-bot-adhoc wants to merge 1 commit into
fw-bot-adhoc wants to merge 1 commit into
Conversation
… decimals The OCA 'product_secondary_unit' factor field has no digits, so the web client renders it with 2 decimals while storing full precision. This made the displayed value differ from the one actually used in conversions, causing confusion. New UX module forces the factor field to display 6 decimals (display-only, no change to storage or rounding). X-original-commit: 08ff153
Contributor
Author
|
@les-adhoc @mav-adhoc this PR targets 19.0 and is the last of the forward-port chain. To merge the full chain, use
More info at https://github.com/odoo/odoo/wiki/Mergebot#forward-port |
Author
|
@les-adhoc @mav-adhoc ci/runbot-modified-modules failed on this forward-port PR |
Author
|
@les-adhoc @mav-adhoc this forward port of #907 is awaiting action (not merged or closed). |
3 similar comments
Author
|
@les-adhoc @mav-adhoc this forward port of #907 is awaiting action (not merged or closed). |
Author
|
@les-adhoc @mav-adhoc this forward port of #907 is awaiting action (not merged or closed). |
Author
|
@les-adhoc @mav-adhoc this forward port of #907 is awaiting action (not merged or closed). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

What
New UX module
product_secondary_unit_uxthat improves how the secondary unit conversion factor is displayed.Why
The OCA
product_secondary_unit"Factor" field (product.secondary.unit.factor) is declared as a plainFloatwith nodigits. As a result the web client renders it with only 2 decimals, while the value is stored and used in conversions with full precision. Users would see e.g.0.44and not realize the effective value carried more precision, leading to apparent conversion mismatches.How
A single view inherits
product_secondary_unit.product_template_form_viewand setsdigits="[16, 6]"on thefactorfield viaposition="attributes". This is display-only: it does not change storage or rounding, so calculation behavior is unchanged.Test plan
product_secondary_unitis present).uom.group_uom).Task: https://www.adhoc.inc/odoo/project.task/69157
Forward-Port-Of: #907