Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[IMP] remove string attribute in tree view #117

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.xml:
(<tree[^>]*?)\s+string="[^"]*": \1
2 changes: 1 addition & 1 deletion tests/data_template/module_160/views/res_partner.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<field name="zip" position="after">
<field name="test_field_1"/>
<field name="task_ids" editable="bottom">
<tree editable="bottom" delete="false">
<tree editable="bottom" string="remove_string" delete="false">
<field name="id"/>
<field name="name"/>
<button name="get_formview_action" type="object" title="Open Task" icon="fa-pencil-square-o"/>
Expand Down
4 changes: 2 additions & 2 deletions tests/data_template/module_170/views/res_partner.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<field name="model">res.partner</field>
<field name="arch" type="xml">
<!-- This is a tree view for partners -->
<tree position="inside">
<tree position="inside" string="remove_string">
<field name="test_field_1"/>
</tree>
</field>
Expand All @@ -32,7 +32,7 @@
<field name="model">res.partner</field>
<field name="arch" type="xml">
<xpath expr="//form" position="inside">
<tree>
<tree string="remove_string">
<field name="name"/>
</tree>
</xpath>
Expand Down
Loading