10 lines
383 B
Python
10 lines
383 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).
|
|
|
|
|
|
def update_partner_display_name(env):
|
|
partners = env['res.partner'].with_context(active_test=False).search(
|
|
[('ref', '!=', False)])
|
|
partners.write({'invalidate_display_name': True})
|