update multi add all v1

This commit is contained in:
ivan deng
2019-03-14 22:39:48 +08:00
parent dbd68aa5da
commit 54e80560fa
18 changed files with 62 additions and 46 deletions

View File

@@ -17,7 +17,7 @@
{ {
'name': "App Account Invoice Product Multi Batch Add", 'name': "App Account Invoice Product Multi Batch Add",
'version': '12.0.8.15', 'version': '12.19.03.14',
'author': 'Sunpop.cn', 'author': 'Sunpop.cn',
'category': 'Base', 'category': 'Base',
'website': 'http://www.sunpop.cn', 'website': 'http://www.sunpop.cn',

Binary file not shown.

Before

Width:  |  Height:  |  Size: 51 KiB

After

Width:  |  Height:  |  Size: 43 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 39 KiB

After

Width:  |  Height:  |  Size: 28 KiB

View File

@@ -6,10 +6,12 @@
<field name="model">account.invoice</field> <field name="model">account.invoice</field>
<field name="inherit_id" ref="account.invoice_form"/> <field name="inherit_id" ref="account.invoice_form"/>
<field name="arch" type="xml"> <field name="arch" type="xml">
<xpath expr="//page/field[@name='invoice_line_ids']" position="attributes"> <xpath expr="//page/field[@name='invoice_line_ids']/tree/control" position="inside">
<attribute name="widget">multi_select_tree</attribute> <create string="Multi Add Line" context="{
<attribute name="res_model">product.product</attribute> 'pro_multi_add': True,
<attribute name="res_field">product_id</attribute> 'pro_res_model': 'product.product',
'pro_res_field': 'product_id',
}"/>
</xpath> </xpath>
</field> </field>
</record> </record>
@@ -18,10 +20,12 @@
<field name="model">account.invoice</field> <field name="model">account.invoice</field>
<field name="inherit_id" ref="account.invoice_supplier_form"/> <field name="inherit_id" ref="account.invoice_supplier_form"/>
<field name="arch" type="xml"> <field name="arch" type="xml">
<xpath expr="//page/field[@name='invoice_line_ids']" position="attributes"> <xpath expr="//page/field[@name='invoice_line_ids']/tree/control" position="inside">
<attribute name="widget">multi_select_tree</attribute> <create string="Multi Add Line" context="{
<attribute name="res_model">product.product</attribute> 'pro_multi_add': True,
<attribute name="res_field">product_id</attribute> 'pro_res_model': 'product.product',
'pro_res_field': 'product_id',
}"/>
</xpath> </xpath>
</field> </field>
</record> </record>

View File

