There's more...

Some business models have a requirement where you need a separate alias per record. For example, the sales team model has separate aliases for each team, such as [email protected] for Team India and [email protected] for Team Belgium. If you want to manage such aliases in your model, you can use mail.alias.mixin. In order to use it in your model, you will need to inherit the mixin:

class Team(models.Model):
_name = 'crm.team'
_inherit = ['mail.alias.mixin', 'mail.thread']

After inheriting the mixin, you will need to add the alias_name field into the form view so the end users can add aliases by themselves.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset