I have made controller in my module and have created one table similar to the controller(url link), now if user enters the data in url then in my database it should be automaticallly created i.e. in my table
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Kế toán
- Tồn kho
- PoS
- Project
- MRP
Câu hỏi này đã bị gắn cờ
1
Trả lời
2276
Lượt xem
Create record using Odoo Create method inside your URL controller function
from odoo.http import request
@http.route('/your/url',type='json', auth='user')
def invoice_payment(self, **kwargs):
request.env['your.table'].create({'name': 'ABC','column2': 'XYX'})
Bạn có hứng thú với cuộc thảo luận không? Đừng chỉ đọc, hãy tham gia nhé!
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng ký