res_company_views.xml 3.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <record id="view_company_form_inherit_google_workspace" model="ir.ui.view">
  4. <field name="name">res.company.form.inherit.google.workspace</field>
  5. <field name="model">res.company</field>
  6. <field name="inherit_id" ref="base.view_company_form"/>
  7. <field name="arch" type="xml">
  8. <xpath expr="//notebook" position="inside">
  9. <page string="Google Workspace" name="google_workspace">
  10. <group>
  11. <group string="Google Drive CRM Integration">
  12. <field name="google_drive_crm_enabled"/>
  13. <field name="google_drive_crm_folder_id"
  14. invisible="not google_drive_crm_enabled"/>
  15. <field name="google_drive_crm_folder_name"
  16. invisible="not google_drive_crm_enabled"/>
  17. <field name="google_drive_crm_stage_id"
  18. invisible="not google_drive_crm_enabled"
  19. options="{'no_create': True, 'no_open': True}"/>
  20. <field name="google_drive_crm_field_id"
  21. invisible="not google_drive_crm_enabled"
  22. options="{'no_create': True, 'no_open': True}"/>
  23. </group>
  24. </group>
  25. <group invisible="not google_drive_crm_enabled">
  26. <button name="action_test_google_drive_connection"
  27. string="Test Google Drive Connection"
  28. type="object"
  29. class="btn btn-primary me-2"/>
  30. <button name="action_open_google_drive_folder"
  31. string="Open Google Drive Folder"
  32. type="object"
  33. class="btn btn-secondary me-2"
  34. invisible="not google_drive_crm_folder_id"/>
  35. <button name="action_create_google_drive_folder"
  36. string="Create Test Folder"
  37. type="object"
  38. class="btn btn-secondary me-2"/>
  39. <button name="action_list_google_drive_folders"
  40. string="List Folders"
  41. type="object"
  42. class="btn btn-secondary"/>
  43. </group>
  44. <div class="alert alert-info" role="alert" invisible="not google_drive_crm_enabled">
  45. <strong>Google Drive CRM Configuration:</strong>
  46. <ul class="mb-0 mt-2">
  47. <li>Configure el folder principal de Google Drive para documentos del CRM</li>
  48. <li>Seleccione la etapa del CRM en la que se crearán automáticamente las carpetas</li>
  49. <li>Estructura automática: Empresa/Contacto → Año → Oportunidad → [Meets/Archivos cliente]</li>
  50. <li><strong>Requisito:</strong> Las oportunidades deben tener contacto asignado</li>
  51. <li><strong>Prioridad:</strong> Nombre de empresa (si existe) → Nombre de contacto</li>
  52. <li><strong>Actualización automática:</strong> Al modificar oportunidades, se revisa toda la estructura</li>
  53. <li><strong>Seguridad:</strong> Las carpetas nunca se eliminan automáticamente</li>
  54. <li>Los documentos se organizarán automáticamente por empresa/contacto y oportunidad</li>
  55. </ul>
  56. </div>
  57. </page>
  58. </xpath>
  59. </field>
  60. </record>
  61. </odoo>