OCA / multi-company

GNU Affero General Public License v3.0
100 stars 281 forks source link

[15.0][FIX] product_multi_company: do not allow to remove company if there is stock or moves in that company #671

Open JoanSForgeFlow opened 1 month ago

JoanSForgeFlow commented 1 month ago

This fix addresses the issue where companies could be removed from a product's company_ids field even when there are existing stock quantities or stock moves associated with that company. The update adds validation checks to prevent the removal of a company under these conditions, ensuring data integrity and preventing potential inconsistencies