Hi,
This is my code its not working ...how to chnage
from openerp import models, api
class SaleOrder(models.Model):
_inherit = 'sale.order'
@api.multidef 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()
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Accounting
- Inventory
- PoS
- Project management
- MRP
This question has been flagged
3382
Views
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up
Hello, Try this module https://www.odoo.com/apps/modules/10.0/sale_automatic_workflow/ Thanks,