刘涛 odoo-how-to-add-custom-button-on-tree-view http://vitraining.com/odoo-how-to-add-custom-button-on-tree-view/ [1] 虽然已经有了 acttion_button ,见 笔记 :在layui_theme主题下添加按钮到顶部区域 这个仅供学习 <?xml version="1.0" encoding="UTF-8"?> <templates id="sync_templa... odoo汇总 Dec 21, 2021
刘涛 layui_theme下form的自定义布局 示例代码: <record model="ir.ui.view" id="sequence_test_user_form"> <field name="name">用户管理</field> <field name="model">sequence_test.users</field> <field name="arch" type="xml"> <form> <div class="contai... odoo汇总 Dec 21, 2021
刘涛 docker run -idt --name ngrok-server docker run -idt --name ngrok-server -v /data/ngrok:/myfiles -e DOMAIN='ngrok.codercrax.com' hteen/ngrok /bin/sh /server.sh xxxxxxxxxx 1 docker run -idt --name ngrok-server -v /data/n... odoo汇总 Dec 21, 2021
刘涛 do_action 里面domain筛选 this . do_action ({ type : 'ir.actions.act_window' , res_model : "model" , view_mode : 'tree' , view_type : 'tree,form' , views... odoo汇总 Dec 21, 2021
刘涛 git 设置 https://www.jianshu.com/p/f29ca723db4f [1] git 中有 git reflog 命令,能查看所有的操作日志 关于 rebase 和 merge 的设置 为了代码 log 易读,请使用 rebase git config -- global pull.rebase true git config -- global branch.autoSetupReb... odoo汇总 Dec 21, 2021
刘涛 ding ssh funenc@vaiwan.com -p46842 xxxxxxxxxx 1 ssh funenc @ vaiwan . com - p46842 已复制... odoo汇总 Dec 21, 2021
刘涛 odoo12 client html文件注意 < div > < div id= "app" > < el-row type= "flex" align= "middle" :gutter= "20" style= " margin-bottom : 20 px " > < el-table border size= "mini" :data= "tableData" style= " width : 100 % " > < el... odoo汇总 Dec 21, 2021
刘涛 前端session中添加自定义数据 有时候在前端我们需要提取一些和用户身份有关的数据,但是系统默认的又没有,这时候就需要扩展 from odoo.http import request from odoo import models class Http(models.AbstractModel): _inherit = 'ir.http' def session_info(self): user = request.env.us... odoo汇总 Dec 21, 2021
刘涛 tree固定列 先上效果图: 固定列分为左侧固定,右侧固定两种,如果存在左侧固定的情况,#序号列和选择列是一定会被固定的两列 后端xml视图写法: fixed="left" 表示这个字段列固定在左侧 fixed="right" 表示这个字段列固定在右侧 注意 :需要固定在左侧的字段,必须连续排列,并且从第一位开始; 需要固定在右侧的字段,必须连续排列,并且从最后一位开始。 使用固定列的情况下,尽量少地在w... 主题集成组件 Dec 21, 2021
刘涛 tree视图通用导出excel odoo12主题现已集成了tree视图中默认导出当前xml视图的excel功能,例: 在xml中我们需要写上 export_name 属性 <record model="ir.ui.view" id="user_borrow.level_list"> <field name="name">level list</field> <field name="model">user_borrow.lev... 主题集成组件 Dec 21, 2021
刘涛 在layui_theme主题下使用自定义图标icon 1、在当前模块的__manifest__.py文件里添加依赖模块'layui_theme' 2、在需要更改图标的menuitem里添加属性'icon="  "',图标编号进入layui官网查看,或者点击以下链接 http://www.layui.com/doc/element/icon.html [1] 注意:有部分图标失效 [1] http://www.layui.com/d... 主题集成组件 Dec 21, 2021
刘涛 action_button(tree外顶部按钮) 1、xml部分 binding_action为目前菜单menuitem的name值。 2、py部门 这里很灵活了,这是一个弹窗示例,可新建可编辑,form里面的按钮也可以自定义。... 主题集成组件 Dec 21, 2021