|
@@ -25,8 +25,6 @@ from openerp import models, api
|
|
|
class PurchaseOrder(models.Model):
|
|
|
_inherit = 'purchase.order'
|
|
|
|
|
|
-
|
|
|
-
|
|
|
def action_purchase_confirm(self, cr, uid, ids, context=None):
|
|
|
if not context:
|
|
|
context = {}
|
|
@@ -42,10 +40,6 @@ class PurchaseOrder(models.Model):
|
|
|
for purchase in self:
|
|
|
# Process order
|
|
|
purchase.action_purchase_confirm()
|
|
|
- # inv_id = purchase.action_invoice_create()
|
|
|
- # if inv_id:
|
|
|
- # inv = self.env['account.invoice'].browse(inv_id)
|
|
|
- # inv.signal_workflow('invoice_open')
|
|
|
for picking in purchase.picking_ids:
|
|
|
picking.force_assign()
|
|
|
- picking.action_done()
|
|
|
+ picking.action_done()
|