Arbore/arbore#155 add supplier name to purchase order lines in a separate column
This commit is contained in:
parent
8049272620
commit
fc3b037436
10 changed files with 338 additions and 0 deletions
40
product_supplier_name_purchase/views/purchase_order_view.xml
Normal file
40
product_supplier_name_purchase/views/purchase_order_view.xml
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<odoo>
|
||||
|
||||
<record id="purchase_order_form_supplier_name" model="ir.ui.view">
|
||||
<field name="name">purchase.order.form.supplier.name</field>
|
||||
<field name="model">purchase.order</field>
|
||||
<field name="inherit_id" ref="purchase.purchase_order_form" />
|
||||
<field name="arch" type="xml">
|
||||
<xpath
|
||||
expr="//field[@name='order_line']//tree//field[@name='product_id']"
|
||||
position="after"
|
||||
>
|
||||
<field name="product_supplier_name" optional="hide" />
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="purchase_order_line_tree_supplier_name" model="ir.ui.view">
|
||||
<field name="name">purchase.order.line.tree.supplier.name</field>
|
||||
<field name="model">purchase.order.line</field>
|
||||
<field name="inherit_id" ref="purchase.purchase_order_line_tree" />
|
||||
<field name="arch" type="xml">
|
||||
<field name="product_id" position="after">
|
||||
<field name="product_supplier_name" optional="show" />
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="purchase_order_line_search_supplier_name" model="ir.ui.view">
|
||||
<field name="name">purchase.order.line.search.supplier.name</field>
|
||||
<field name="model">purchase.order.line</field>
|
||||
<field name="inherit_id" ref="purchase.purchase_order_line_search" />
|
||||
<field name="arch" type="xml">
|
||||
<field name="product_id" position="after">
|
||||
<field name="product_supplier_name" />
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
Loading…
Add table
Add a link
Reference in a new issue