-
Notifications
You must be signed in to change notification settings - Fork 82
[IMP] sale_order_type_automation: add sale order and invoice exclusio… #1631
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -94,8 +94,12 @@ class SaleOrderType(models.Model): | |||||||||||||
| compute="_compute_auto_done_setting", | ||||||||||||||
| ) | ||||||||||||||
| invoice_validate_domain = fields.Char( | ||||||||||||||
|
||||||||||||||
| invoice_validate_domain = fields.Char( | |
| invoice_validate_domain = fields.Char( | |
| string="Invoice Validation Domain", | |
| help="Domain to include invoices for automatic validation. Invoices matching this domain will be validated automatically.", | |
| ) | |
| invoice_validate_exclusion_domain = fields.Char( |
Copilot
AI
Apr 16, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
El nuevo campo se llama sale_order_filter_domain, pero la etiqueta/ayuda lo describen como “Exclusion Domain”. El nombre técnico sugiere un filtro genérico y puede inducir a configurar lo contrario. Recomendación: renombrarlo ahora (p. ej. sale_order_exclusion_domain o sale_order_skip_validation_domain) antes de que haya datos en producción; si se decide mantenerlo, al menos alinear nombre/etiqueta/semántica.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Falta un test que cubra el nuevo flujo
sale_order_filter_domain: si el SO matchea el dominio, debe generarse la factura pero no validarse (quedar en draft), incluso coninvoicing_atomation='validate_invoice'. Hay tests en el módulo pero hoy no verifican este caso.