Files
odoo-usability/base_partner_ref/post_install.py
Florent THOMAS 47b029c2d2 FIX: The field has been removed by 0aa31956e0
This Commit adapt the post install script consequently
2025-05-27 00:33:38 +02:00

13 lines
459 B
Python

# Copyright 2023 Akretion France (http://www.akretion.com/)
# @author: Alexis de Lattre <alexis.delattre@akretion.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import api, SUPERUSER_ID
def update_partner_display_name(cr, registry):
env = api.Environment(cr, SUPERUSER_ID, {})
partners = env['res.partner'].with_context(active_test=False).search(
[('ref', '!=', False)])
partners._compute_display_name()