02 2020 档案
摘要:连接的符号为"&" 字串需要使用双引号(单引号不行) 例如 ="123"&"456"
阅读全文
摘要:本位转自:https://blog.csdn.net/yxwmzouzou/article/details/32330679?depth_1-utm_source=distribute.pc_relevant.none-task&utm_source=distribute.pc_relevant.n
阅读全文
摘要:可以在conf 文件中设置配置信息: 参考: https://stackoverflow.com/questions/25928519/odoo log archiving
阅读全文
摘要:```python In [18]: c = '你好' In [20]: d = c.encode('unicode_escape') In [21]: d Out[21]: b'\\u4f60\\u597d' In [23]: e = d.decode('utf-8') In [24]: e Out[24]: '\\u4f60\\u597d' In [25]: type(e) Out[25]:
阅读全文
摘要:### 在调用方法结束后返回该字典信息. ```python return { 'warning': { 'title': '产品不存在', 'message': '产品不存在,产品编码:{}'.format(barcode) }} ``` 笑哭,只能用在onchange事件中 > https://
阅读全文
摘要:在这两个模型中添加字段会导致,odoo 服务重启失败, 现在提供两种解决办法: 方案一: 直接在数据库中添加新加入的字段 方案二: 将该模块卸载重新安装.
阅读全文
摘要:参考: https://www.jianshu.com/p/3fb96365f33e 我的需求,根据订单明细中选择的产品,来筛选库存中的数据,只筛选出当前产品下的库存. 重点摘要: 1. context 传值. 2. 修改查询的方法:name_search( 针对many2many_tags )/n
阅读全文
摘要:例如: 源代码中是这样写的 经过odoo 编译之后: 也就是说会将动作的外部id名称转换为外部id的id
阅读全文
摘要:使用nginx监听8070端口,并转发到8067端口 我的配置文件如下: ps:我是用来反向代理odoo系统,测试结果是ok的
阅读全文
摘要:```python use this chunk of code USER_PRIVATE_FIELDS = ['password'] @api.model def _check_credentials(self, password): result = super(LoginUserDetail, self)._check_credentials(password) ip_address = r
阅读全文
摘要:https://blog.csdn.net/shorile/article/details/79020927 使用的tinnyproxy 服务, 配置很简单, 1. 安装 2. 配置文件 编辑配置/etc/tinyproxy/tinyproxy.conf,找到Allow 127.0.0.1行,前面加
阅读全文