企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
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,不可更新