Skip to content

[FIX] sale_order_type_automation: check type_id is set before checking invoicing automation#1641

Open
gal-adhoc wants to merge 1 commit intoingadhoc:18.0from
adhoc-dev:18.0-h-115934-gal
Open

[FIX] sale_order_type_automation: check type_id is set before checking invoicing automation#1641
gal-adhoc wants to merge 1 commit intoingadhoc:18.0from
adhoc-dev:18.0-h-115934-gal

Conversation

@gal-adhoc
Copy link
Copy Markdown
Contributor

Changes

  • [FIX] sale_order_type_automation: check type_id is set before checking invoicing automation

Without this check, a sale order with no type_id would pass the filter in run_invoicing_atomation because accessing invoicing_atomation on an empty Many2one returns False, and False != "none" evaluates to True, causing the order to be auto-invoiced unintentionally.

Related

Helpdesk ticket: #115934
Branch: 18.0-h-115934-gal

@roboadhoc
Copy link
Copy Markdown
Contributor

Pull request status dashboard

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants