Skip to Content
Menu
This question has been flagged
3382 Views



Hi,
This is my code its not working ...how to chnage
from openerp import models, api

class SaleOrder(models.Model):
_inherit = 'sale.order'
@api.multi
   def action_confirm(self):
res = super(SaleOrder, self).action_confirm()
inv_id = sale.create_invoices()
print 'inv_issssssssssssss',inv_id
if inv_id:
inv = self.env['account.invoice'].browse(inv_id)
inv.action_invoice_open()
for picking in sale.picking_ids:
picking.force_assign()
picking.action_done()


 
Avatar
Discard