Odoo视图继承总结Odoo.docx

  1. 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
  2. 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  3. 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
Odoo(OpenERP)视图继承总结 ODOO 支持的视图类型:form、tree、search... 支持的定位方法: notebook position=inside xpath expr=//page[@name=page_history]position=inside field name=mobileposition=after filter name=consumableposition=after group name=bankposition=after xpath expr=//field[@name=standard_price]position=replace xpath expr=//button[@name=open_ui]position=replace xpath expr=//div[@class=oe_employee_details]/h4/aposition=after xpath expr=/form/sheet/notebook/page/field[@name=line_ids]/tree/field[@name=analytic_a ccount_id]position=replace xpath expr=/form/sheet/notebook/page/field[@name=line_ids]/form/group/field[@name=an alytic_account_id]position=replace 支持的规则:before、after、replace、inside、attributes 插入: position=before position=after field name=mobileposition=after field name=sale_order_count/ /field filter name=consumableposition=after separator/ filter name=filter_to_qty_availablestring= 在 手 数 量0icon=terp-accessories-archiver+domain=[(qty_available,,0)]/ filter name=filter_to_virtual_availablestring= 预 测 数 量0icon=terp-accessories-archiver+domain=[(virtual_available,,0)]/ /filter 替换: position=replace xpath expr=//field[@name=standard_price]position=replace group name=cost_pricescolspan=2col=4 field name=standard_pricenolabel=1attrs={readonly:[(cost_method,=,average)]}/ field name=cost_price_extragroups=product.group_product_variant/ /group /xpath xpath expr=//button[@name=open_ui]position=replace button name=open_uitype=objectstring=Start Sellingattrs={invisible:[(pos_state,not in,(opened,))]}class=oe_highlightinvisible=True/ /xpath 内部创建:? position=inside xpath expr=//page[@name=page_history]position=inside group name=grp_taskstring=Tasks field name=task_idscolspan=4nolabel=1 tree string=Taskseditable=bottom field name=name/ /tree /field /group /xpath 修改属性:修改属性能够实现的功能,不要使用 replace position=attributes xpath expr=//field[@name=name]position=attributes attribute name=required1/attribute /xpath 示例代码: record id=product_normal_variant_form_viewmodel=ir.ui.view field name=nameproduct.normal

文档评论(0)

mph + 关注
官方认证
内容提供者

该用户很懒,什么也没介绍

认证主体上海谭台科技有限公司
IP属地湖北
统一社会信用代码/组织机构代码
91310115MA7CY11Y3K

1亿VIP精品文档

相关文档