summaryrefslogtreecommitdiff
path: root/addons/decimal_precision/tests/test_qweb_float.py
AgeCommit message (Collapse)Author
2019-07-03[IMP] decimal_precision: integrate into baseMitali Patel
The decimal precision feature makes sense to be an ORM feature, no need to be in a specific module Previous syntax was from odoo.addons import decimal_precision as dp fields.Float(digits=dp.get_precision('Foo')) and now is: fields.Float(digits='Foo') Remove the possibility to have a callable method on the digits attribute (it was only used for precision anyway) and directly retrieve the digits on the decimal.precision model Rename the method digits to get_digits to avoid confusion between the field attribute when declaring a field and the method to retrieve the precision Task id: 48198
2016-08-10[IMP] various: use odoo for imports instead of openerp and update class namesThibault Delavallée
2016-07-06[MIG] decimal_precision: migrate to new APIXavier Morel
2016-07-05[FIX] qweb: float widget: use same rounding as orm float fieldChristophe Matthieu
42,12345 with precision=4 should be 42,1235 and not 42,1234
2016-07-05[IMP] qweb: add t-options on t-esc and t-raw who use 'ir.qweb.field' modelsChristophe Matthieu
Remove 'field' from 'value_to_html' method attributes 't-esc' escape the result of the widget. (Added 'remove_span' as option for monetary widget) E.g.: <t t-esc="32" t-options='t-options='{"widget": "monetary", "display_currency": website.currency_id, "remove_span": True}'> result: $ 365.00
2014-11-04[IMP] use model._fields instead of model._all_columns to cover all fieldsRaphael Collet
The old-api model._all_columns contains information about model._columns and inherited columns. This dictionary is missing new-api computed non-stored fields, and the new field objects provide a more readable api... This commit contains the following changes: - adapt several methods of BaseModel to use fields instead of columns and _all_columns - copy all semantic-free attributes of related fields from their source - add attribute 'group_operator' on integer and float fields - base, base_action_rule, crm, edi, hr, mail, mass_mailing, pad, payment_acquirer, share, website, website_crm, website_mail: simply use _fields instead of _all_columns - base, decimal_precision, website: adapt qweb rendering methods to use fields instead of columns
2013-10-21[ADD] decimal precision support to float t-field renderingXavier Morel
bzr revid: xmo@openerp.com-20131021094533-e510uy6byck85xma