koalixcrm icon indicating copy to clipboard operation
koalixcrm copied to clipboard

Integration with oscar & oscar-accounts ?

Open goutnet opened this issue 5 years ago • 2 comments

Would it be possible to integrate with oscar-accounts for the accounts providing?

oscar-accounts provides a bit more features (and plays well with oscar as well)…

it could be either replace the Account model with the oscar-accounts or attach an oscar-account reference to it…

would you accept a pull request that would go in this direction?

goutnet avatar Mar 05 '19 15:03 goutnet

It looks quite promising. I will need to think about your proposal in more detail. I will come back to you once I have a clearer picture.

scaphilo avatar Mar 10 '19 13:03 scaphilo

I am waiting for an answer on their issue tracker before getting serious here:

https://github.com/django-oscar/django-oscar-accounts/issues/64

Depending on their response, the way I saw it would be to use model inheritance to use Oscar-accounts as base class:

https://docs.djangoproject.com/en/2.1/topics/db/models/#model-inheritance

This would ensure koalix to be independent in the way it manages extra fields (ex: account documentation etc..)

goutnet avatar Mar 10 '19 13:03 goutnet