odoo-shopinvader icon indicating copy to clipboard operation
odoo-shopinvader copied to clipboard

[13.0][IMP]shopinvader: restrict duplicate partner emails per backend

Open GuillemCForgeFlow opened this issue 1 year ago • 2 comments

Only restrict the duplicated Partner Emails per Backend. Meaning that we can have we can have two Shopinvader Partners belonging to different Websites but still having the same e-mail.

cc @ForgeFlow

GuillemCForgeFlow avatar Nov 03 '23 13:11 GuillemCForgeFlow

Thank you for the contrib @GuillemCForgeFlow! Unique email is a constraint that could be implemented in different way depending of the business context. In your case, you would like to allow duplicate partners by backend. In other cases we could want to allows the reuse of the same partner for all the backends, etc...

To at least not break the existing implementation, we could give the choice on the strategy to apply to check for duplicate emails....

lmignon avatar Nov 13 '23 07:11 lmignon

Hi @lmignon I have just worked on the changes you were suggesting in https://github.com/shopinvader/odoo-shopinvader/pull/1477 if you'd like to take a look 😄

GuillemCForgeFlow avatar Nov 29 '23 08:11 GuillemCForgeFlow