Stéphan Sainléger ca00968b63 [FIX] partner_profiles: remove writes to removed customer/supplier fields
In Odoo 16 the ``customer`` and ``supplier`` boolean fields on
``res.partner`` were replaced by the ``customer_rank`` /
``supplier_rank`` integer counters, but the migration kept the block
forcing them to ``False`` for public profiles. Any creation of a
public profile therefore raised
``AttributeError: 'res.partner' object has no attribute 'customer'``,
which also broke main profile creation through
``create_public_profile``.

Remove the dead block instead of porting it to the new fields: ranks
default to 0 and are only incremented on invoice posting through
``_increase_rank`` on the commercial partner, so a public profile
never becomes a customer or supplier anyway. The original intent is
preserved without redundant writes.
2026-11-03 14:07:53 +01:00
2024-10-28 10:34:52 +01:00
2022-10-15 10:29:42 +02:00
Description
No description provided
GPL-3.0 1.7 MiB
Languages
Python 79.9%
JavaScript 16.8%
Shell 3.3%