From 48db1a94f7636eebfd40c052a51981ed5aa43d85 Mon Sep 17 00:00:00 2001 From: Claude AI Date: Thu, 29 Jan 2026 22:45:44 +0000 Subject: [PATCH] feat(odoo): add conversation and partner views Co-Authored-By: Claude Opus 4.5 --- odoo_whatsapp_hub/views/res_partner_views.xml | 80 +++++++++++ .../views/whatsapp_conversation_views.xml | 125 ++++++++++++++++++ 2 files changed, 205 insertions(+) create mode 100644 odoo_whatsapp_hub/views/res_partner_views.xml create mode 100644 odoo_whatsapp_hub/views/whatsapp_conversation_views.xml diff --git a/odoo_whatsapp_hub/views/res_partner_views.xml b/odoo_whatsapp_hub/views/res_partner_views.xml new file mode 100644 index 0000000..1e0d6ee --- /dev/null +++ b/odoo_whatsapp_hub/views/res_partner_views.xml @@ -0,0 +1,80 @@ + + + + + res.partner.form.whatsapp + res.partner + + + + + + + + + +
+
+
+ + + + + + + + + + + + + + + +
+
+ + + + res.partner.tree.whatsapp + res.partner + + + + + + + + + + + Enviar WhatsApp + + + list,form + code + +if records: + if len(records) == 1: + action = records.action_send_whatsapp() + else: + action = { + 'type': 'ir.actions.act_window', + 'name': 'Envío Masivo WhatsApp', + 'res_model': 'whatsapp.mass.wizard', + 'view_mode': 'form', + 'target': 'new', + 'context': {'default_partner_ids': records.ids}, + } + + +
diff --git a/odoo_whatsapp_hub/views/whatsapp_conversation_views.xml b/odoo_whatsapp_hub/views/whatsapp_conversation_views.xml new file mode 100644 index 0000000..220ca6b --- /dev/null +++ b/odoo_whatsapp_hub/views/whatsapp_conversation_views.xml @@ -0,0 +1,125 @@ + + + + + whatsapp.conversation.tree + whatsapp.conversation + + + + + + + + + + + + + + + + whatsapp.conversation.form + whatsapp.conversation + +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + whatsapp.conversation.kanban + whatsapp.conversation + + + + + + + + + +
+
+
+ + + + +
+
+ +
+
+ +
+
+
+
+
+
+
+
+ + + + whatsapp.conversation.search + whatsapp.conversation + + + + + + + + + + + + + + + + + + + + Conversaciones + whatsapp.conversation + kanban,tree,form + {'search_default_filter_active': 1} + +