Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
5455 มุมมอง

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.

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

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?

Related Posts ตอบกลับ มุมมอง กิจกรรม
0
มี.ค. 25
1090
2
มิ.ย. 20
6146
Convert currency in invoice Odoo v8 แก้ไขแล้ว
1
ส.ค. 18
4380
2
พ.ค. 16
3396
4
มี.ค. 16
14826