[ADD] comment to ir.qweb.field.monetary to explain its workings/purpose

bzr revid: xmo@openerp.com-20131021100543-wlsc93puu23qnv8c
This commit is contained in:
Xavier Morel 2013-10-21 12:05:43 +02:00
parent a348a5e92f
commit 3eae335a9b
1 changed files with 4 additions and 0 deletions

View File

@ -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.