odoo/addons
Cedric Snauwaert fa2f7b86bf [FIX] product: remove digits_precision from uom factor fields
Remove the hardcoded precision of 12 on factor and factor_inv,
to use the complete natural precision of NUMERIC types,
preserving all significant digits.

e.g. a UoM with a factor_inv of 6.0 used to be computed as:
factor_inv: 6.0 -> factor: 0.166666666667 (1.0/6.0, rounded to 12 digits) -> factor_inv: 5.999999999988 (1.0/factor)
which could lead to errors such 12*0.166666666667 = 2.000000000004 instead of 2.0

Slightly changed the way the ORM handles float fields to allow setting `digits=0`
as a way to explicitly require a NUMERIC value but without enforcing/rounding
the values at the ORM level, i.e. a truly full-precision field.

NUMERIC type has unlimited precision but is less efficient so should not be
used as the default behaviour, which is why we keep float8 as an alternative.

Modified the view to display the product UOM factor with a 5 digits value by default.
This value is for usability purpose only, the field still accepts bigger precision, by
setting the `digits` option on the field in the form view.

This change is safe in a stable series, the `digits=0` alternative is
treated the same as the default `digits=None` everywhere in the framework,
except when creating the database field.
2014-10-22 14:28:34 +02:00
..
account [FIX] account_invoice: using has_group to determine if user has group group_supplier_inv_check_total 2014-10-09 18:57:37 +02:00
account_accountant Launchpad automatic translations update. 2014-03-12 05:26:04 +00:00
account_analytic_analysis [FIX] account_analytic_analysis: invoiced field takes customer invoices only 2014-10-02 11:53:38 +02:00
account_analytic_default Launchpad automatic translations update. 2014-03-28 06:44:40 +00:00
account_analytic_plans [I18N] Update all 7.0 translation templates with latest terms and annotations 2014-08-14 02:24:24 +02:00
account_anglo_saxon [FIX] account_anglo_saxon: price difference, discount and taxes 2014-10-03 12:19:01 +02:00
account_asset Launchpad automatic translations update. 2014-04-14 05:59:48 +00:00
account_bank_statement_extensions [I18N] Update 7.0 translations with latest changes on Launchpad 2014-08-14 03:38:58 +02:00
account_budget [IMP] account_budget: added date filter in print budget report 2014-08-21 11:45:38 +02:00
account_cancel [I18N] Update 7.0 translations with latest changes on Launchpad 2014-08-14 03:38:58 +02:00
account_chart Launchpad automatic translations update. 2013-11-21 06:38:38 +00:00
account_check_writing [I18N] Update 7.0 translations with latest changes on Launchpad 2014-08-14 03:38:58 +02:00
account_followup [FIX] account_followup: do no duplicate partner's account.move.line 2014-10-20 09:54:43 +02:00
account_payment [FIX] account_payment: lin2bank correct fallback condition 2014-09-02 18:43:22 +02:00
account_report_company [FIX] display_name is not compute for non-active partner 2014-06-03 19:04:07 +05:30
account_sequence [I18N] Update 7.0 translations with latest changes on Launchpad 2014-08-14 03:38:58 +02:00
account_test [I18N] Update 7.0 translations with latest changes on Launchpad 2014-08-14 03:38:58 +02:00
account_voucher [FIX] account_voucher: import invoices, sign according to transaction type 2014-09-22 15:58:55 +02:00
analytic [I18N] Update 7.0 translations with latest changes on Launchpad 2014-08-14 03:38:58 +02:00
analytic_contract_hr_expense [I18N] Update 7.0 translations with latest changes on Launchpad 2014-08-14 03:38:58 +02:00
analytic_user_function [I18N] Update 7.0 translations with latest changes on Launchpad 2014-08-14 03:38:58 +02:00
anonymization [I18N] Update 7.0 translations with latest changes on Launchpad 2014-08-14 03:38:58 +02:00
association [I18N] Update 7.0 translations with latest changes on Launchpad 2014-08-14 03:38:58 +02:00
audittrail [I18N] Update all 7.0 translation templates with latest terms and annotations 2014-08-14 02:24:24 +02:00
auth_crypt [I18N] Update 7.0 translations with latest changes on Launchpad 2014-08-14 03:38:58 +02:00
auth_ldap [FIX] auth_ldap: remove unused sql column 2014-09-22 15:00:53 +02:00
auth_oauth [FIX] auth_oauth: fb and google oauth providers reset on general settings apply 2014-10-02 12:32:02 +02:00
auth_oauth_signup Launchpad automatic translations update. 2014-02-06 06:25:10 +00:00
auth_openid [I18N] Update 7.0 translations with latest changes on Launchpad 2014-08-14 03:38:58 +02:00
auth_signup [I18N] Update 7.0 translations with latest changes on Launchpad 2014-08-14 03:38:58 +02:00
base_action_rule [I18N] Update 7.0 translations with latest changes on Launchpad 2014-08-14 03:38:58 +02:00
base_calendar [I18N] Update all 7.0 translation templates with latest terms and annotations 2014-08-14 02:24:24 +02:00
base_gengo [FIX] security: remove read access on company critical fields 2014-08-26 15:35:47 +02:00
base_iban Launchpad automatic translations update. 2014-04-02 06:44:59 +00:00
base_import [I18N] Update 7.0 translations with latest changes on Launchpad 2014-08-14 03:38:58 +02:00
base_report_designer Launchpad automatic translations update. 2014-02-06 06:25:10 +00:00
base_setup Launchpad automatic translations update. 2014-05-04 06:27:21 +00:00
base_status [I18N] Update all 7.0 translation templates with latest terms and annotations 2014-08-14 02:24:24 +02:00
base_vat [I18N] Update all 7.0 translation templates with latest terms and annotations 2014-08-14 02:24:24 +02:00
board [FIX] board: Do not offer to create dashboard when there is no action 2014-08-25 12:03:12 +02:00
claim_from_delivery Launchpad automatic translations update. 2014-04-02 06:44:59 +00:00
contacts [I18N] Update 7.0 translations with latest changes on Launchpad 2014-08-14 03:38:58 +02:00
crm [FIX] crm: merge the phonecalls during an opportunities merge 2014-09-25 13:40:45 +02:00
crm_claim [I18N] Update 7.0 translations with latest changes on Launchpad 2014-08-14 03:38:58 +02:00
crm_helpdesk [I18N] Update 7.0 translations with latest changes on Launchpad 2014-08-14 03:38:58 +02:00
crm_partner_assign [I18N] Update 7.0 translations with latest changes on Launchpad 2014-08-14 03:38:58 +02:00
crm_profiling Launchpad automatic translations update. 2014-04-02 06:44:59 +00:00
crm_todo [FIX] crm_todo: usability fix: the lead was not present 2014-04-16 15:03:56 +02:00
decimal_precision [I18N] Update 7.0 translations with latest changes on Launchpad 2014-08-14 03:38:58 +02:00
delivery [I18N] Update 7.0 translations with latest changes on Launchpad 2014-08-14 03:38:58 +02:00
document [FIX] document: display Attachment(s) menu only on form view 2014-09-04 14:47:06 +02:00
document_ftp Launchpad automatic translations update. 2014-03-28 06:44:40 +00:00
document_page [I18N] Update all 7.0 translation templates with latest terms and annotations 2014-08-14 02:24:24 +02:00
document_webdav [FIX] 500 error on connection when using PyWebDAV 0.9.4 2014-04-11 15:42:03 +02:00
edi [I18N] Update 7.0 translations with latest changes on Launchpad 2014-08-14 03:38:58 +02:00
email_template [FIX] email_template: do not try to add user signature if none set 2014-10-14 13:41:52 +02:00
event [FIX] event: double context 2014-10-03 15:15:12 +02:00
event_moodle [I18N] Update 7.0 translations with latest changes on Launchpad 2014-08-14 03:38:58 +02:00
event_sale [I18N] Update 7.0 translations with latest changes on Launchpad 2014-08-14 03:38:58 +02:00
fetchmail [FIX] fetchmail: do not delete a failing email when using POP 2014-08-22 14:14:56 +02:00
fleet [I18N] Update 7.0 translations with latest changes on Launchpad 2014-08-14 03:38:58 +02:00
google_base_account [I18N] Update 7.0 translations with latest changes on Launchpad 2014-08-14 03:38:58 +02:00
google_docs [I18N] Update 7.0 translations with latest changes on Launchpad 2014-08-14 03:38:58 +02:00
hr [I18N] Update 7.0 translations with latest changes on Launchpad 2014-08-14 03:38:58 +02:00
hr_attendance [I18N] Update 7.0 translations with latest changes on Launchpad 2014-08-14 03:38:58 +02:00
hr_contract [I18N] Update 7.0 translations with latest changes on Launchpad 2014-08-14 03:38:58 +02:00
hr_evaluation [I18N] Update 7.0 translations with latest changes on Launchpad 2014-08-14 03:38:58 +02:00
hr_expense [FIX] hr_expense: computation of tax/base amount 2014-09-30 16:06:07 +02:00
hr_holidays [FIX] hr_holidays: employees cannot approve their holidays 2014-08-25 14:51:03 +02:00
hr_payroll [I18N] Update 7.0 translations with latest changes on Launchpad 2014-08-14 03:38:58 +02:00
hr_payroll_account [FIX] hr_payroll_account: do not create entries with amount at 0 2014-09-30 16:37:24 +02:00
hr_recruitment [I18N] Update 7.0 translations with latest changes on Launchpad 2014-08-14 03:38:58 +02:00
hr_timesheet Launchpad automatic translations update. 2014-03-20 06:19:44 +00:00
hr_timesheet_invoice [I18N] Update all 7.0 translation templates with latest terms and annotations 2014-08-14 02:24:24 +02:00
hr_timesheet_sheet [FIX] hr_timesheet_sheet: avoid error when sort attendances 2014-09-17 18:25:08 +02:00
idea [I18N] Update all 7.0 translation templates with latest terms and annotations 2014-08-14 02:24:24 +02:00
knowledge Launchpad automatic translations update. 2014-04-02 06:44:59 +00:00
l10n_ar Launchpad automatic translations update. 2013-11-21 06:38:38 +00:00
l10n_at [IMP] Improved data for account chart template 2013-09-06 17:35:36 +05:30
l10n_be [FIX] l10n_be: spelling error in financial reports 2014-08-06 16:59:34 +02:00
l10n_be_coda [I18N] Update 7.0 translations with latest changes on Launchpad 2014-08-14 03:38:58 +02:00
l10n_be_hr_payroll [I18N] Update 7.0 translations with latest changes on Launchpad 2014-08-14 03:38:58 +02:00
l10n_be_hr_payroll_account [FIX] l10n_be: move yml file to l10n_be_hr_payroll_account 2013-08-14 11:40:47 +02:00
l10n_be_invoice_bba [I18N] Update 7.0 translations with latest changes on Launchpad 2014-08-14 03:38:58 +02:00
l10n_bo [I18N] Update 7.0 translations with latest changes on Launchpad 2014-08-14 03:38:58 +02:00
l10n_br Launchpad automatic translations update. 2013-11-21 06:38:38 +00:00
l10n_ca Launchpad automatic translations update. 2013-11-27 05:39:57 +00:00
l10n_ch [FIX] account,account_followup,l10n_{ch,es,pt,us,ve}: correct or remove wrong fields in <record> creation 2013-10-31 19:43:21 +01:00
l10n_cl Launchpad automatic translations update. 2013-11-21 06:38:38 +00:00
l10n_cn Launchpad automatic translations update. 2013-11-21 06:38:38 +00:00
l10n_co [IMP] Improved data for account chart template 2013-09-06 17:35:36 +05:30
l10n_cr Launchpad automatic translations update. 2013-11-21 06:38:38 +00:00
l10n_de [I18N] Update 7.0 translations with latest changes on Launchpad 2014-08-14 03:38:58 +02:00
l10n_ec Launchpad automatic translations update. 2013-11-21 06:38:38 +00:00
l10n_es Launchpad automatic translations update. 2013-11-21 06:38:38 +00:00
l10n_et
l10n_fr [RESTORE] Restore *.sxw files, skipped during bzr-to-git conversion to discard older binary blobs 2014-05-22 14:07:15 +02:00
l10n_fr_hr_payroll [FIX] l10n_fr_hr_payroll: bad copy-paste in 69c1333 2014-10-20 10:48:19 +02:00
l10n_fr_rib [I18N] Update 7.0 translations with latest changes on Launchpad 2014-08-14 03:38:58 +02:00
l10n_gr Launchpad automatic translations update. 2013-11-21 06:38:38 +00:00
l10n_gt Launchpad automatic translations update. 2013-11-21 06:38:38 +00:00
l10n_hn Launchpad automatic translations update. 2013-11-21 06:38:38 +00:00
l10n_hr [IMP] Improved code as per coding convention 2013-09-06 18:25:57 +05:30
l10n_in Launchpad automatic translations update. 2013-11-21 06:38:38 +00:00
l10n_in_hr_payroll [I18N] Update 7.0 translations with latest changes on Launchpad 2014-08-14 03:38:58 +02:00
l10n_it Launchpad automatic translations update. 2013-11-21 06:38:38 +00:00
l10n_lu [ADD] l10n_lu: abbreviated financial reports 2014-10-06 16:30:10 +02:00
l10n_ma [FIX] l10n_ma: proper chart of account name 2014-08-29 15:46:36 +02:00
l10n_multilang [I18N] Update 7.0 translations with latest changes on Launchpad 2014-08-14 03:38:58 +02:00
l10n_mx [FIX] l10n_mx: account.chart.template does not have any property_stock_account_{in,out}put_categ fields 2013-11-09 00:11:30 +01:00
l10n_nl Launchpad automatic translations update. 2013-11-27 05:39:57 +00:00
l10n_pa [IMP] Improved data for account chart template 2013-09-06 17:35:36 +05:30
l10n_pe Launchpad automatic translations update. 2013-11-21 06:38:38 +00:00
l10n_pl Launchpad automatic translations update. 2013-11-21 06:38:38 +00:00
l10n_pt [FIX] account,account_followup,l10n_{ch,es,pt,us,ve}: correct or remove wrong fields in <record> creation 2013-10-31 19:43:21 +01:00
l10n_ro [FIX] l10n_ro: backport of fix done in res_partner.py from aa76885 2014-09-12 16:06:58 +02:00
l10n_si
l10n_syscohada Launchpad automatic translations update. 2013-11-21 06:38:38 +00:00
l10n_th Launchpad automatic translations update. 2013-11-21 06:38:38 +00:00
l10n_tr [IMP]Improved currency as per country data file 2013-09-09 10:50:54 +05:30
l10n_uk Launchpad automatic translations update. 2013-11-27 05:39:57 +00:00
l10n_us [FIX] account,account_followup,l10n_{ch,es,pt,us,ve}: correct or remove wrong fields in <record> creation 2013-10-31 19:43:21 +01:00
l10n_uy [IMP]Improved currency as per country data file 2013-09-09 10:50:54 +05:30
l10n_ve Launchpad automatic translations update. 2013-11-21 06:38:38 +00:00
l10n_vn [IMP] Improved data for account chart template 2013-09-06 17:35:36 +05:30
lunch [I18N] Update 7.0 translations with latest changes on Launchpad 2014-08-14 03:38:58 +02:00
mail [FIX] mail: set the parent_id to the first message of type email 2014-10-16 14:07:38 +02:00
marketing [I18N] Update 7.0 translations with latest changes on Launchpad 2014-08-14 03:38:58 +02:00
marketing_campaign [I18N] Update 7.0 translations with latest changes on Launchpad 2014-08-14 03:38:58 +02:00
marketing_campaign_crm_demo [I18N] Update 7.0 translations with latest changes on Launchpad 2014-08-14 03:38:58 +02:00
membership Launchpad automatic translations update. 2014-04-22 08:24:59 +00:00
mrp [FIX] mrp: do not reset back stock moves to confirm 2014-09-03 18:25:19 +02:00
mrp_byproduct Launchpad automatic translations update. 2014-05-13 06:28:52 +00:00
mrp_jit Launchpad automatic translations update. 2014-02-17 06:03:28 +00:00
mrp_operations [I18N] Update 7.0 translations with latest changes on Launchpad 2014-08-14 03:38:58 +02:00
mrp_repair [FIX] mrp_repair: invoice the actual invoice partner id 2014-09-12 16:25:48 +02:00
multi_company [I18N] Update 7.0 translations with latest changes on Launchpad 2014-08-14 03:38:58 +02:00
note [I18N] Update 7.0 translations with latest changes on Launchpad 2014-08-14 03:38:58 +02:00
note_pad [I18N] Update 7.0 translations with latest changes on Launchpad 2014-08-14 03:38:58 +02:00
pad [FIX] security: remove read access on company critical fields 2014-08-26 15:35:47 +02:00
pad_project [I18N] Update 7.0 translations with latest changes on Launchpad 2014-08-14 03:38:58 +02:00
plugin [I18N] Update 7.0 translations with latest changes on Launchpad 2014-08-14 03:38:58 +02:00
plugin_outlook [I18N] Update 7.0 translations with latest changes on Launchpad 2014-08-14 03:38:58 +02:00
plugin_thunderbird [I18N] Update 7.0 translations with latest changes on Launchpad 2014-08-14 03:38:58 +02:00
point_of_sale [FIX] point_of_sale: no need to specify numeric digits 2014-10-21 10:13:44 +02:00
portal [FIX] security: res.groups should be readable by admins only 2014-08-26 13:31:41 +02:00
portal_anonymous Launchpad automatic translations update. 2014-02-06 06:25:10 +00:00
portal_claim [I18N] Update 7.0 translations with latest changes on Launchpad 2014-08-14 03:38:58 +02:00
portal_crm [I18N] Update 7.0 translations with latest changes on Launchpad 2014-08-14 03:38:58 +02:00
portal_event [I18N] Update 7.0 translations with latest changes on Launchpad 2014-08-14 03:38:58 +02:00
portal_hr_employees Launchpad automatic translations update. 2014-03-04 08:27:04 +00:00
portal_project [I18N] Update 7.0 translations with latest changes on Launchpad 2014-08-14 03:38:58 +02:00
portal_project_issue [I18N] Update 7.0 translations with latest changes on Launchpad 2014-08-14 03:38:58 +02:00
portal_project_long_term [FIX] portal_project_long_term: fixed access right using a non-existing field. 2013-05-14 13:15:59 +02:00
portal_sale [FIX] portal_sale: force empty context 2014-09-25 11:51:15 +02:00
portal_stock
process Launchpad automatic translations update. 2014-04-02 06:44:59 +00:00
procurement [I18N] Update 7.0 translations with latest changes on Launchpad 2014-08-14 03:38:58 +02:00
product [FIX] product: remove digits_precision from uom factor fields 2014-10-22 14:28:34 +02:00
product_expiry [I18N] Update 7.0 translations with latest changes on Launchpad 2014-08-14 03:38:58 +02:00
product_manufacturer [I18N] Update 7.0 translations with latest changes on Launchpad 2014-08-14 03:38:58 +02:00
product_margin Launchpad automatic translations update. 2014-05-18 05:53:48 +00:00
product_visible_discount [FIX] product_visible_discount: use order date to compute currency instead of current date 2014-08-25 17:53:47 +02:00
project [I18N] Update all 7.0 translation templates with latest terms and annotations 2014-08-14 02:24:24 +02:00
project_gtd [I18N] Update all 7.0 translation templates with latest terms and annotations 2014-08-14 02:24:24 +02:00
project_issue [I18N] Update 7.0 translations with latest changes on Launchpad 2014-08-14 03:38:58 +02:00
project_issue_sheet [I18N] Update 7.0 translations with latest changes on Launchpad 2014-08-14 03:38:58 +02:00
project_long_term [FIX] project_long_term: avoid bad duplication of phases 2014-07-30 16:12:22 +02:00
project_mrp [FIX] project_mrp: task description duplicated + product name translation 2014-09-26 16:05:16 +02:00
project_timesheet [I18N] Update all 7.0 translation templates with latest terms and annotations 2014-08-14 02:24:24 +02:00
purchase [FIX] purchase: minmum purchase quantity and float precision (opw 610557) 2014-09-30 17:04:04 +02:00
purchase_analytic_plans [I18N] Update all 7.0 translation templates with latest terms and annotations 2014-08-14 02:24:24 +02:00
purchase_double_validation [I18N] Update 7.0 translations with latest changes on Launchpad 2014-08-14 03:38:58 +02:00
purchase_requisition [I18N] Update 7.0 translations with latest changes on Launchpad 2014-08-14 03:38:58 +02:00
report_intrastat [RESTORE] Restore *.sxw files, skipped during bzr-to-git conversion to discard older binary blobs 2014-05-22 14:07:15 +02:00
report_webkit [I18N] Update 7.0 translations with latest changes on Launchpad 2014-08-14 03:38:58 +02:00
resource [FIX] resource: security, resource not readable by externals 2014-08-26 18:10:14 +02:00
sale [FIX] sale: translate advance message on advance invoice 2014-10-16 11:04:56 +02:00
sale_analytic_plans Launchpad automatic translations update. 2014-05-18 05:53:48 +00:00
sale_crm [I18N] Update all 7.0 translation templates with latest terms and annotations 2014-08-14 02:24:24 +02:00
sale_journal Launchpad automatic translations update. 2014-05-18 05:53:48 +00:00
sale_margin [FIX] sale_order_line: use order date to compute currency instead of current date 2014-08-25 18:04:43 +02:00
sale_mrp [I18N] Update 7.0 translations with latest changes on Launchpad 2014-08-14 03:38:58 +02:00
sale_order_dates [I18N] Update 7.0 translations with latest changes on Launchpad 2014-08-14 03:38:58 +02:00
sale_stock [I18N] Update 7.0 translations with latest changes on Launchpad 2014-08-14 03:38:58 +02:00
share [I18N] Update 7.0 translations with latest changes on Launchpad 2014-08-14 03:38:58 +02:00
stock [FIX] stock: groups mixup in views 2014-10-06 14:43:11 +02:00
stock_invoice_directly Launchpad automatic translations update. 2014-04-02 06:44:59 +00:00
stock_location Launchpad automatic translations update. 2014-05-18 05:53:48 +00:00
stock_no_autopicking Launchpad automatic translations update. 2014-02-13 06:47:42 +00:00
subscription [I18N] Update all 7.0 translation templates with latest terms and annotations 2014-08-14 02:24:24 +02:00
survey [FIX] survey: access rights error when editing 2014-09-11 17:01:10 +02:00
warning [I18N] Update all 7.0 translation templates with latest terms and annotations 2014-08-14 02:24:24 +02:00
web [FIX] web: cherry-pick of 893e426865 & 61207f3f4d 2014-10-15 09:43:26 +02:00
web_analytics
web_api Launchpad automatic translations update. 2014-05-11 07:08:41 +00:00
web_calendar [FIX] web_calendar: reset dataset index if search result empty 2014-09-24 13:07:59 +02:00
web_diagram [I18N] Update 7.0 translations with latest changes on Launchpad 2014-08-14 03:38:58 +02:00
web_gantt [I18N] Update 7.0 translations with latest changes on Launchpad 2014-08-14 03:38:58 +02:00
web_graph [I18N] Update 7.0 translations with latest changes on Launchpad 2014-08-14 03:38:58 +02:00
web_hello [I18N] Update 7.0 translations with latest changes on Launchpad 2014-08-14 03:38:58 +02:00
web_kanban [FIX] kanban: wrong condition to reset the dataset index 2014-09-18 15:56:23 +02:00
web_linkedin [I18N] Update 7.0 translations with latest changes on Launchpad 2014-08-14 03:38:58 +02:00
web_shortcuts Launchpad automatic translations update. 2014-02-06 06:25:10 +00:00
web_tests Launchpad automatic translations update. 2014-05-11 07:08:41 +00:00
web_tests_demo [FIX] web_test_demo: make test model a TransientModel. This avoid a warning about the lack of access rules 2013-11-08 22:42:55 +01:00
web_view_editor [I18N] Update 7.0 translations with latest changes on Launchpad 2014-08-14 03:38:58 +02:00