'Prepare the dict of values to create the new invoice for a pos order.'

def _prepare_invoice(self):

    return {'name': self.name, 'origin': self.name, 'account_id': self.partner_id.property_account_receivable_id.id, 'journal_id': self.session_id.config_id.invoice_journal_id.id, 'company_id': self.company_id.id, 'type': 'out_invoice', 'reference': self.name, 'partner_id': self.partner_id.id, 'comment': (self.note or ''), 'currency_id': self.pricelist_id.currency_id.id, 'user_id': self.env.uid}
