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

How can a make a button "create new product" from website builder available on website page?

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

Hi,

If you are looking to create a form in web page for the creating the product, either you can create your own page and button for this using the code or you can use the form builder module for this purpose. 


This is a third party free module available in the store, you can get it from here: https://www.odoo.com/apps/modules/10.0/html_form_builder/


Check the index file of the above module, you will get idea about how to use it. Just drag the form builder snippet to your web page and show the fields in form so that user can enter and create records.


Thanks

อวตาร
ละทิ้ง
ผู้เขียน

Thanks! But i still don't understand how to call the needed action.

ผู้เขียน

Thanks so much! everything works!

ผู้เขียน

I use this form for creation a new product from webpage, but it writes the value of record "created_by" always OdooBot while i need to define user in this field. how can i change this logic?

ผู้เขียน

it's a trouble(

ผู้เขียน

So i can't use html_form_builder, because i need to define access rules (products are visible only for their creators).

I have found the java script method in website_sale module, but now i don't know how make him avaliable in my custom module.

Related Posts ตอบกลับ มุมมอง กิจกรรม
Odoo Mail Sending Limit แก้ไขแล้ว
2
ธ.ค. 23
14901
0
ต.ค. 23
33
3
ต.ค. 23
789
1
ต.ค. 23
569
1
ส.ค. 23
2549