Hello i have created a custom module , and i dsplay the fields in a qweb report which i also created , the problem is when i look at the module i a normal list view data shows correctly like :
deposit :45.00
How ever if print the custom report : the data shown is 45.0
here is an example of my modules code :
from openerp.osv import fields,osv
from openerp import tools
class cm_rental_contracts(osv.osv):
_name = "cm.rental.contracts"
_description = "Camden Market Rental Contracts"
_auto = False
_columns = {
'name':fields.char('Name'),
'address':fields.char('Address'),
'address2':fields.char('Address2'),
'state':fields.char('Town'),
'city':fields.char('City'),
'post_code':fields.char('Post Code'),
'country':fields.char('Country'),
'sale_items':fields.char('Items of Sale'),
'rent':fields.char('Rent'),
'outgoing':fields.char('Outgoing'),
'service_charge':fields.char('Service Charge'),
'contract_category':fields.char('Contracts Category'),
'deposit':fields.float('Deposit'),
'start_date':fields.date('Start Date'),
'units':fields.char('units'),
'invoicing_company':fields.char('Invoicing Company'),
'invoicing_company_number':fields.char('Invoicing Company Number')
here is an example of a line of in my qweb report in which calls data from my module and displays it :
<font t-field ="o.rent" face="Arial, serif">:</font>
Is there any way to fix this ?