mirror of
https://github.com/guohuadeng/app-odoo.git
synced 2025-02-23 04:11:36 +02:00
app_web_one2many_multi_add related modules v18
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<odoo>
|
||||
<data>
|
||||
<record id="app_purchase_order_form" model="ir.ui.view">
|
||||
<field name="name">app.purchase.order.form</field>
|
||||
<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']/list/control" position="inside">
|
||||
<create name="multi_add_line" string="Multi Add Product"
|
||||
context="{
|
||||
'pro_multi_add': True,
|
||||
'pro_res_model': 'product.product',
|
||||
'pro_res_field': 'product_id',
|
||||
}" />
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
</data>
|
||||
</odoo>
|
||||
Reference in New Issue
Block a user