[ADD] whatsapp and telegram phone

This commit is contained in:
Stepan Savelyev 2019-12-30 16:01:44 +05:00
parent 467b1b200c
commit 0204140430
2 changed files with 11 additions and 0 deletions

View File

@ -24,6 +24,12 @@ class ResPartner(models.Model):
string="Representative acts on the basis of", help="Parent Case",
)
signature = fields.Binary(string="Client signature")
phone_whatsup = fields.Char(
string="WhatsApp", help="If a contact have a WhatsApp number",
)
phone_telegram = fields.Char(
string="Telegram", help="If a contact have a Telegram number or identifier",
)
@api.depends("street", "street2", "city", "state_id", "zip", "country_id")
def _compute_full_address(self):

View File

@ -52,6 +52,11 @@
<field name="function_genitive" attrs="{'invisible': [('is_company','=', True)]}"/>
</xpath>
<xpath expr="//field[@name='mobile']" position="after">
<field name="phone_whatsapp"/>
<field name="phone_telegram"/>
</xpath>
</field>
</record>