OCA / partner-contact

Odoo Partner and Contact related addons
GNU Affero General Public License v3.0
213 stars 855 forks source link

[16.0][FIX] partner_manual_rank: Compatibility with Odoo default #1849

Open lmignon opened 2 months ago

lmignon commented 2 months ago

The introduction of default values for the fields 'is_customer' and 'is_supplier' breaks the compatibility when the create method on partner is called with once of the fields 'supplier_rank', 'customer_rank'. To restore this compatibility, we ovveride the create method to initialize the 'is_customer' and 'is_supplier' fields into the given dict if 'supplier_rank' or 'customer_rank' are passed to the method.

OCA-git-bot commented 2 months ago

Hi @luisg123v, @frahikLV, some modules you are maintaining are being modified, check this out!

lmignon commented 2 months ago

ping @ypapouin @sbejaoui @rousseldenis