تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
284 أدوات العرض

Hello everyone,

I'm trying to create a new button in the view account.move.form with the next code 

button name="envio_whatsapp" class="boton_whatsapp" context="{'from_button_clik' : True}" string="Enviar Whatsapp"


And the function in python is the next one, i'm putting the function in the account_move.py 

def envio_whatsapp(self):

​for record in self

​if record.partner_id.mobile:

​envio = f"https://api.whatsapp.com/send/?phone={record.partner_id.mobile}&text=Hola+con+este+link+puede+acceder+al+estado+de+la+reparacion+&type=phone_number&app_absent=0"


The funcion of the button is it have to send a whatsapp to the number of the client 

الصورة الرمزية
إهمال