Skip to content

[IMP] crm_sale_ux: Implement auto mark opportunities as Won feature o…#1680

Closed
lef-adhoc wants to merge 1 commit into
ingadhoc:19.0from
adhoc-dev:19.0-t-68144-lef
Closed

[IMP] crm_sale_ux: Implement auto mark opportunities as Won feature o…#1680
lef-adhoc wants to merge 1 commit into
ingadhoc:19.0from
adhoc-dev:19.0-t-68144-lef

Conversation

@lef-adhoc
Copy link
Copy Markdown
Contributor

…n sales order confirmation

@roboadhoc
Copy link
Copy Markdown
Contributor

Pull request status dashboard

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Este PR agrega una opción de configuración en CRM para que, al confirmar una cotización/pedido de venta vinculado a una oportunidad, dicha oportunidad se marque automáticamente como Ganada (Won). Esto extiende el módulo crm_sale_ux para alinear el flujo de ventas con el estado del pipeline CRM.

Changes:

  • Agrega un setting en Ajustes de CRM para habilitar/deshabilitar el auto-marcado de oportunidades como Won al confirmar ventas.
  • Sobrescribe sale.order.action_confirm() para, si el setting está activo, ejecutar action_set_won() sobre las oportunidades vinculadas.
  • Incorpora tests automatizados que cubren el comportamiento habilitado/deshabilitado.

Reviewed changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
crm_sale_ux/views/res_config_settings_views.xml Agrega el bloque de setting en la vista de configuración de CRM.
crm_sale_ux/models/res_config_settings.py Define el booleano con config_parameter para persistir el setting.
crm_sale_ux/models/sale_order.py Implementa el marcado automático como Won tras action_confirm() cuando está habilitado.
crm_sale_ux/tests/test_auto_set_won.py Agrega pruebas para validar ambos escenarios (setting on/off).
crm_sale_ux/tests/init.py Registra el archivo de tests nuevo.
crm_sale_ux/models/init.py Exporta los nuevos modelos del módulo.
crm_sale_ux/init.py Importa models para que carguen las extensiones.
crm_sale_ux/README.rst Documenta la nueva opción de configuración.
crm_sale_ux/manifest.py Ajusta dependencias y declara la nueva vista en data.


sale_exception_installed = self.env["sale.order"]._fields.get("ignore_exception")
if sale_exception_installed:
self.env["exception.rule"].search([("active", "=", True)]).write({"active": False})
@matiasperalta1
Copy link
Copy Markdown
Contributor

@roboadhoc r+ bump

roboadhoc pushed a commit that referenced this pull request May 28, 2026
…n sales order confirmation

closes #1680

Signed-off-by: matiasperalta1 <mnp@adhoc.com.ar>
@roboadhoc roboadhoc closed this in bf19785 May 28, 2026
roboadhoc added a commit that referenced this pull request May 28, 2026
@roboadhoc roboadhoc added the 18.1 label May 28, 2026
@roboadhoc roboadhoc deleted the 19.0-t-68144-lef branch May 28, 2026 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants