@@ -0,0 +1,52 @@
+# Python
+__pycache__/
+*.py[cod]
+*$py.class
+*.so
+.Python
+build/
+develop-eggs/
+dist/
+downloads/
+eggs/
+.eggs/
+lib/
+lib64/
+parts/
+sdist/
+var/
+wheels/
+*.egg-info/
+.installed.cfg
+*.egg
+
+# Odoo
+*.pot
+*.mo
+*.log
+# IDE
+.idea/
+.vscode/
+*.swp
+*.swo
+*~
+.DS_Store
+# Environment
+.env
+.venv
+env/
+venv/
+ENV/
+# Testing
+.pytest_cache/
+.coverage
+htmlcov/
+# Temporary files
+*.tmp
+*.bak
+*.orig
@@ -10,6 +10,8 @@ class WhatsAppAccount(models.Model):
_inherit = ['whatsapp.account']
whatsapp_web_url = fields.Char(string="WhatsApp Web URL", readonly=False, copy=False)
+ whatsapp_web_login = fields.Char(string="Login", readonly=False, copy=False)
+ whatsapp_web_api_key = fields.Char(string="API Key", readonly=False, copy=False)
def get_groups(self):
"""
@@ -12,6 +12,8 @@
</div>
<group>
<field name="whatsapp_web_url" placeholder="e.g. https://web.whatsapp.com/"/>
+ <field name="whatsapp_web_login" placeholder="Ingrese su Login"/>
+ <field name="whatsapp_web_api_key" placeholder="Ingrese su API Key" password="True"/>
</group>
</sheet>
</field>