odooodoo-14

Change client information on invoice odoo 14


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


Solution

  • 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"