I have a field priority = fields.Selection(
[('10', '10'), ('20', '20'), ('30', '30'), ('40', '40'), ('50', '50'), ('60', '60'), ('70', '70'),
('80', '80'), ('90', '90'), ('100', '100')], string='Priority (%)', default='10')
I want to display this field in my website Form@http.route(['/wishlist_create_website'], type="http", auth="public", methods=['GET'], website=True)
def register_admission1(self, **kw):
product_id = request.env['product.product'].sudo().search([])
#How to fetch priority field value from backend?kw.update({'products': product_id,})
return request.render('my.my_control', kw)
At which model did you define priority?
hi...
class Myorder():
_name='my.wisho'