Change client information on invoice odoo 14

89 views Asked by At

In the invoice template, i want to change the place of client information, I want the zip code after the street address directly, I can't find the source code of it. where i can find the source code ? enter image description here

2

There are 2 answers

0
Mohamed Jmal On BEST ANSWER

I fount the concatenation fields in _get_default_address_format(self) API in /opt/odoo14/odoo/odoo/addons/base/models/res_partner.py, starting on line 921:

@api.model
def _get_default_address_format(self):
    return "%(street)s\n%(street2)s\n%(zip)s %(city)s  %(state_code)s\n%(country_name)s"
3
Chirag On

Hi I hope this will help you.

  1. Open Debug Mode.
  2. Go to Settings -> Technical Settings -> Reporting -> Report.
  3. Find the name of your print menu. enter image description here

enter image description here 4. In that menu, you will be able to locate a "Template Name." This will be the main report. enter image description here

  1. Go to Views and find this template and change as you want