Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

empty self and context in invoice created from sale order

By
Raffaele
on 11/16/15, 8:56 AM 338 views

Hallo

in V8 I'm trying to access to the id and the context of an "final" invoice created from the sale order wizard.

While using the fixed price they are OK, when issuing a final invoice for the whole sale order I get these results:

  • logging the content of self outputs "account.invoice()" and id is false

  • logging the content of context outputs {}

The final invoice gets created by the method manual_invoice in sale.py (about line 453), called from create_invoice in sale_make_invoice_advance.py (about line 168).

The invoice then opens in the form, and is already present in the database: how can I retrieve its id or some other field?

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 11/16/15, 8:56 AM
Seen: 338 times
Last updated: 11/16/15, 8:56 AM