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

How to create an invoice from a student registration form

By
Abdullah Sofan
on 9/27/13, 5:59 AM 1,428 views

I'm creating a student registration module. I'm very new to Openobject and still in the design phase so I'd appreciate it if you can help me do this right.

The registration module should take the following information from the user:

Student Name (res.partner) Course batch Name, Course Fee,

Upon pressing Save, the registration should be saved and a new invoice should be generated for that student with the amount of the Course Fee above.

I know how to create the registration form and how to inherit from res.partner, I just want to know how to generate an invoice using the Course Fee input.

Your help is appreciated.

0
joseph d'souza
On 9/27/13, 10:43 AM

Make one object tye button and and set method on that button. In that button method code Make one dict of all vals of your current object and pass in a create method of invoice. Button method rerun type is True now when you click on that button it will create a invoice .

Have a good day

Thanks dsouzajoseph199@gmail.com

Thank you for your reply, but I have no idea how to do that or where to start. Can you show me an simple example or direct me to some code that I can learn from?

Abdullah Sofan
on 10/1/13, 6:36 PM

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

0 follower(s)

Stats

Asked: 9/27/13, 5:59 AM
Seen: 1428 times
Last updated: 3/16/15, 8:10 AM