Hello,
I have one problem , from sales i need to create one button to create invoice and register the payment. with in one click.
i got one solution to do quotation to Invoice by one click, but now i need to add the invoice to register payment method into it.
"""""""" this is my code , give me one hand to do this
for sale in self:
# Process order
sale.action_button_confirm()
inv_id = sale.action_invoice_create()
if inv_id:
inv = self.env['account.invoice'].browse(inv_id)
inv.signal_workflow('invoice_open')
voc = self.env
self.signal_workflow(cr, uid, ids, 'proforma_voucher')
for picking in sale.picking_ids:
picking.force_assign()
picking.action_done()
***********************
it can able to create invoice within one click, but i need to complete all process including payment into it.
actually it is in odoo 9 coding, i already done this , but it is in v8, so u can refer this,