为视图继承添加更多操作符
项目描述
编写此模块是为了简化添加自定义操作符以实现视图继承。
目录
用法
更改python字典(例如上下文)
<attribute name="$attribute" operation="python_dict" key="$key">
$new_value
</attribute>
请注意,视图无论如何都受xmlid的评估,所以如果您需要引用某些xmlid,例如%(xmlid)s。
在视图中移动元素
<xpath expr="$xpath" position="move" target="$targetxpath" />
这也可以用来将一些元素包裹在另一个元素中,首先创建目标元素,然后将您想要包裹的节点移动到那里。
向列表中的值添加(例如状态)
<attribute name="$attribute" operation="list_add">
$new_value(s)
</attribute>
从列表中移除值(例如状态)
<attribute name="$attribute" operation="list_remove">
$remove_value(s)
</attribute>
已知问题/路线图
添加 <attribute operation="json_dict" key="$key">$value</attribute>
支持 <xpath expr="$xpath" position="move" target="xpath" target_position="position" />
为我们的新节点类型支持 eval 属性
错误跟踪器
错误在 GitHub Issues 上跟踪。如果在遇到问题时,请检查那里您的问题是否已经被报告。如果您是第一个发现它的人,请帮助我们通过提供详细和受欢迎的 反馈。
请勿直接联系贡献者以获取支持或技术问题的帮助。
致谢
贡献者
Holger Brunn <hbrunn@therp.nl>
Ronald Portier <rportier@therp.nl>
赛尔吉奥·特鲁埃尔 <sergio.teruel@tecnativa.com>
维护者
本模块由OCA维护。
OCA,即Odoo社区协会,是一个非营利组织,其使命是支持Odoo功能的协作开发并推广其广泛应用。
此模块是GitHub上OCA/server-tools项目的一部分。
欢迎您贡献。要了解如何贡献,请访问https://odoo-community.org/page/Contribute。
项目详情
关闭
哈希值 for odoo11_addon_base_view_inheritance_extension-11.0.1.0.0.99.dev5-py2.py3-none-any.whl
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 64d3ee12c71d85e82bc5325250a923015316368c8136e3036081e4b78fe3c36d |
|
MD5 | dd5785748f3372d45088bf671b90850c |
|
BLAKE2b-256 | cd92fb08efbac99dccfebdeb184369a0cdef33aee0841dbb3118ef1909800129 |