Odoo Help


[V8] Phone number formatting in invoice report

Aurélien Rivet
on 4/18/16, 5:24 AM 677 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 ?

About This Community

This platform 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.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


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