[IMP] core: avoid duplicates in `depends` and `depends_context`
[IMP] core: avoid duplicates in `depends` and `depends_context`

Repeated calls to `registry.setup_models()` will eventually introduce
many duplicates in the those attributes, which may slow down the
determination of computation triggers.

X-original-commit: 735e65f7ca45616881336121d10a874412446dcf
Co-authored-by: Xavier Morel <0f311f41b2be8e2b5de98776566d712cdc154ca4@odoo.com>
ygol/odoo,ygol/odoo,ygol/odoo,ygol/odoo,ygol/odoo,ygol/odoo,ygol/odoo