[IMP] account,sale{_management}: set name on create elements

For easier xpath

Followup of odoo/odoo#30534

closes odoo/odoo#30711
This commit is contained in:
Yenthe666
2019-01-31 08:25:13 +00:00
committed by Martin Trigaux
parent 0748e13426
commit 5ae4941bde
4 changed files with 11 additions and 11 deletions
@@ -476,9 +476,9 @@
>
<tree string="Invoice Lines" editable="bottom">
<control>
<create string="Add a line"/>
<create string="Add a section" context="{'default_display_type': 'line_section'}"/>
<create string="Add a note" context="{'default_display_type': 'line_note'}"/>
<create name="add_line_control" string="Add a line"/>
<create name="add_section_control" string="Add a section" context="{'default_display_type': 'line_section'}"/>
<create name="add_note_control" string="Add a note" context="{'default_display_type': 'line_note'}"/>
</control>
<field name="sequence" widget="handle"/>
+4 -4
View File
@@ -384,10 +384,10 @@
decoration-info="(not display_type and invoice_status == 'to invoice')"
>
<control>
<create string="Add a product"/>
<create string="Configure a product" context="{'open_product_configurator': True}" groups="product.group_product_variant"/>
<create string="Add a section" context="{'default_display_type': 'line_section'}"/>
<create string="Add a note" context="{'default_display_type': 'line_note'}"/>
<create name="add_product_control" string="Add a product"/>
<create name="configure_product_control" string="Configure a product" context="{'open_product_configurator': True}" groups="product.group_product_variant"/>
<create name="add_section_control" string="Add a section" context="{'default_display_type': 'line_section'}"/>
<create name="add_note_control" string="Add a note" context="{'default_display_type': 'line_note'}"/>
</control>
<field name="sequence" widget="handle" />
@@ -74,9 +74,9 @@
</form>
<tree string="Quotation Template Lines" editable="bottom">
<control>
<create string="Add a product"/>
<create string="Add a section" context="{'default_display_type': 'line_section'}"/>
<create string="Add a note" context="{'default_display_type': 'line_note'}"/>
<create name="add_product_control" string="Add a product"/>
<create name="add_section_control" string="Add a section" context="{'default_display_type': 'line_section'}"/>
<create name="add_note_control" string="Add a note" context="{'default_display_type': 'line_note'}"/>
</control>
<field name="display_type" invisible="1"/>
@@ -11,7 +11,7 @@
<field name="sale_order_option_ids">
<tree string="Sales Quotation Template Lines" editable="bottom">
<control>
<create string="Add a product"/>
<create name="add_product_control" string="Add a product"/>
</control>
<field name="sequence" widget="handle"/>
<field name="product_id"/>