[ADD] whatsapp and telegram phone
This commit is contained in:
parent
467b1b200c
commit
0204140430
@ -24,6 +24,12 @@ class ResPartner(models.Model):
|
|||||||
string="Representative acts on the basis of", help="Parent Case",
|
string="Representative acts on the basis of", help="Parent Case",
|
||||||
)
|
)
|
||||||
signature = fields.Binary(string="Client signature")
|
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")
|
@api.depends("street", "street2", "city", "state_id", "zip", "country_id")
|
||||||
def _compute_full_address(self):
|
def _compute_full_address(self):
|
||||||
|
@ -52,6 +52,11 @@
|
|||||||
<field name="function_genitive" attrs="{'invisible': [('is_company','=', True)]}"/>
|
<field name="function_genitive" attrs="{'invisible': [('is_company','=', True)]}"/>
|
||||||
</xpath>
|
</xpath>
|
||||||
|
|
||||||
|
<xpath expr="//field[@name='mobile']" position="after">
|
||||||
|
<field name="phone_whatsapp"/>
|
||||||
|
<field name="phone_telegram"/>
|
||||||
|
</xpath>
|
||||||
|
|
||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user