From 3eae335a9b7b0232a6934debffe2b6e886af9ffb Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Mon, 21 Oct 2013 12:05:43 +0200 Subject: [PATCH] [ADD] comment to ir.qweb.field.monetary to explain its workings/purpose bzr revid: xmo@openerp.com-20131021100543-wlsc93puu23qnv8c --- openerp/addons/base/ir/ir_qweb.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/openerp/addons/base/ir/ir_qweb.py b/openerp/addons/base/ir/ir_qweb.py index e103edbb4e0..a250620cc09 100644 --- a/openerp/addons/base/ir/ir_qweb.py +++ b/openerp/addons/base/ir/ir_qweb.py @@ -636,6 +636,10 @@ class MonetaryConverter(osv.AbstractModel): """ ``monetary`` converter, has a mandatory option ``display_currency``. + The currency is used for formatting *and rounding* of the float value. It + is assumed that the linked res_currency has a non-empty rounding value and + res.currency's ``round`` method is used to perform rounding. + .. note:: the monetary converter internally adds the qweb context to its options mapping, so that the context is available to callees. It's set under the ``_qweb_context`` key.