Thomas Lefebvre (thle) a580dcaf48 [FIX] sale_project: round milestone percentage
Steps to reproduce:
	- go to Project app;
	- go to the 'Project Updates' view of a project.
	(project must have task with milestone which has a quantity delivered when the goal is reached)

Issue:
	For some quantity percentages, the display of the number of decimals is not correct.
	Example: 55, 58, 57, 56, etc. (but not 59, 54, etc.)

Solution:
	Use the possibilities of the QWEB to perform a rounding.

Remark:
	Widget percentage doesn't work in this case (not a field tag).
	`t-options='{"widget": "float", "precision": 2}'` also not working.
	`round()` method doesn't work too.
	The method toFixed(n) rounds the number to n digits after the point and returns a string representation of the result. (https://javascript.info/number)

opw-3041813

closes odoo/odoo#105056

X-original-commit: fb3052787adf07d0db8e24e7977d0fd88518d0d7
Signed-off-by: Adrien Widart <awt@odoo.com>
Signed-off-by: Lefebvre Thomas (thle) <thle@odoo.com>
2022-11-07 08:15:40 +01:00
2022-10-06 14:56:52 +02:00
…
…
…
…

Build Status Tech Doc Help Nightly Builds

Odoo

Odoo is a suite of web based open source business apps.

The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, ...

Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.

Getting started with Odoo

For a standard installation please follow the Setup instructions from the documentation.

To learn the software, we recommend the Odoo eLearning, or Scale-up, the business game. Developers can start with the developer tutorials

S
Description
No description provided
Readme LGPL-3.0
3.4 GiB
Languages
Python 49.6%
JavaScript 47.8%
SCSS 2%
CSS 0.3%
HTML 0.2%