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.

   


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM