Closed deniscraciungabriel closed 6 months ago
modifying the SQL constraint seemed too much invasive.
Well, I allready saw some overload of SQL constraint in OCA modules. that is not hard to do, and it makes the code very much simpler. what is the drawback you think ?
@legalsylvain thanks. Then, I would close this in favour of https://github.com/OCA/multi-company/pull/574
Hi @legalsylvain thanks for your feedback.
We considered that implementation, but, as
ir.config_parameter
contains the constraint('key_uniq', 'unique (key)', 'Key must be unique.')
, having acompany_id
field would imply to have duplicatedkey
; and modifying the SQL constraint seemed too much invasive.