Port to v10

This commit is contained in:
Alexis de Lattre
2016-11-22 14:39:53 +01:00
parent 35163d8613
commit f90aa12a9f
2 changed files with 42 additions and 77 deletions

View File

@@ -1,12 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2014 Akretion (http://www.akretion.com/)
@author: Alexis de Lattre <alexis.delattre@akretion.com>
The licence is in the file __openerp__.py
© 2014-2016 Akretion (http://www.akretion.com/)
@author: Alexis de Lattre <alexis.delattre@akretion.com>
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
-->
<openerp>
<data>
<odoo>
<record id="purchase_order_form" model="ir.ui.view">
<field name="name">usability.purchase.order.form</field>
@@ -16,6 +16,7 @@
<field name="priority">1000</field>
<field name="inherit_id" ref="purchase.purchase_order_form"/>
<field name="arch" type="xml">
<!-- So far, I consider the shortcut icon are enough
<notebook position="inside">
<page string="Deliveries" states="approved,except_picking,except_invoice,done">
<field name="picking_ids" nolabel="1"/>
@@ -24,13 +25,12 @@
<field name="invoice_ids" nolabel="1" context="{'form_view_ref': 'account.invoice_supplier_form'}"/>
</page>
</notebook>
-->
<!--
<page string="Deliveries &amp; Invoices" position="attributes">
<attribute name="string">Other Information</attribute>
</page>
<xpath expr="//field[@name='order_line']/tree/field[@name='product_id']" position="before">
<field name="sequence" invisible="1"/>
</xpath>
<field name="fiscal_position" position="attributes">
</page> -->
<field name="fiscal_position_id" position="attributes">
<attribute name="widget">selection</attribute>
</field>
</field>
@@ -40,13 +40,9 @@
<field name="name">usability.purchase.order.tree</field>
<field name="model">purchase.order</field>
<field name="inherit_id" ref="purchase.purchase_order_tree"/>
<field name="priority">100</field> <!-- to be after addition of payment_method -->
<field name="arch" type="xml">
<field name="amount_total" position="after">
<field name="currency_id" groups="base.group_multi_currency"/>
</field>
<field name="state" position="before">
<field name="shipped"/>
<field name="state" position="after">
<field name="is_shipped" invisible="not context.get('show_purchase', False)"/>
</field>
</field>
</record>
@@ -56,17 +52,18 @@
<field name="model">purchase.order</field>
<field name="inherit_id" ref="purchase.view_purchase_order_filter"/>
<field name="arch" type="xml">
<filter name="not_invoiced" position="after">
<filter name="shipped" string="Fully Received" domain="[('shipped', '=', True)]"/>
<filter name="not_shipped" string="Not Fully Received" domain="[('shipped', '=', False)]"/>
<filter name="not_invoiced" position="before">
<filter name="shipped" string="Fully Received" domain="[('is_shipped', '=', True)]"/>
<filter name="not_shipped" string="Not Fully Received" domain="[('is_shipped', '=', False)]"/>
<separator/>
</filter>
</field>
</record>
<!-- Do not show cancelled quotations by default in "Requests for Quotation" -->
<record id="purchase.purchase_rfq" model="ir.actions.act_window">
<field name="context">{'search_default_draft': True}</field>
<field name="context">{'search_default_draft': 1, 'search_default_todo': 1}</field>
</record>
</data>
</openerp>
</odoo>