add email in receiver

This commit is contained in:
Camilo Sarmiento 2020-07-07 15:05:15 -05:00
parent 14f2ed40c3
commit ab98fa4517
3 changed files with 4 additions and 3 deletions

View file

@ -30,6 +30,7 @@ class ReceiverService(ModelSQL, ModelView):
__name__ = 'crm.receiver_service'
_rec_name = 'name'
name = fields.Char('Name', required=True)
email = fields.Char('Email', required=True)
def get_rec_name(self, name):
self._rec_name = self.name

View file

@ -4,6 +4,6 @@ this repository contains the full copyright notices and license terms. -->
<form>
<label name="name"/>
<field name="name"/>
<!-- <label name="email"/>
<field name="email"/> -->
<label name="email"/>
<field name="email"/>
</form>

View file

@ -3,5 +3,5 @@
this repository contains the full copyright notices and license terms. -->
<tree editable="bottom">
<field name="name"/>
<!-- <field name="email"/> -->
<field name="email"/>
</tree>