1. # ir.actions.actions,動作
* ir.actions.client
* 表名稱:ir\_act\_client
* 客戶端動作定義
* # ir.actions.act\_url
* 表名稱:ir\_act\_url
* url跳轉
* # ir.actions.act\_window
* 表名稱:ir\_act\_window
* 打開顯示窗口
* ### ir.actions.act\_window
* name,char, Actions Name,動作名稱
* res\_model,char,Destination Model,對象模型,res\_model
* src\_model,char,Source Model , 指定可以啟動視圖的更多按鈕
* target,Target Window ,selection,目標窗口選擇,當前窗口\/新窗口...
* type,Action Type,動作類型,char
* usage, Action Usage ,char
* view\_type,View Type ,視圖類型,selection,
* views,binary,?
* view\_mode,View Mode,視圖 ,char
* view\_id,View Ref ,many2one-> ir.ui.view ,視圖定義的id
* view\_ids,one2many-> ir.actions.act\_window.view
* search\_view ,搜索視圖,text
* search\_view\_id,Search View Ref,many2one-> ir.ui.view
* Domain Value,域定義
* Context Value,場景定義
* Limit,整數,結果數量限制
* Auto Refresh,自動刷新時間,單位秒?,integer
* Auto Search,自動搜索使能,bool
* Filter,過濾使能,bool
* multi,Restrict to lists,bool, multi 設為True, 更多按鈕顯示在列表視圖,否則顯示在表單視圖
* groups\_id,組id,many2many
* help,幫助信息
* ## ir.actions.act\_window.view ,多視圖的定義
1. act\_window\_id ,many2one, ir.actions.act\_window ,動作的id,一個動作可以有多個視圖
2. multi,bool,?
3. sequence ,integer,順序編號
4. view\_id , many2one , ir.ui.view ,關聯的視圖ID
5. view\_mode , selection ,視圖類型
* # ir.actions.act\_window\_close
* 表名稱: ir.actions.act\_window\_close
* 字段
* id , integer
* name ,char
* type ,char, Action Type
* usage , char , Action Usage
* # ir.actions.wizard
* 表名稱:未找到
* # ir.actions.report.xml
* 字段
* attachment .char,附件前綴
* attachment\_use ,boolean ,使用附件
* auto , boolean , Custom Python Parser
* display\_name ,char
* header , boolean , Add RML Header
* model ,char
* model\_id ,float
* multi , boolean , On Multiple Doc.
* name ,char
* paperformat\_id , many2one -> report.paperformat
* parser , char , Parser Class
* report\_file , char , Report File
* report\_name , char , Template Name
* report\_rml , char , Main Report File Path\/controller
* report\_rml\_content , binary , RML Content
* report\_rml\_content\_data , binary , RML Content
* report\_sxw , char , SXW Path
* report\_sxw\_content , binary , SXW Content
* report\_sxw\_content\_data , binary , SXW Content
* report\_type , selection , Report Type
* report\_xml ,char, XML Path
* report\_xsl ,char, XSL Path
* type , char , Action Type
* usage ,char, Action Usage
* ir.actions.server
* 表名稱:ir\_act\_server
* 用來執行服務器端的動作。可以執行的動作有:
* > state': fields.selection\(\[
> \('client\_action','Client Action'\),
> \('dummy','Dummy'\),
> \('loop','Iteration'\),
> \('code','Python Code'\),
> \('trigger','Trigger'\),
> \('email','Email'\),
> \('sms','SMS'\),
> \('object\_create','Create Object'\),
> \('object\_copy','Copy Object'\),
> \('object\_write','Write Object'\),
> \('other','Multi Actions'\),
> \], 'Action Type', required=True, size=32, help="Type of the Action that is to be executed"\),
* ir\_model\_data
* 所有的記錄在Odoo數據庫中都有一個獨一無二的標識碼id,Odoo是通過 `ir.model.data` 模型來管理這些外部id的。ir.model.data模型對應的SQL表格是 `ir_model_data` 。這個表格里面存儲著各個模型外部名字ID(通過record標簽的id屬性指定)和具體數據庫某個表格ID的映射關系。
* 字段
* complete\_name :完整名稱
* date\_init :初始日期
* date\_update :更新時間
* model :模型名稱
* module :模塊名稱
* name : External Identifier ,標識名稱
* noupdate :boolean,不可更新