![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Odoo
蓝绿色~菠菜
对技术有一颗敬畏和严谨之心,对代码有精益求精的精神。像养小孩和女朋友一样,精心照料和打扮。想清楚了再干,坚持高标准,Design for future!
展开
-
Odoo 三级联动的实现
省 res.country.state (odoo中已经存在)市 country.city (需新建)class CountryCity(models.Model): _name = 'country.city' _description = "城市模型" state_id = fields.Many2one('res.country.state', strin...原创 2020-02-26 10:38:36 · 1469 阅读 · 0 评论 -
Odoo type=object按钮事件执行流程
以下载pdf文件按钮为例:1、点击Download PDF按钮,会触发向/web/dataset/call_button发送请求,后台返回基本参数2、js成功收到后台返回数据,再次向/report/download发送请求,3、后台经过一系列处理将html页面转化成PDF文件并返回...原创 2020-02-21 08:58:38 · 589 阅读 · 0 评论