You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

52 lines
2.4 KiB

<?xml version="1.0"?>
<openerp>
<data>
<record id="account_analytic_account_purchase_form" model="ir.ui.view">
<field name="name">account.analytic.account.purchase.form</field>
<field name="model">account.analytic.account</field>
<field name="inherit_id" ref="analytic.view_account_analytic_account_form"/>
<field name="mode">primary</field>
<field name="priority" eval="20"/>
<field name="arch" type="xml">
<field name="partner_id" position="attributes">
<attribute name="string">Vendor</attribute>
<attribute name="domain">[('supplier', '=', True)]</attribute>
<attribute name="context">{
'default_customer': False,
'default_supplier': True
}</attribute>
</field>
<field name="product_id" position="attributes">
<attribute name="domain">[('purchase_ok', '=', True)]</attribute>
</field>
</field>
</record>
<record id="action_account_analytic_purchase_overdue_all" model="ir.actions.act_window">
<field name="name">Contracts</field>
<field name="res_model">account.analytic.account</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
<field name="view_ids" eval="[(5, 0, 0),
(0, 0, {'view_mode': 'tree'}),
(0, 0, {'view_mode': 'form', 'view_id': ref('account_analytic_account_purchase_form')})
]"/>
<field name="domain">[('type', '=', 'purchase')]</field>
<field name="context">{
'search_default_active':1,
'search_default_recurring_invoices':1,
'default_type': 'purchase'
}</field>
<!--<field name="search_view_id" ref="analytic.view_account_analytic_account_search"/>-->
<field name="help" type="html">
<p class="oe_view_nocontent_create">
Click to create a new purchase contract.
</p>
</field>
</record>
<menuitem action="action_account_analytic_purchase_overdue_all"
id="menu_action_account_analytic_purchase_overdue_all" sequence="8"
parent="purchase.menu_procurement_management"/>
</data>
</openerp>