@@ -17,7 +17,7 @@
{ {
'name': "App MRP Bom Product Multi Batch Add", 'name': "App MRP Bom Product Multi Batch Add",
'version': '12.0.8.15', 'version': '12.19.03.14',
'author': 'Sunpop.cn', 'author': 'Sunpop.cn',
'category': 'Base', 'category': 'Base',
'website': 'http://www.sunpop.cn', 'website': 'http://www.sunpop.cn',

Binary file not shown.

Before

Width:  |  Height:  |  Size: 51 KiB

After

Width:  |  Height:  |  Size: 43 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 39 KiB

After

Width:  |  Height:  |  Size: 28 KiB

View File

@@ -5,13 +5,16 @@
<field name="model">mrp.bom</field> <field name="model">mrp.bom</field>
<field name="inherit_id" ref="mrp.mrp_bom_form_view"/> <field name="inherit_id" ref="mrp.mrp_bom_form_view"/>
<field name="arch" type="xml"> <field name="arch" type="xml">
<xpath expr="//field[@name='bom_line_ids']" position="attributes"> <xpath expr="//field[@name='bom_line_ids']/tree/field[1]" position="before">
<!-- Add your fields or attributes here --> <control>
<attribute name="widget">multi_select_tree</attribute> <create string="Add a line"/>
<attribute name="res_model">product.product</attribute> <create string="Multi add line" context="{
<attribute name="res_field">product_id</attribute> 'pro_multi_add': True,
'pro_res_model': 'product.product',
'pro_res_field': 'product_id',
}"/>
</control>
</xpath> </xpath>
</field> </field>
</record> </record>
</data> </data>

View File

@@ -17,7 +17,7 @@
{ {
'name': "App Purchase Order Product Multi Batch Add", 'name': "App Purchase Order Product Multi Batch Add",
'version': '12.0.8.15', 'version': '12.19.03.14',
'author': 'Sunpop.cn', 'author': 'Sunpop.cn',
'category': 'Base', 'category': 'Base',
'website': 'http://www.sunpop.cn', 'website': 'http://www.sunpop.cn',

Binary file not shown.

Before

Width:  |  Height:  |  Size: 51 KiB

After

Width:  |  Height:  |  Size: 43 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 39 KiB

After

Width:  |  Height:  |  Size: 28 KiB

View File

@@ -5,12 +5,16 @@
<field name="model">purchase.order</field> <field name="model">purchase.order</field>
<field name="inherit_id" ref="purchase.purchase_order_form"/> <field name="inherit_id" ref="purchase.purchase_order_form"/>
<field name="arch" type="xml"> <field name="arch" type="xml">
<xpath expr="//page/field[@name='order_line']" position="attributes"> <xpath expr="//page/field[@name='order_line']/tree/field[1]" position="before">
<attribute name="widget">multi_select_tree</attribute> <control>
<attribute name="res_model">product.product</attribute> <create string="Add a product"/>
<attribute name="res_field">product_id</attribute> <create string="Multi Add Product" context="{
'pro_multi_add': True,
'pro_res_model': 'product.product',
'pro_res_field': 'product_id',
}"/>
</control>
</xpath> </xpath>
</field> </field>
</record> </record>
</data> </data>

View File

@@ -17,7 +17,7 @@
{ {
'name': "App Sale Order Product Multi Batch Add", 'name': "App Sale Order Product Multi Batch Add",
'version': '12.0.8.15', 'version': '12.19.03.14',
'author': 'Sunpop.cn', 'author': 'Sunpop.cn',
'category': 'Base', 'category': 'Base',
'website': 'http://www.sunpop.cn', 'website': 'http://www.sunpop.cn',

View File

@@ -7,10 +7,12 @@
<field name="model">sale.order</field> <field name="model">sale.order</field>
<field name="inherit_id" ref="sale.view_order_form"/> <field name="inherit_id" ref="sale.view_order_form"/>
<field name="arch" type="xml"> <field name="arch" type="xml">
<xpath expr="//page/field[@name='order_line']" position="attributes"> <xpath expr="//page/field[@name='order_line']/tree/control" position="inside">
<attribute name="widget">multi_select_tree</attribute> <create string="Multi add product" context="{
<attribute name="res_model">product.product</attribute> 'pro_multi_add': True,
<attribute name="res_field">product_id</attribute> 'pro_res_model': 'product.product',
'pro_res_field': 'product_id',
}"/>
</xpath> </xpath>
</field> </field>
</record> </record>

View File

@@ -17,7 +17,7 @@
{ {
'name': "App Stock Picking Order Product Multi Batch Add", 'name': "App Stock Picking Order Product Multi Batch Add",
'version': '12.0.8.15', 'version': '12.19.03.14',
'author': 'Sunpop.cn', 'author': 'Sunpop.cn',
'category': 'Base', 'category': 'Base',
'website': 'http://www.sunpop.cn', 'website': 'http://www.sunpop.cn',

Binary file not shown.

Before

Width:  |  Height:  |  Size: 51 KiB

After

Width:  |  Height:  |  Size: 43 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 39 KiB

After

Width:  |  Height:  |  Size: 28 KiB

View File

@@ -5,12 +5,15 @@
<field name="model">stock.picking</field> <field name="model">stock.picking</field>
<field name="inherit_id" ref="stock.view_picking_form"/> <field name="inherit_id" ref="stock.view_picking_form"/>
<field name="arch" type="xml"> <field name="arch" type="xml">
<xpath expr="//page/field[@name='move_ids_without_package']" position="attributes"> <xpath expr="//page/field[@name='move_ids_without_package']/tree/field[1]" position="before">
<attribute name="widget">multi_select_tree</attribute> <control>
<attribute name="res_model">product.product</attribute> <create string="Add a line"/>
<attribute name="res_field">product_id</attribute> <create string="Multi add line" context="{
</xpath> 'pro_multi_add': True,
'pro_res_model': 'product.product',
'pro_res_field': 'product_id',
}"/>
</control>
</field> </field>
</record> </record>
</data> </data>