Files
odoo_source/addons/purchase/models/__init__.py
T
Martin Trigaux 387a77ee32 [FIX] purchase: remove useless and broken override
There was several issues with this method:
- the workflow is incorrectly called (`purchase.signal_workflow(...)` instead)
- the workflow no longer exists (`purchase.state = 'sent'` instead)
- the code is only triggered when sending an actual mail and not a notification
- the code is never executed as the change is already changed

The last point is due to the override of `send_mail` in mail.compose.message.
The state is changed before `_postprocess_sent_message` is called (if called at
all).
Similar change of state is already done for sale.order.

This commit replaces and closes #14760
2016-12-19 15:43:01 +01:00

10 lines
208 B
Python

# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import account_invoice
import purchase
import res_company
import res_config
import res_partner
import stock