| 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <odoo> |
| 3 | <record id="purchase_bill_line_match_tree" model="ir.ui.view"> |
| 4 | <field name="name">purchase.bill.line.match.list</field> |
| 5 | <field name="model">purchase.bill.line.match</field> |
| 6 | <field name="arch" type="xml"> |
| 7 | <list string="Purchase Bill Lines" |
| 8 | decoration-info="pol_id != False" |
| 9 | decoration-muted="state == 'draft'" |
| 10 | editable="bottom" edit="1" |
| 11 | type="object"> |
| 12 | <header> |
| 13 | <button name="action_match_lines" type="object" string="Match" groups="account.group_account_invoice" class="btn btn-primary"/> |
| 14 | <button name="action_add_to_po" type="object" string="Add to PO" groups="purchase.group_purchase_user"/> |
| 15 | </header> |
| 16 | <field name="partner_id" string="Vendor" optional="hidden"/> |
| 17 | <field name="reference" widget="open_match_line_widget"/> |
| 18 | <field name="display_name" string="Product Description" decoration-it="not product_id"/> |
| 19 | <field name="product_uom_qty" string="Quantity"/> |
| 20 | <field name="qty_invoiced" optional="hidden"/> |
| 21 | <field name="qty_to_invoice" optional="show"/> |
| 22 | <field name="product_uom_id" groups="uom.group_uom"/> |
| 23 | <field name="product_uom_price" string="Price"/> |
| 24 | <field name="billed_amount_untaxed" widget="monetary_no_zero" sum="Total Billed" string="Billed"/> |
| 25 | <field name="purchase_amount_untaxed" widget="monetary_no_zero" sum="Total Purchased" string="Purchased"/> |
| 26 | <field name="currency_id" column_invisible="1"/> |
| 27 | </list> |
| 28 | </field> |
| 29 | </record> |
| 30 | </odoo> |