Skip to Content
Menu
This question has been flagged
1 Atsakyti
4029 Rodiniai

Hi everybody,

I developped an android application that use XML-RPC to communicate with the server.

All request returns non-formatted text,

I tried to force the context but no changes

if not context : 
    context = {}
user = self.pool.get('res.users').read(cr, uid, uid, ['lang','tz'])
context.update({'lang' : str(user.get('lang',u'fr_FR'))})
context.update({'tz' : str(user.get('tz',u'GMT'))})
context.update({'uid' : uid})
result = {}

then I use :

for invoice in self.browse(cr, uid, ids, context=context):
    res = _('Name : ') + (invoice.number or '') + EOL
    res += _('Etat : ') + ( invoice.state or '') + EOL
    res += _('Date de la facture : ') + (invoice.date_invoice or '') + EOL

It returns :

Name : INV0002
Etat : paid
Date de la facture : 2014-04-22

A help please

Portretas
Atmesti
Best Answer

type(date(field_date))

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
1
geg. 20
4005
0
kov. 15
3637
0
kov. 15
3017
3
liep. 25
3024
0
gruod. 24
1457