update multi add all v1
@@ -17,7 +17,7 @@
|
||||
|
||||
{
|
||||
'name': "App Account Invoice Product Multi Batch Add",
|
||||
'version': '12.0.8.15',
|
||||
'version': '12.19.03.14',
|
||||
'author': 'Sunpop.cn',
|
||||
'category': 'Base',
|
||||
'website': 'http://www.sunpop.cn',
|
||||
|
||||
|
Before Width: | Height: | Size: 51 KiB After Width: | Height: | Size: 43 KiB |
|
Before Width: | Height: | Size: 39 KiB After Width: | Height: | Size: 28 KiB |
@@ -6,10 +6,12 @@
|
||||
<field name="model">account.invoice</field>
|
||||
<field name="inherit_id" ref="account.invoice_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//page/field[@name='invoice_line_ids']" position="attributes">
|
||||
<attribute name="widget">multi_select_tree</attribute>
|
||||
<attribute name="res_model">product.product</attribute>
|
||||
<attribute name="res_field">product_id</attribute>
|
||||
<xpath expr="//page/field[@name='invoice_line_ids']/tree/control" position="inside">
|
||||
<create string="Multi Add Line" context="{
|
||||
'pro_multi_add': True,
|
||||
'pro_res_model': 'product.product',
|
||||
'pro_res_field': 'product_id',
|
||||
}"/>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
@@ -18,10 +20,12 @@
|
||||
<field name="model">account.invoice</field>
|
||||
<field name="inherit_id" ref="account.invoice_supplier_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//page/field[@name='invoice_line_ids']" position="attributes">
|
||||
<attribute name="widget">multi_select_tree</attribute>
|
||||
<attribute name="res_model">product.product</attribute>
|
||||
<attribute name="res_field">product_id</attribute>
|
||||
<xpath expr="//page/field[@name='invoice_line_ids']/tree/control" position="inside">
|
||||
<create string="Multi Add Line" context="{
|
||||
'pro_multi_add': True,
|
||||
'pro_res_model': 'product.product',
|
||||
'pro_res_field': 'product_id',
|
||||
}"/>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
{
|
||||
'name': "App MRP Bom Product Multi Batch Add",
|
||||
'version': '12.0.8.15',
|
||||
'version': '12.19.03.14',
|
||||
'author': 'Sunpop.cn',
|
||||
'category': 'Base',
|
||||
'website': 'http://www.sunpop.cn',
|
||||
|
||||
|
Before Width: | Height: | Size: 51 KiB After Width: | Height: | Size: 43 KiB |
|
Before Width: | Height: | Size: 39 KiB After Width: | Height: | Size: 28 KiB |
@@ -5,13 +5,16 @@
|
||||
<field name="model">mrp.bom</field>
|
||||
<field name="inherit_id" ref="mrp.mrp_bom_form_view"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//field[@name='bom_line_ids']" position="attributes">
|
||||
<!-- Add your fields or attributes here -->
|
||||
<attribute name="widget">multi_select_tree</attribute>
|
||||
<attribute name="res_model">product.product</attribute>
|
||||
<attribute name="res_field">product_id</attribute>
|
||||
<xpath expr="//field[@name='bom_line_ids']/tree/field[1]" position="before">
|
||||
<control>
|
||||
<create string="Add a line"/>
|
||||
<create string="Multi add line" context="{
|
||||
'pro_multi_add': True,
|
||||
'pro_res_model': 'product.product',
|
||||
'pro_res_field': 'product_id',
|
||||
}"/>
|
||||
</control>
|
||||
</xpath>
|
||||
|
||||
</field>
|
||||
</record>
|
||||
</data>
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
{
|
||||
'name': "App Purchase Order Product Multi Batch Add",
|
||||
'version': '12.0.8.15',
|
||||
'version': '12.19.03.14',
|
||||
'author': 'Sunpop.cn',
|
||||
'category': 'Base',
|
||||
'website': 'http://www.sunpop.cn',
|
||||
|
||||
|
Before Width: | Height: | Size: 51 KiB After Width: | Height: | Size: 43 KiB |
|
Before Width: | Height: | Size: 39 KiB After Width: | Height: | Size: 28 KiB |
@@ -5,12 +5,16 @@
|
||||
<field name="model">purchase.order</field>
|
||||
<field name="inherit_id" ref="purchase.purchase_order_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//page/field[@name='order_line']" position="attributes">
|
||||
<attribute name="widget">multi_select_tree</attribute>
|
||||
<attribute name="res_model">product.product</attribute>
|
||||
<attribute name="res_field">product_id</attribute>
|
||||
<xpath expr="//page/field[@name='order_line']/tree/field[1]" position="before">
|
||||
<control>
|
||||
<create string="Add a product"/>
|
||||
<create string="Multi Add Product" context="{
|
||||
'pro_multi_add': True,
|
||||
'pro_res_model': 'product.product',
|
||||
'pro_res_field': 'product_id',
|
||||
}"/>
|
||||
</control>
|
||||
</xpath>
|
||||
|
||||
</field>
|
||||
</record>
|
||||
</data>
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
{
|
||||
'name': "App Sale Order Product Multi Batch Add",
|
||||
'version': '12.0.8.15',
|
||||
'version': '12.19.03.14',
|
||||
'author': 'Sunpop.cn',
|
||||
'category': 'Base',
|
||||
'website': 'http://www.sunpop.cn',
|
||||
|
||||
@@ -7,10 +7,12 @@
|
||||
<field name="model">sale.order</field>
|
||||
<field name="inherit_id" ref="sale.view_order_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//page/field[@name='order_line']" position="attributes">
|
||||
<attribute name="widget">multi_select_tree</attribute>
|
||||
<attribute name="res_model">product.product</attribute>
|
||||
<attribute name="res_field">product_id</attribute>
|
||||
<xpath expr="//page/field[@name='order_line']/tree/control" position="inside">
|
||||
<create string="Multi add product" context="{
|
||||
'pro_multi_add': True,
|
||||
'pro_res_model': 'product.product',
|
||||
'pro_res_field': 'product_id',
|
||||
}"/>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
{
|
||||
'name': "App Stock Picking Order Product Multi Batch Add",
|
||||
'version': '12.0.8.15',
|
||||
'version': '12.19.03.14',
|
||||
'author': 'Sunpop.cn',
|
||||
'category': 'Base',
|
||||
'website': 'http://www.sunpop.cn',
|
||||
|
||||
|
Before Width: | Height: | Size: 51 KiB After Width: | Height: | Size: 43 KiB |
|
Before Width: | Height: | Size: 39 KiB After Width: | Height: | Size: 28 KiB |
@@ -5,12 +5,15 @@
|
||||
<field name="model">stock.picking</field>
|
||||
<field name="inherit_id" ref="stock.view_picking_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//page/field[@name='move_ids_without_package']" position="attributes">
|
||||
<attribute name="widget">multi_select_tree</attribute>
|
||||
<attribute name="res_model">product.product</attribute>
|
||||
<attribute name="res_field">product_id</attribute>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//page/field[@name='move_ids_without_package']/tree/field[1]" position="before">
|
||||
<control>
|
||||
<create string="Add a line"/>
|
||||
<create string="Multi add line" context="{
|
||||
'pro_multi_add': True,
|
||||
'pro_res_model': 'product.product',
|
||||
'pro_res_field': 'product_id',
|
||||
}"/>
|
||||
</control>
|
||||
</field>
|
||||
</record>
|
||||
</data>
|
||||
|
||||