Hi I would like to add spaces between numbers in phonenumbers on invoice reports.
I know there is the base_phone module which can provide some facility to do it. I follow the advices in the module description and add a field like the following in my xml file :
<span t-esc="o.partner_id and o.partner_id.phone and format(o.partner_id.phone, phone=True, phone_format='national') or ''" />
But a NoneType Exception is raised.
If I replace partner_id with user_id it works as expected.
Could someone help ?
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 4/18/16, 5:24 AM|
|Seen: 252 times|
|Last updated: 5/27/16, 7:34 AM|