renderElement: function (ev) { var self = this; $.when(this._super()) .then(function (ev) { rpc.query({ model: 'wenshid.wsdata', method: 'get_sb_list', args: [], }) .then(function (result) { $('#divsb').append('<select id="sb_select">\n' + ' <option id="this_year"\n' + ' value="this_year">' + result.record + '</option>'+ ' <option id="this_sb"\n' +
odoo15 js 修改前端字段值
最新推荐文章于 2023-02-28 20:14:43 发布
本文介绍了如何在Odoo15中使用JavaScript动态修改前端字段值,通过rpc查询获取数据填充到下拉框,并设置输入日期字段的默认值。
摘要由CSDN通过智能技术生成