Odoo Help


This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


[V8] Phone number formatting in invoice report

Aurélien Rivet
on 4/18/16, 5:24 AM 215 views

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 ?

Your Answer

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

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)


Asked: 4/18/16, 5:24 AM
Seen: 215 times
Last updated: 5/27/16, 7:34 AM