[IMP]Purchase :Remove Purchase Application Configuration Wiz and inherit it to INstall Appl wiz

bzr revid: aag@tinyerp.co.in-20110502113118-hcsfqemsv8nulxy7
This commit is contained in:
aag (OpenERP) 2011-05-02 17:01:18 +05:30
parent c1cfe5d8fb
commit bc25c4537d
2 changed files with 11 additions and 42 deletions

View File

@ -21,8 +21,7 @@
from osv import fields, osv
class purchase_installer(osv.osv_memory):
_name = 'purchase.installer'
_inherit = 'res.config.installer'
_inherit = 'base.setup.installer'
_columns = {
'purchase_requisition':fields.boolean('Purchase Requisition',help="Manages your Purchase Requisition and allows you to easily keep track and manage all your purchase orders."),

View File

@ -3,51 +3,21 @@
<data>
<record id="view_purchase_install_module_form" model="ir.ui.view">
<field name="name">Purchases Application Configuration</field>
<field name="model">purchase.installer</field>
<field name="model">base.setup.installer</field>
<field name="type">form</field>
<field name="inherit_id" ref="base.res_config_installer"/>
<field name="inherit_id" ref="base_setup.view_base_setup_installer"/>
<field name="arch" type="xml">
<data>
<form position="attributes">
<attribute name="string">Purchases Application Configuration</attribute>
</form>
<xpath expr='//separator[@string="vsep"]' position='attributes'>
<attribute name='string'></attribute>
</xpath>
<separator string="title" position="attributes">
<attribute name="string"
>Configure Your Purchases Management Application</attribute>
</separator>
<xpath expr="//label[@string='description']"
position="attributes">
<attribute name="string">Extend your Purchases Management Application with additional functionalities.</attribute>
</xpath>
<xpath expr="//button[@string='Install Modules']" position="attributes">
<attribute name="string">Configure</attribute>
</xpath>
<group colspan="8">
<field name="purchase_requisition"/>
<field name="purchase_analytic_plans"/>
</group>
<xpath expr="//field[@name='product_expiry']" position="after">
<newline/>
<group attrs="{'invisible': [('purchase', '=', False)]}" colspan="4">
<separator string="Purchase Management Details" colspan="4" />
</group>
<field name="purchase_requisition" attrs="{'invisible': [('purchase', '=', False)]}"/>
<field name="purchase_analytic_plans" attrs="{'invisible': [('purchase', '=', False)]}"/>
</xpath>
</data>
</field>
</record>
<record id="action_purchase_install_module" model="ir.actions.act_window">
<field name="name">Purchases Application Configuration</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">purchase.installer</field>
<field name="view_id" ref="view_purchase_install_module_form"/>
<field name="view_type">form</field>
<field name="view_mode">form</field>
<field name="target">new</field>
</record>
<record id="purchase_installer_todo" model="ir.actions.todo">
<field name="action_id" ref="action_purchase_install_module"/>
<field name="sequence">3</field>
<field name="type">special</field>
<field name="groups_id" eval="[(6,0,[ref('base.group_extended')])]"/>
</record>
</data>
</openerp>