- How do we extend an existing Model to add a mixin, such as mail.thread?
Both in-place classic extension and mixin prototype inheritance use the same _inherit Model attribute. For example, to extend x and add the y mixin, we should have the _name='x' model attribute and the _inherit = ['x', 'y'] Model attribute.
- What changes are needed to also have the phone field available in the member form view?
No model changes are needed, since a phone field exists in partners, and delegation inheritance makes all partner fields also available on the member Model. We only need to add the field to the form view, for example, next to the email field: <field name=phone" />.
- What happens if you create a Model class with name attribute different form the inherit attribute (for example, _name='y' and _inherit='x')? ...