تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2 الردود
4045 أدوات العرض

I'm building my web page in Odoo and I would like to know if it is possible to get data though input and then store it, using a defined model.

Thanks!!!

الصورة الرمزية
إهمال

Thanks for your reply, problem solved!

Odoo Controller Examples:

1 - https://goo.gl/gPjPas

2 - https://goo.gl/SEHNbA

أفضل إجابة

Hi,

Yes it possible and you can see a lot of examples in Odoo code itself, you can check the working of the contact us form in the website.

For doing the same without code see this: Record Data To Backend Models From Website Form - Without Code

And in this blog it is shown how the input value in the web form is received in the controller, so after that you can crate the record in backend models by calling create method of required model:  Odoo get web form or template value in controller


Thanks

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
0
يونيو 21
3099
1
يناير 20
3324
0
أغسطس 24
1162
1
يوليو 24
3694
7
نوفمبر 17
32000