zoukankan      html  css  js  c++  java
  • Odoo12 重大改变

    Table of Contents

    重构的功能

    ORM

    数据导入

    库存

    库存规则

    MRP

    多步路线

    新功能

    IoT

       

    Odoo12 预计 2018/10 在 Odoo experience 2018 峰会发布,截止目前 大部分功能都已就绪。

       

    重构的功能

    ORM

    支持批量新建、修改记录

    增加 装饰器 @api.model_create_multi 用于接收 变量字典列表, 而装饰器 @api.model 用于接收 变量字典

    例如:

    @api.model

    def create(self,vals):

    ...

       

    @api.model_create_multi

    def create(self,vals_list):

    ...

       

    create() 支持 单个 变量字典,或则 变量字典列表,

    例如:

    >>>self.create({'name':"Joe"})

    res.partner(78)

    >>>self.create([{'name':"Jack"},{'name':"William"},{'name':"Averell"}])

    res.partner(79,80,81)

       

       

    数据导入

    支持导出模板

       

    导出模板

    如果要让模型提供导入模板, 需要实现方法 get_import_templates()

       

       

       

    库存

    库存规则

    拉式规则、推式规则合并命名为 库存规则stock.rule; stock 在库存规则stock.rule 增加 3个动作, 推push、拉pull、推拉pull&push,之前的 供应方式 不变,还是 mts 和 mto; mrp 在库存规则stock.rule 增加动作 制造manufacture; purchase 在库存规则stock.rule 增加动作 购买buy

       

    库存规则支持的动作:

       

       

       

    MRP

    多步路线

    默认内建 发料和入库路线, 在仓库配置时, 可以选择

       

    在使用了 mrp 路线的仓库 产生的制造订单,会增加相应的仓库作业, 例如

       

       

    新功能

    IoT

    odoo Posbox 概念升级为 IoT box, 是一个运行在 树莓派里面的 mini Odoo, 核心模块是 hw_proxy, 以及 其他 hw_开头的模块

    运行的IoT box 往 odoo 注册,这样, 从odoo可以查看到 注册的 IoT box 以及每个 IoT box 连接的设备, 这些设备可以是 打印机,扫描器,电子秤,摄像头,显示屏【广告/客户显示】

    同时,在 报表 里面集成了 IoT device. 用于 打印报表

    当 报告作为html 格式显示时, 就可以触发打印纸 IoT Device.

       

    貌似,还将为 企业版的 quality, 和 mrp 集成 IoT box

       

    附上代码提交日志。

    When an IoT box is configured as IoT box, it will

    send all the information about itself and its devices

    to its server. This way the server knows which ip and which

    devices are on the iotbox. Reports and in the enterprise

    version quality points will be linked to devices.

    In the module iot, the models and the controller are defined for this.

       

    There is also a javascript part with a widget for taking

    a measure and the possibility to link any report with a printer device.

       

  • 相关阅读:
    tomcat 堆内存设置
    Java日历类(GregorianCalendar和Calendar)的简单例子
    oracle中的greatest 函数和 least函数
    极光推送
    oracle的start with connect by prior如何使用
    Eclipse菜单栏中Tomcat 插件的配置
    svn取消关联
    nagios检测http
    python升级
    fabric
  • 原文地址:https://www.cnblogs.com/odoouse/p/9642175.html
Copyright © 2011-2022 走看看