[MERGE] config rework ir.action.todo stw
bzr revid: al@openerp.com-20110924142047-rdo7gwoluoydbfz4
This commit is contained in:
commit
26a58b22f2
|
@ -85,5 +85,58 @@
|
|||
<field name="type">automatic</field>
|
||||
</record>
|
||||
|
||||
<record id="action_bank_account_configuration_installer" model="ir.actions.act_window">
|
||||
<field name="name">Define your Bank Account</field>
|
||||
<field name="type">ir.actions.act_window</field>
|
||||
<field name="res_model">res.partner.bank</field>
|
||||
<field name="view_type">form</field>
|
||||
<field name="view_mode">form</field>
|
||||
</record>
|
||||
|
||||
<record id="bank_account_configuration_todo" model="ir.actions.todo">
|
||||
<field name="action_id" ref="action_bank_account_configuration_installer" />
|
||||
<field name="category_id" ref="category_accounting_configuration" />
|
||||
</record>
|
||||
|
||||
<record id="action_view_financial_accounts_installer" model="ir.actions.act_window">
|
||||
<field name="name">Review your Financial Accounts</field>
|
||||
<field name="type">ir.actions.act_window</field>
|
||||
<field name="res_model">account.account</field>
|
||||
<field name="view_type">form</field>
|
||||
<field name="view_mode">tree,form</field>
|
||||
</record>
|
||||
|
||||
<record id="view_financial_accounts_todo" model="ir.actions.todo">
|
||||
<field name="action_id" ref="action_view_financial_accounts_installer" />
|
||||
<field name="category_id" ref="category_accounting_configuration" />
|
||||
<field name="groups_id" eval="[(6, 0, [ref('account.group_account_user')])]" />
|
||||
</record>
|
||||
|
||||
<record id="action_review_financial_journals_installer" model="ir.actions.act_window">
|
||||
<field name="name">Review your Financial Journal</field>
|
||||
<field name="type">ir.actions.act_window</field>
|
||||
<field name="res_model">account.journal</field>
|
||||
<field name="view_type">form</field>
|
||||
<field name="view_mode">tree,form</field>
|
||||
</record>
|
||||
|
||||
<record id="review_financial_journals_todo" model="ir.actions.todo">
|
||||
<field name="action_id" ref="action_review_financial_journals_installer" />
|
||||
<field name="category_id" ref="category_accounting_configuration" />
|
||||
<field name="groups_id" eval="[(6, 0, [ref('account.group_account_user')])]" />
|
||||
</record>
|
||||
<record id="action_review_payment_terms_installer" model="ir.actions.act_window">
|
||||
<field name="name">Review your Payment Terms</field>
|
||||
<field name="type">ir.actions.act_window</field>
|
||||
<field name="res_model">account.payment.term</field>
|
||||
<field name="view_type">form</field>
|
||||
<field name="view_mode">tree,form</field>
|
||||
</record>
|
||||
|
||||
<record id="review_payment_terms_todo" model="ir.actions.todo">
|
||||
<field name="action_id" ref="action_review_payment_terms_installer" />
|
||||
<field name="category_id" ref="category_accounting_configuration" />
|
||||
<field name="groups_id" eval="[(6, 0, [ref('account.group_account_user')])]" />
|
||||
</record>
|
||||
</data>
|
||||
</openerp>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<data>
|
||||
|
||||
<record model="ir.actions.act_window" id="account_analytic_plan_form_action_installer">
|
||||
<field name="name">Account Analytic Plans</field>
|
||||
<field name="name">Define your Analytic Plans</field>
|
||||
<field name="type">ir.actions.act_window</field>
|
||||
<field name="res_model">account.analytic.plan</field>
|
||||
<field name="view_type">form</field>
|
||||
|
|
|
@ -314,7 +314,7 @@
|
|||
<menuitem parent="menu_finance_config_assets" id="menu_action_account_asset_asset_list_normal" action="action_account_asset_asset_list_normal"/>
|
||||
|
||||
<record model="ir.actions.act_window" id="action_account_asset_asset_form_normal">
|
||||
<field name="name">Asset Categories</field>
|
||||
<field name="name">Review Asset Categories</field>
|
||||
<field name="res_model">account.asset.category</field>
|
||||
<field name="view_type">form</field>
|
||||
<field name="view_mode">form</field>
|
||||
|
|
|
@ -164,7 +164,7 @@
|
|||
<!-- Configure Follow-Ups Wizard -->
|
||||
|
||||
<record id="action_view_account_followup_followup_form" model="ir.actions.act_window">
|
||||
<field name="name">Configure Follow-Ups</field>
|
||||
<field name="name">Review Invoicing Follow-Ups</field>
|
||||
<field name="type">ir.actions.act_window</field>
|
||||
<field name="res_model">account_followup.followup</field>
|
||||
<field name="view_type">form</field>
|
||||
|
|
|
@ -89,18 +89,18 @@
|
|||
</record>
|
||||
|
||||
<!-- Import or create customers configartion view -->
|
||||
<record id="action_import_create_installer" model="ir.actions.act_window">
|
||||
<field name="name">Import or Create Customers</field>
|
||||
<field name="type">ir.actions.act_window</field>
|
||||
<field name="res_model">res.partner</field>
|
||||
<field name="view_type">form</field>
|
||||
<field name="view_mode">tree,form</field>
|
||||
<field name="view_id" ref="base.view_partner_tree"/>
|
||||
<field name="help">Create some Customers, Suppliers and their contacts manually from this form or you can import your existing partners by CSV spreadsheet from "Import Data" wizard</field>
|
||||
</record>
|
||||
<record id="config_wizard_action_import_create_installer" model="ir.actions.todo">
|
||||
<field name="action_id" ref="action_import_create_installer"/>
|
||||
<field name="category_id" ref="base.category_administration_config"/>
|
||||
<record id="action_import_create_installer" model="ir.actions.act_window">
|
||||
<field name="name">Create or Import Customers</field>
|
||||
<field name="type">ir.actions.act_window</field>
|
||||
<field name="res_model">res.partner</field>
|
||||
<field name="view_type">form</field>
|
||||
<field name="view_mode">tree,form</field>
|
||||
<field name="view_id" ref="base.view_partner_tree"/>
|
||||
<field name="help">Create or Import Customers and their contacts manually from this form or you can import your existing partners by CSV spreadsheet from "Import Data" wizard</field>
|
||||
</record>
|
||||
<record id="config_wizard_action_import_create_installer" model="ir.actions.todo">
|
||||
<field name="action_id" ref="action_import_create_installer"/>
|
||||
<field name="category_id" ref="base.category_sales_management_config"/>
|
||||
</record>
|
||||
|
||||
<!-- Define default users preferences-->
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
</record>
|
||||
|
||||
<record model="ir.actions.act_window" id="crm_case_section_view_form_installer">
|
||||
<field name="name">Create Sales Team</field>
|
||||
<field name="name">Define Sales Team</field>
|
||||
<field name="type">ir.actions.act_window</field>
|
||||
<field name="res_model">crm.case.section</field>
|
||||
<field name="view_type">form</field>
|
||||
|
@ -39,6 +39,7 @@
|
|||
<field name="action_id" ref="crm_case_section_view_form_installer"/>
|
||||
<field name="category_id" ref="base.category_sales_management_config"/>
|
||||
<field name="sequence">10</field>
|
||||
<field name="groups_id" eval="[(6, 0, [ref('base.group_extended')])]" />
|
||||
</record>
|
||||
|
||||
<record model="ir.actions.act_window" id="crm_case_stage_form_installer">
|
||||
|
@ -54,8 +55,8 @@
|
|||
<record id="crm_case_stage_installer_todo" model="ir.actions.todo">
|
||||
<field name="action_id" ref="crm_case_stage_form_installer"/>
|
||||
<field name="category_id" ref="base.category_sales_management_config"/>
|
||||
<field name="groups_id" eval="[(6, 0, [ref('base.group_extended')])]" />
|
||||
<field name="sequence">10</field>
|
||||
</record>
|
||||
|
||||
</data>
|
||||
</openerp>
|
||||
|
|
|
@ -238,6 +238,25 @@ class delivery_grid_line(osv.osv):
|
|||
|
||||
delivery_grid_line()
|
||||
|
||||
class define_delivery_steps(osv.osv_memory):
|
||||
_name = 'delivery.define.delivery.steps.wizard'
|
||||
|
||||
_columns = {
|
||||
'picking_policy' : fields.selection([('direct', 'Partial Delivery'), ('one', 'Complete Delivery'),],
|
||||
'Picking Policy', required=True),
|
||||
}
|
||||
|
||||
def apply_cb(self, cr, uid, ids, context=None):
|
||||
ir_values_obj = self.pool.get('ir.values')
|
||||
|
||||
wizard = self.browse(cr, uid, ids, context=context)[0]
|
||||
|
||||
ir_values_obj.set(cr, uid, 'default', False, 'picking_policy', ['sale.order'], wizard.picking_policy)
|
||||
|
||||
return {'type' : 'ir.actions.act_window_close'}
|
||||
|
||||
define_delivery_steps()
|
||||
|
||||
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
||||
|
|
|
@ -72,7 +72,7 @@
|
|||
</record>
|
||||
|
||||
<record id="action_delivery_carrier_form1" model="ir.actions.act_window">
|
||||
<field name="name">Delivery Method</field>
|
||||
<field name="name">Define Delivery Methods</field>
|
||||
<field name="type">ir.actions.act_window</field>
|
||||
<field name="res_model">delivery.carrier</field>
|
||||
<field name="view_type">form</field>
|
||||
|
@ -332,8 +332,36 @@
|
|||
|
||||
<record id="delivery_method_form_view_todo" model="ir.actions.todo">
|
||||
<field name="action_id" ref="action_delivery_carrier_form1"/>
|
||||
<field name="category_id" ref="stock.category_stock_management_config" />
|
||||
<field name="sequence">10</field>
|
||||
</record>
|
||||
|
||||
<record model="ir.ui.view" id="define_delivery_steps_form">
|
||||
<field name="name">delivery.define_delivery_steps</field>
|
||||
<field name="model">delivery.define.delivery.steps.wizard</field>
|
||||
<field name="type">form</field>
|
||||
<field name="arch" type="xml">
|
||||
<form string="Define Delivery Steps">
|
||||
<label string="" />
|
||||
<field name="picking_policy" />
|
||||
<group colspan="4">
|
||||
<button string="Cancel" icon="gtk-cancel" special="cancel" />
|
||||
<button string="Apply" icon="gtk-apply" name="apply_cb" type="object" />
|
||||
</group>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record model="ir.actions.act_window" id="action_define_delivery_steps">
|
||||
<field name="name">Setup Your Delivery Steps</field>
|
||||
<field name="res_model">delivery.define.delivery.steps.wizard</field>
|
||||
<field name="view_type">form</field>
|
||||
<field name="view_mode">form</field>
|
||||
<field name="target">new</field>
|
||||
</record>
|
||||
|
||||
<record model="ir.actions.todo" id="todo_define_delivery_steps">
|
||||
<field name="action_id" ref="action_define_delivery_steps" />
|
||||
</record>
|
||||
</data>
|
||||
</openerp>
|
||||
|
|
|
@ -78,6 +78,22 @@ class fetchmail_server(osv.osv):
|
|||
'attach': True,
|
||||
}
|
||||
|
||||
def default_get(self, cr, uid, fields, context=None):
|
||||
if context is None:
|
||||
context = {}
|
||||
|
||||
result = super(fetchmail_server, self).default_get(cr, uid, fields, context=context)
|
||||
|
||||
model = context.pop('fetchmail_model', False) or False
|
||||
|
||||
if isinstance(model, basestring):
|
||||
model_id = self.pool.get('ir.model').search(cr, uid, [('model', '=', model)], context=context)
|
||||
result.update(
|
||||
object_id = model_id[0],
|
||||
)
|
||||
|
||||
return result
|
||||
|
||||
def onchange_server_type(self, cr, uid, ids, server_type=False, ssl=False):
|
||||
port = 0
|
||||
if server_type == 'pop':
|
||||
|
|
|
@ -0,0 +1,20 @@
|
|||
#-*- coding:utf-8 -*-
|
||||
##############################################################################
|
||||
#
|
||||
# OpenERP, Open Source Management Solution
|
||||
# Copyright (C) 2011 OpenERP S.A. (<http://www.openerp.com>). All Rights Reserved
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU Affero General Public License as published by
|
||||
# the Free Software Foundation, either version 3 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU Affero General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU Affero General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
##############################################################################
|
|
@ -0,0 +1,39 @@
|
|||
#-*- coding:utf-8 -*-
|
||||
##############################################################################
|
||||
#
|
||||
# OpenERP, Open Source Management Solution
|
||||
# Copyright (C) 2011 OpenERP S.A. (<http://www.openerp.com>). All Rights Reserved
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU Affero General Public License as published by
|
||||
# the Free Software Foundation, either version 3 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU Affero General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU Affero General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
##############################################################################
|
||||
|
||||
{
|
||||
"name" : "Fetchmail for CRM",
|
||||
"version" : "1.0",
|
||||
"depends" : ["fetchmail", "crm"],
|
||||
"author" : "OpenERP SA",
|
||||
"category": 'Tools',
|
||||
"description": """
|
||||
""",
|
||||
'website': 'http://www.openerp.com',
|
||||
'init_xml': [],
|
||||
'update_xml': [
|
||||
"installer.xml",
|
||||
],
|
||||
'demo_xml': [
|
||||
],
|
||||
'installable': True,
|
||||
'active': False,
|
||||
}
|
|
@ -0,0 +1,18 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<openerp>
|
||||
<data>
|
||||
<record model="ir.actions.act_window" id="action_create_crm_leads_from_email_account">
|
||||
<field name="name">Create Leads from Email Account</field>
|
||||
<field name="type">ir.actions.act_window</field>
|
||||
<field name="res_model">fetchmail.server</field>
|
||||
<field name="view_type">form</field>
|
||||
<field name="view_mode">form</field>
|
||||
<field name="context">{'default_name' : "Email Account For Leads", 'fetchmail_model' : 'crm.lead'}</field>
|
||||
</record>
|
||||
|
||||
<record model="ir.actions.todo" id="config_wizard_action_create_crm_leads_from_email_account">
|
||||
<field name="action_id" ref="action_create_crm_leads_from_email_account" />
|
||||
<field name="category_id" ref="base.category_sales_management_config" />
|
||||
</record>
|
||||
</data>
|
||||
</openerp>
|
|
@ -0,0 +1,20 @@
|
|||
#-*- coding:utf-8 -*-
|
||||
##############################################################################
|
||||
#
|
||||
# OpenERP, Open Source Management Solution
|
||||
# Copyright (C) 2011 OpenERP S.A. (<http://www.openerp.com>). All Rights Reserved
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU Affero General Public License as published by
|
||||
# the Free Software Foundation, either version 3 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU Affero General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU Affero General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
##############################################################################
|
|
@ -0,0 +1,39 @@
|
|||
#-*- coding:utf-8 -*-
|
||||
##############################################################################
|
||||
#
|
||||
# OpenERP, Open Source Management Solution
|
||||
# Copyright (C) 2011 OpenERP S.A. (<http://www.openerp.com>). All Rights Reserved
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU Affero General Public License as published by
|
||||
# the Free Software Foundation, either version 3 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU Affero General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU Affero General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
##############################################################################
|
||||
|
||||
{
|
||||
"name" : "Fetchmail for CRM Claim",
|
||||
"version" : "1.0",
|
||||
"depends" : ["fetchmail", "crm_claim"],
|
||||
"author" : "OpenERP SA",
|
||||
"category": 'Tools',
|
||||
"description": """
|
||||
""",
|
||||
'website': 'http://www.openerp.com',
|
||||
'init_xml': [],
|
||||
'update_xml': [
|
||||
"installer.xml",
|
||||
],
|
||||
'demo_xml': [
|
||||
],
|
||||
'installable': True,
|
||||
'active': False,
|
||||
}
|
|
@ -0,0 +1,18 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<openerp>
|
||||
<data>
|
||||
<record model="ir.actions.act_window" id="action_create_crm_claims_from_email_account">
|
||||
<field name="name">Create Claims from Email Account</field>
|
||||
<field name="type">ir.actions.act_window</field>
|
||||
<field name="res_model">fetchmail.server</field>
|
||||
<field name="view_type">form</field>
|
||||
<field name="view_mode">form</field>
|
||||
<field name="context">{'default_name' : "Email Account For Claims", 'fetchmail_model' : 'crm.claim'}</field>
|
||||
</record>
|
||||
|
||||
<record model="ir.actions.todo" id="config_wizard_action_create_crm_claims_from_email_account">
|
||||
<field name="action_id" ref="action_create_crm_claims_from_email_account" />
|
||||
<field name="category_id" ref="base.category_sales_management_config" />
|
||||
</record>
|
||||
</data>
|
||||
</openerp>
|
|
@ -0,0 +1,20 @@
|
|||
#-*- coding:utf-8 -*-
|
||||
##############################################################################
|
||||
#
|
||||
# OpenERP, Open Source Management Solution
|
||||
# Copyright (C) 2011 OpenERP S.A. (<http://www.openerp.com>). All Rights Reserved
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU Affero General Public License as published by
|
||||
# the Free Software Foundation, either version 3 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU Affero General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU Affero General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
##############################################################################
|
|
@ -0,0 +1,39 @@
|
|||
#-*- coding:utf-8 -*-
|
||||
##############################################################################
|
||||
#
|
||||
# OpenERP, Open Source Management Solution
|
||||
# Copyright (C) 2011 OpenERP S.A. (<http://www.openerp.com>). All Rights Reserved
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU Affero General Public License as published by
|
||||
# the Free Software Foundation, either version 3 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU Affero General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU Affero General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
##############################################################################
|
||||
|
||||
{
|
||||
"name" : "Fetchmail for Applicants",
|
||||
"version" : "1.0",
|
||||
"depends" : ["fetchmail", "hr_recruitment"],
|
||||
"author" : "OpenERP SA",
|
||||
"category": 'Tools',
|
||||
"description": """
|
||||
""",
|
||||
'website': 'http://www.openerp.com',
|
||||
'init_xml': [],
|
||||
'update_xml': [
|
||||
"installer.xml",
|
||||
],
|
||||
'demo_xml': [
|
||||
],
|
||||
'installable': True,
|
||||
'active': False,
|
||||
}
|
|
@ -0,0 +1,18 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<openerp>
|
||||
<data>
|
||||
<record model="ir.actions.act_window" id="action_link_applicant_to_email_account">
|
||||
<field name="name">Create Applicants from Email Account</field>
|
||||
<field name="type">ir.actions.act_window</field>
|
||||
<field name="res_model">fetchmail.server</field>
|
||||
<field name="view_type">form</field>
|
||||
<field name="view_mode">form</field>
|
||||
<field name="context">{'default_name' : "Email Account For Applicant", 'fetchmail_model' : 'hr.applicant'}</field>
|
||||
</record>
|
||||
|
||||
<record model="ir.actions.todo" id="config_wizard_action_link_applicant_to_email_account">
|
||||
<field name="action_id" ref="action_link_applicant_to_email_account" />
|
||||
<field name="category_id" ref="hr.category_hr_management_config" />
|
||||
</record>
|
||||
</data>
|
||||
</openerp>
|
|
@ -0,0 +1,20 @@
|
|||
#-*- coding:utf-8 -*-
|
||||
##############################################################################
|
||||
#
|
||||
# OpenERP, Open Source Management Solution
|
||||
# Copyright (C) 2011 OpenERP S.A. (<http://www.openerp.com>). All Rights Reserved
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU Affero General Public License as published by
|
||||
# the Free Software Foundation, either version 3 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU Affero General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU Affero General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
##############################################################################
|
|
@ -0,0 +1,39 @@
|
|||
#-*- coding:utf-8 -*-
|
||||
##############################################################################
|
||||
#
|
||||
# OpenERP, Open Source Management Solution
|
||||
# Copyright (C) 2011 OpenERP S.A. (<http://www.openerp.com>). All Rights Reserved
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU Affero General Public License as published by
|
||||
# the Free Software Foundation, either version 3 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU Affero General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU Affero General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
##############################################################################
|
||||
|
||||
{
|
||||
"name" : "Fetchmail for Project Issue",
|
||||
"version" : "1.0",
|
||||
"depends" : ["fetchmail", "project_issue"],
|
||||
"author" : "OpenERP SA",
|
||||
"category": 'Tools',
|
||||
"description": """
|
||||
""",
|
||||
'website': 'http://www.openerp.com',
|
||||
'init_xml': [],
|
||||
'update_xml': [
|
||||
"installer.xml",
|
||||
],
|
||||
'demo_xml': [
|
||||
],
|
||||
'installable': True,
|
||||
'active': False,
|
||||
}
|
|
@ -0,0 +1,18 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<openerp>
|
||||
<data>
|
||||
<record model="ir.actions.act_window" id="action_link_issue_to_email_account">
|
||||
<field name="name">Create Issues from Email Account</field>
|
||||
<field name="type">ir.actions.act_window</field>
|
||||
<field name="res_model">fetchmail.server</field>
|
||||
<field name="view_type">form</field>
|
||||
<field name="view_mode">form</field>
|
||||
<field name="context">{'default_name' : "Email Account For Issue", 'fetchmail_model' : 'project.issue'}</field>
|
||||
</record>
|
||||
|
||||
<record model="ir.actions.todo" id="config_wizard_action_link_issue_to_email_account">
|
||||
<field name="action_id" ref="action_link_issue_to_email_account" />
|
||||
<field name="category_id" ref="project.category_project_config" />
|
||||
</record>
|
||||
</data>
|
||||
</openerp>
|
|
@ -1,49 +1,66 @@
|
|||
<openerp>
|
||||
<data>
|
||||
<data>
|
||||
|
||||
<record id="view_hr_installer" model="ir.ui.view">
|
||||
<field name="name">hr.installer.view</field>
|
||||
<field name="model">base.setup.installer</field>
|
||||
<field name="type">form</field>
|
||||
<field name="inherit_id" ref="base_setup.view_base_setup_installer"/>
|
||||
<field name="arch" type="xml">
|
||||
<data>
|
||||
<xpath expr="//group[@name='hr']" position="replace">
|
||||
<newline/>
|
||||
<separator string="Human Resources Features" colspan="4"/>
|
||||
<field name="hr_holidays"/>
|
||||
<field name="hr_expense"/>
|
||||
<field name="hr_recruitment"/>
|
||||
<field name="hr_timesheet_sheet"/>
|
||||
<field name="hr_contract"/>
|
||||
<field name="hr_attendance"/>
|
||||
<field name="hr_evaluation"/>
|
||||
<field name="hr_payroll"/>
|
||||
<field name="hr_payroll_account" groups="base.group_extended"/>
|
||||
</xpath>
|
||||
</data>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="category_hr_management_config" model="ir.actions.todo.category">
|
||||
<field name="name">HR Management</field>
|
||||
<field name="sequence">5</field>
|
||||
</record>
|
||||
<record id="view_hr_installer" model="ir.ui.view">
|
||||
<field name="name">hr.installer.view</field>
|
||||
<field name="model">base.setup.installer</field>
|
||||
<field name="type">form</field>
|
||||
<field name="inherit_id" ref="base_setup.view_base_setup_installer"/>
|
||||
<field name="arch" type="xml">
|
||||
<data>
|
||||
<xpath expr="//group[@name='hr']" position="replace">
|
||||
<newline/>
|
||||
<separator string="Human Resources Features" colspan="4"/>
|
||||
<field name="hr_holidays"/>
|
||||
<field name="hr_expense"/>
|
||||
<field name="hr_recruitment"/>
|
||||
<field name="hr_timesheet_sheet"/>
|
||||
<field name="hr_contract"/>
|
||||
<field name="hr_attendance"/>
|
||||
<field name="hr_evaluation"/>
|
||||
<field name="hr_payroll"/>
|
||||
<field name="hr_payroll_account" groups="base.group_extended"/>
|
||||
</xpath>
|
||||
</data>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<!-- employee configure action -->
|
||||
<record id="action_create_hr_employee_installer" model="ir.actions.act_window">
|
||||
<field name="name">Create your employees</field>
|
||||
<field name="type">ir.actions.act_window</field>
|
||||
<field name="res_model">hr.employee</field>
|
||||
<field name="view_type">form</field>
|
||||
<field name="view_mode">form</field>
|
||||
<field name="view_id" ref="view_employee_form"/>
|
||||
</record>
|
||||
<record id="category_hr_management_config" model="ir.actions.todo.category">
|
||||
<field name="name">HR Management</field>
|
||||
<field name="sequence">5</field>
|
||||
</record>
|
||||
|
||||
<record id="config_wizard_action_create_hr_employee_installer" model="ir.actions.todo">
|
||||
<field name="action_id" ref="action_create_hr_employee_installer"/>
|
||||
<field name="category_id" ref="category_hr_management_config"/>
|
||||
</record>
|
||||
<!-- employee configure action -->
|
||||
<record id="action_create_hr_employee_installer" model="ir.actions.act_window">
|
||||
<field name="name">Create your employees</field>
|
||||
<field name="type">ir.actions.act_window</field>
|
||||
<field name="res_model">hr.employee</field>
|
||||
<field name="view_type">form</field>
|
||||
<field name="view_mode">form</field>
|
||||
<field name="view_id" ref="view_employee_form"/>
|
||||
</record>
|
||||
|
||||
</data>
|
||||
<record id="config_wizard_action_create_hr_employee_installer" model="ir.actions.todo">
|
||||
<field name="action_id" ref="action_create_hr_employee_installer"/>
|
||||
<field name="category_id" ref="category_hr_management_config"/>
|
||||
</record>
|
||||
|
||||
|
||||
<record model="ir.actions.act_window" id="view_department_form_installer">
|
||||
<field name="name">Define Your Department Structure</field>
|
||||
<field name="type">ir.actions.act_window</field>
|
||||
<field name="res_model">hr.department</field>
|
||||
<field name="view_type">form</field>
|
||||
<field name="view_mode">tree,form</field>
|
||||
<field name="view_id" ref="hr.view_department_tree"/>
|
||||
<field name="help">Your Company's Department Structure is used to manage all documents related to employees by departments: expenses and timesheet validation, leaves management, recruitments, etc.</field>
|
||||
</record>
|
||||
|
||||
<record id="view_department_form_todo" model="ir.actions.todo">
|
||||
<field name="action_id" ref="view_department_form_installer"/>
|
||||
<field name="category_id" ref="hr.category_hr_management_config"/>
|
||||
<field name="sequence">3</field>
|
||||
<field name="groups_id" eval="[(6, 0, [ref('base.group_extended')])]" />
|
||||
</record>
|
||||
</data>
|
||||
</openerp>
|
||||
|
|
|
@ -47,8 +47,8 @@ in the form of pdf file. Implements a dashboard for My Current Evaluations
|
|||
"hr_evaluation_view.xml",
|
||||
"report/hr_evaluation_report_view.xml",
|
||||
"board_hr_evaluation_view.xml",
|
||||
'hr_evaluation_installer_view.xml',
|
||||
'hr_evaluation_data.xml',
|
||||
'hr_evaluation_installer.xml',
|
||||
],
|
||||
"test": ["test/test_hr_evaluation.yml"],
|
||||
"active": False,
|
||||
|
|
|
@ -0,0 +1,17 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<openerp>
|
||||
<data>
|
||||
<record model="ir.actions.act_window" id="action_evaluation_plans_installer">
|
||||
<field name="name">Review Evaluation Plans</field>
|
||||
<field name="type">ir.actions.act_window</field>
|
||||
<field name="res_model">hr_evaluation.plan</field>
|
||||
<field name="view_type">form</field>
|
||||
<field name="view_mode">form,tree</field>
|
||||
</record>
|
||||
|
||||
<record id="todo_evaluation_plans_installer" model="ir.actions.todo">
|
||||
<field name="action_id" ref="action_evaluation_plans_installer" />
|
||||
<field name="category_id" ref="hr.category_hr_management_config" />
|
||||
</record>
|
||||
</data>
|
||||
</openerp>
|
|
@ -1,19 +0,0 @@
|
|||
<openerp>
|
||||
<data>
|
||||
<record model="ir.actions.act_window" id="view_department_form_installer">
|
||||
<field name="name">Define Your Department Structure</field>
|
||||
<field name="type">ir.actions.act_window</field>
|
||||
<field name="res_model">hr.department</field>
|
||||
<field name="view_type">form</field>
|
||||
<field name="view_mode">tree,form</field>
|
||||
<field name="view_id" ref="hr.view_department_tree"/>
|
||||
<field name="help">Your Company's Department Structure is used to manage all documents related to employees by departments: expenses and timesheet validation, leaves management, recruitments, etc.</field>
|
||||
</record>
|
||||
|
||||
<record id="view_department_form_todo" model="ir.actions.todo">
|
||||
<field name="action_id" ref="view_department_form_installer"/>
|
||||
<field name="category_id" ref="hr.category_hr_management_config"/>
|
||||
<field name="sequence">3</field>
|
||||
</record>
|
||||
</data>
|
||||
</openerp>
|
|
@ -445,7 +445,7 @@
|
|||
</record>
|
||||
|
||||
<record model="ir.actions.act_window" id="hr_holidays_leaves_assign_legal">
|
||||
<field name="name">Assign Legal Leaves to Employees</field>
|
||||
<field name="name">Allocate Leaves for Employees</field>
|
||||
<field name="type">ir.actions.act_window</field>
|
||||
<field name="res_model">hr.employee</field>
|
||||
<field name="view_type">form</field>
|
||||
|
|
|
@ -1,19 +1,19 @@
|
|||
<openerp>
|
||||
<data>
|
||||
<record model="ir.actions.act_window" id="hr_recruitment_stage_form_installer">
|
||||
<field name="name">Review Recruitment Stages</field>
|
||||
<field name="type">ir.actions.act_window</field>
|
||||
<field name="res_model">hr.recruitment.stage</field>
|
||||
<field name="view_type">form</field>
|
||||
<field name="view_mode">tree,form</field>
|
||||
<field name="help">Check if the following stages are matching your recruitment process. Don't forget to specify the department if your recruitment process is different according to the job position.</field>
|
||||
<field name="view_id" ref="hr_recruitment.hr_recruitment_stage_tree"/>
|
||||
</record>
|
||||
<data>
|
||||
<record model="ir.actions.act_window" id="hr_recruitment_stage_form_installer">
|
||||
<field name="name">Review Recruitment Stages</field>
|
||||
<field name="type">ir.actions.act_window</field>
|
||||
<field name="res_model">hr.recruitment.stage</field>
|
||||
<field name="view_type">form</field>
|
||||
<field name="view_mode">tree,form</field>
|
||||
<field name="help">Check if the following stages are matching your recruitment process. Don't forget to specify the department if your recruitment process is different according to the job position.</field>
|
||||
<field name="view_id" ref="hr_recruitment.hr_recruitment_stage_tree"/>
|
||||
</record>
|
||||
|
||||
<record id="hr_recruitment_stage_form_todo" model="ir.actions.todo">
|
||||
<field name="action_id" ref="hr_recruitment_stage_form_installer"/>
|
||||
<field name="category_id" ref="hr.category_hr_management_config"/>
|
||||
<field name="sequence">3</field>
|
||||
</record>
|
||||
<record id="hr_recruitment_stage_form_todo" model="ir.actions.todo">
|
||||
<field name="action_id" ref="hr_recruitment_stage_form_installer"/>
|
||||
<field name="category_id" ref="hr.category_hr_management_config"/>
|
||||
<field name="sequence">3</field>
|
||||
</record>
|
||||
</data>
|
||||
</openerp>
|
||||
|
|
|
@ -53,6 +53,7 @@ to set up a management by affair.
|
|||
'wizard/hr_timesheet_print_employee_view.xml',
|
||||
'wizard/hr_timesheet_print_users_view.xml',
|
||||
'wizard/hr_timesheet_sign_in_out_view.xml',
|
||||
'hr_timesheet_installer.xml',
|
||||
],
|
||||
'demo_xml': ['hr_timesheet_demo.xml'],
|
||||
'test': ['test/test_hr_timesheet.yml',
|
||||
|
|
|
@ -0,0 +1,17 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<openerp>
|
||||
<data>
|
||||
<record model="ir.actions.act_window" id="action_define_analytic_structure">
|
||||
<field name="name">Define your Analytic Structure</field>
|
||||
<field name="type">ir.actions.act_window</field>
|
||||
<field name="res_model">account.analytic.account</field>
|
||||
<field name="view_type">form</field>
|
||||
<field name="view_mode">tree,form</field>
|
||||
</record>
|
||||
|
||||
<record id="todo_define_analytic_structure" model="ir.actions.todo">
|
||||
<field name="action_id" ref="action_define_analytic_structure" />
|
||||
<field name="category_id" ref="hr.category_hr_management_config" />
|
||||
</record>
|
||||
</data>
|
||||
</openerp>
|
|
@ -1,18 +1,32 @@
|
|||
<openerp>
|
||||
<data>
|
||||
<record model="ir.actions.act_window" id="view_lunch_product_form_installer">
|
||||
<field name="name">Define Your Lunch Products</field>
|
||||
<field name="type">ir.actions.act_window</field>
|
||||
<field name="res_model">lunch.product</field>
|
||||
<field name="view_type">form</field>
|
||||
<field name="view_mode">tree,form</field>
|
||||
<field name="view_id" ref="lunch.view_lunch_product_form"/>
|
||||
</record>
|
||||
|
||||
<record id="view_lunch_product_form_todo" model="ir.actions.todo">
|
||||
<field name="action_id" ref="view_lunch_product_form_installer"/>
|
||||
<field name="category_id" ref="base.category_tools_customization_config"/>
|
||||
<field name="sequence">50</field>
|
||||
</record>
|
||||
<data>
|
||||
<record model="ir.actions.act_window" id="view_lunch_product_form_installer">
|
||||
<field name="name">Define Your Lunch Products</field>
|
||||
<field name="type">ir.actions.act_window</field>
|
||||
<field name="res_model">lunch.product</field>
|
||||
<field name="view_type">form</field>
|
||||
<field name="view_mode">tree,form</field>
|
||||
<field name="view_id" ref="lunch.view_lunch_product_form"/>
|
||||
</record>
|
||||
|
||||
<record id="view_lunch_product_form_todo" model="ir.actions.todo">
|
||||
<field name="action_id" ref="view_lunch_product_form_installer"/>
|
||||
<field name="category_id" ref="base.category_tools_customization_config"/>
|
||||
<field name="sequence">50</field>
|
||||
</record>
|
||||
|
||||
<record model="ir.actions.act_window" id="action_create_cashbox">
|
||||
<field name="name">Create CashBox</field>
|
||||
<field name="type">ir.actions.act_window</field>
|
||||
<field name="res_model">lunch.cashbox</field>
|
||||
<field name="view_type">form</field>
|
||||
<field name="view_mode">form</field>
|
||||
</record>
|
||||
|
||||
<record id="action_create_cashbox_todo" model="ir.actions.todo">
|
||||
<field name="action_id" ref="action_create_cashbox" />
|
||||
<field name="category_id" ref="base.category_tools_customization_config" />
|
||||
<field name="sequence">51</field>
|
||||
</record>
|
||||
</data>
|
||||
</openerp>
|
||||
|
|
|
@ -62,6 +62,7 @@ The main features are:
|
|||
"res_partner_view.xml",
|
||||
'security/ir.model.access.csv',
|
||||
'mail_data.xml',
|
||||
'mail_installer.xml',
|
||||
],
|
||||
'installable': True,
|
||||
'active': False,
|
||||
|
|
|
@ -0,0 +1,17 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<openerp>
|
||||
<data>
|
||||
<record model="ir.actions.act_window" id="action_configure_email_server">
|
||||
<field name="name">Configure Email Server</field>
|
||||
<field name="type">ir.actions.act_window</field>
|
||||
<field name="res_model">ir.mail_server</field>
|
||||
<field name="view_type">form</field>
|
||||
<field name="view_mode">form</field>
|
||||
</record>
|
||||
|
||||
<record model="ir.actions.todo" id="config_wizard_action_configure_email_server">
|
||||
<field name="action_id" ref="action_configure_email_server" />
|
||||
<field name="category_id" ref="base.category_administration_config" />
|
||||
</record>
|
||||
</data>
|
||||
</openerp>
|
|
@ -19,5 +19,54 @@
|
|||
</data>
|
||||
</field>
|
||||
</record>
|
||||
</data>
|
||||
|
||||
|
||||
<record id="category_mrp_config" model="ir.actions.todo.category">
|
||||
<field name="name">MRP Management</field>
|
||||
<field name="sequence">6</field>
|
||||
</record>
|
||||
|
||||
<record id="action_configure_workcenter" model="ir.actions.act_window">
|
||||
<field name="name">Configure your work centers</field>
|
||||
<field name="type">ir.actions.act_window</field>
|
||||
<field name="res_model">mrp.workcenter</field>
|
||||
<field name="view_mode">form,tree</field>
|
||||
<field name="view_type">form</field>
|
||||
</record>
|
||||
|
||||
<record id="todo_action_configure_workcenter" model="ir.actions.todo">
|
||||
<field name="action_id" ref="action_configure_workcenter" />
|
||||
<field name="category_id" ref="category_mrp_config" />
|
||||
<field name="groups_id" eval="[(6, 0, [ref('base.group_extended')])]" />
|
||||
</record>
|
||||
|
||||
<record id="action_create_bill_of_materials" model="ir.actions.act_window">
|
||||
<field name="name">Create Bill of Materials</field>
|
||||
<field name="type">ir.actions.act_window</field>
|
||||
<field name="res_model">mrp.bom</field>
|
||||
<field name="view_mode">form,tree</field>
|
||||
<field name="view_type">form</field>
|
||||
</record>
|
||||
|
||||
<record id="todo_action_create_bill_of_materials" model="ir.actions.todo">
|
||||
<field name="action_id" ref="action_create_bill_of_materials" />
|
||||
<field name="category_id" ref="category_mrp_config" />
|
||||
</record>
|
||||
|
||||
<record id="product_form_config_action" model="ir.actions.act_window">
|
||||
<field name="name">Create or Import Products</field>
|
||||
<field name="type">ir.actions.act_window</field>
|
||||
<field name="res_model">product.product</field>
|
||||
<field name="view_type">form</field>
|
||||
<field name="view_mode">tree,form</field>
|
||||
<field name="view_id" ref="product.product_product_tree_view"/>
|
||||
<field name="help">Create a product form for everything you buy or sell. Specify a supplier if the product can be purchased.</field>
|
||||
</record>
|
||||
|
||||
<record id="config_wizard_res_product_installer" model="ir.actions.todo">
|
||||
<field name="action_id" ref="product_form_config_action"/>
|
||||
<field name="category_id" ref="category_mrp_config" />
|
||||
<field name="sequence">20</field>
|
||||
</record>
|
||||
</data>
|
||||
</openerp>
|
||||
|
|
|
@ -75,5 +75,8 @@
|
|||
<menuitem id="base.menu_base_config_plugins" name="Plugins" parent="base.menu_base_config" sequence="10"/>
|
||||
|
||||
<menuitem id="menu_base_config_plugins_outlook" action="action_outlook_wizard" name="Load Outlook Plug-In" parent="base.menu_base_config_plugins" sequence="10"/>
|
||||
|
||||
<menuitem id="base.menu_sales" name="Sales" parent="base.menu_base_partner" sequence="1" />
|
||||
<menuitem id="menu_base_config_plugins_outlook_sales" action="action_outlook_wizard" name="Load Outlook Plug-In" parent="base.menu_sales" />
|
||||
</data>
|
||||
</openerp>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<data>
|
||||
|
||||
<record id="product_form_config_action" model="ir.actions.act_window">
|
||||
<field name="name">Create some Products</field>
|
||||
<field name="name">Create or Import Products</field>
|
||||
<field name="type">ir.actions.act_window</field>
|
||||
<field name="res_model">product.product</field>
|
||||
<field name="view_type">form</field>
|
||||
|
|
|
@ -1,27 +1,74 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<openerp>
|
||||
<data>
|
||||
<data>
|
||||
|
||||
<record id="view_project_installer" model="ir.ui.view">
|
||||
<field name="name">project.installer.view</field>
|
||||
<field name="model">base.setup.installer</field>
|
||||
<field name="type">form</field>
|
||||
<field name="inherit_id" ref="base_setup.view_base_setup_installer"/>
|
||||
<field name="arch" type="xml">
|
||||
<data>
|
||||
<xpath expr="//group[@name='project']" position="replace">
|
||||
<newline/>
|
||||
<separator string="Project Management Features" colspan="4" />
|
||||
<field name="project_issue" />
|
||||
<field name="project_long_term" />
|
||||
<field name="hr_timesheet_sheet" />
|
||||
<field name="project_timesheet" />
|
||||
<field name="account_budget" />
|
||||
<field name="project_scrum" />
|
||||
<field name="project_gtd" />
|
||||
</xpath>
|
||||
</data>
|
||||
</field>
|
||||
</record>
|
||||
<record id="view_project_installer" model="ir.ui.view">
|
||||
<field name="name">project.installer.view</field>
|
||||
<field name="model">base.setup.installer</field>
|
||||
<field name="type">form</field>
|
||||
<field name="inherit_id" ref="base_setup.view_base_setup_installer"/>
|
||||
<field name="arch" type="xml">
|
||||
<data>
|
||||
<xpath expr="//group[@name='project']" position="replace">
|
||||
<newline/>
|
||||
<separator string="Project Management Features" colspan="4" />
|
||||
<field name="project_issue" />
|
||||
<field name="project_long_term" />
|
||||
<field name="hr_timesheet_sheet" />
|
||||
<field name="project_timesheet" />
|
||||
<field name="account_budget" />
|
||||
<field name="project_scrum" />
|
||||
<field name="project_gtd" />
|
||||
</xpath>
|
||||
</data>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
</data>
|
||||
<record id="category_project_config" model="ir.actions.todo.category">
|
||||
<field name="name">Project Management</field>
|
||||
<field name="sequence">7</field>
|
||||
</record>
|
||||
|
||||
<record id="action_create_initial_projects_installer" model="ir.actions.act_window">
|
||||
<field name="name">Create your initial projects</field>
|
||||
<field name="type">ir.actions.act_window</field>
|
||||
<field name="res_model">project.project</field>
|
||||
<field name="view_type">form</field>
|
||||
<field name="view_mode">form</field>
|
||||
</record>
|
||||
|
||||
<record id="config_wizard_action_create_initial_projects_installer" model="ir.actions.todo">
|
||||
<field name="action_id" ref="action_create_initial_projects_installer"/>
|
||||
<field name="category_id" ref="category_project_config" />
|
||||
</record>
|
||||
|
||||
<record id="action_configure_default_time_unit" model="ir.actions.act_window">
|
||||
<field name="name">Configure Default Time Unit for Project</field>
|
||||
<field name="type">ir.actions.act_window</field>
|
||||
<field name="res_model">res.company</field>
|
||||
<field name="view_id" ref="base.view_company_form" />
|
||||
<field name="view_type">form</field>
|
||||
<field name="view_mode">form</field>
|
||||
<field name="context">{'res_id' : user.company_id.id}</field>
|
||||
</record>
|
||||
<record id="config_wizard_action_configure_default_time_unit" model="ir.actions.todo">
|
||||
<field name="action_id" ref="action_configure_default_time_unit" />
|
||||
<field name="category_id" ref="category_project_config" />
|
||||
</record>
|
||||
|
||||
<record id="action_review_task_stage" model="ir.actions.act_window">
|
||||
<field name="name">Review Task Stages</field>
|
||||
<field name="type">ir.actions.act_window</field>
|
||||
<field name="res_model">project.task.type</field>
|
||||
<field name="view_type">form</field>
|
||||
<field name="view_mode">tree,form</field>
|
||||
<field name="context">{}</field>
|
||||
<field name="domain">[]</field>
|
||||
</record>
|
||||
|
||||
<record id="config_wizard_action_review_task_stage" model="ir.actions.todo">
|
||||
<field name="action_id" ref="action_review_task_stage"/>
|
||||
<field name="category_id" ref="category_project_config" />
|
||||
</record>
|
||||
</data>
|
||||
</openerp>
|
||||
|
|
|
@ -29,4 +29,28 @@ class purchase_installer(osv.osv_memory):
|
|||
}
|
||||
purchase_installer()
|
||||
|
||||
class purchase_config_wizard(osv.osv_memory):
|
||||
_name = 'purchase.config.wizard'
|
||||
|
||||
_columns = {
|
||||
'default_method' : fields.selection(
|
||||
[('manual', 'Based on Purchase Orders'),
|
||||
('picking', 'Based on Receptions'),
|
||||
('order', 'Pre-Generate Draft Invoices on Purchase Orders'),
|
||||
],
|
||||
'Default Invoicing Control Method',
|
||||
required=True,
|
||||
),
|
||||
}
|
||||
|
||||
def validate_cb(self, cr, uid, ids, context=None):
|
||||
wizard = self.browse(cr, uid, ids, context=context)[0]
|
||||
|
||||
proxy = self.pool.get('ir.values')
|
||||
proxy.set(cr, uid, 'default', False, 'invoice_method', ['purchase.order'], wizard.default_method),
|
||||
|
||||
return {'type' : 'ir.actions.act_window_close'}
|
||||
|
||||
purchase_config_wizard()
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
|
|
@ -17,5 +17,55 @@
|
|||
</data>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="action_import_create_supplier_installer" model="ir.actions.act_window">
|
||||
<field name="name">Create or Import Suppliers</field>
|
||||
<field name="type">ir.actions.act_window</field>
|
||||
<field name="res_model">res.partner</field>
|
||||
<field name="view_type">form</field>
|
||||
<field name="view_mode">tree,form</field>
|
||||
<field name="context">{'search_default_supplier': 1, 'default_supplier' : True, 'default_customer' : False}</field>
|
||||
<field name="view_id" ref="base.view_partner_tree" />
|
||||
<field name="help">Create or Import Suppliers and their contacts manually from this form or you can import your existing partners by CSV spreadsheet from "Import Data" wizard</field>
|
||||
</record>
|
||||
|
||||
<record id="category_purchase_config" model="ir.actions.todo.category">
|
||||
<field name="name">Purchase Management</field>
|
||||
<field name="sequence">5</field>
|
||||
</record>
|
||||
|
||||
<record id="config_wizard_action_import_create_supplier_installer" model="ir.actions.todo">
|
||||
<field name="action_id" ref="action_import_create_supplier_installer" />
|
||||
<field name="category_id" ref="category_purchase_config" />
|
||||
</record>
|
||||
|
||||
<record id="view_purchase_config" model="ir.ui.view">
|
||||
<field name="name">purchase.view_purchase_config</field>
|
||||
<field name="type">form</field>
|
||||
<field name="model">purchase.config.wizard</field>
|
||||
<field name="arch" type="xml">
|
||||
<form string="Purchase Config">
|
||||
<label string="Set Your Default Invoicing Control Method" />
|
||||
<field name="default_method" nolabel="1"/>
|
||||
|
||||
<group colspan="4">
|
||||
<button special="cancel" icon="gtk-cancel" string="Cancel" />
|
||||
<button name="validate_cb" string="Validate" icon="gtk-apply" type="object" />
|
||||
</group>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="action_purchase_config" model="ir.actions.act_window">
|
||||
<field name="name">Set the Default Invoicing Control Method</field>
|
||||
<field name="res_model">purchase.config.wizard</field>
|
||||
<field name="view_type">form</field>
|
||||
<field name="view_mode">form</field>
|
||||
<field name="target">new</field>
|
||||
</record>
|
||||
|
||||
<record id="todo_purchase_config" model="ir.actions.todo">
|
||||
<field name="action_id" ref="action_purchase_config" />
|
||||
</record>
|
||||
</data>
|
||||
</openerp>
|
||||
|
|
|
@ -40,15 +40,10 @@
|
|||
<field name="target">new</field>
|
||||
</record>
|
||||
|
||||
<record id="category_purchase_configuration" model="ir.actions.todo.category">
|
||||
<field name="name">Purchase Management</field>
|
||||
<field name="sequence">5</field>
|
||||
</record>
|
||||
|
||||
<!-- register configuration wizard -->
|
||||
<record id="config_wizard_step_purchase_limit_amount" model="ir.actions.todo">
|
||||
<field name="action_id" ref="action_config_purchase_limit_amount"/>
|
||||
<field name="category_id" ref="category_purchase_configuration"/>
|
||||
<field name="category_id" ref="purchase.category_purchase_config"/>
|
||||
</record>
|
||||
|
||||
</data>
|
||||
|
|
|
@ -1945,5 +1945,9 @@
|
|||
groups="base.group_extended"
|
||||
parent="menu_warehouse_config" />
|
||||
|
||||
<record model="ir.actions.todo.category" id="category_stock_management_config">
|
||||
<field name="name">Stock Management</field>
|
||||
</record>
|
||||
|
||||
</data>
|
||||
</openerp>
|
||||
|
|
|
@ -75,8 +75,10 @@
|
|||
<field name="context">{'menu':True}</field>
|
||||
</record>
|
||||
|
||||
<menuitem id="base.menu_base_config_plugins" name="Plugins" parent="base.menu_base_config" sequence="10"/>
|
||||
<menuitem id="menu_base_config_plugins_thunderbird" action="action_thunderbird_wizard" name="Load Thunderbird Plug-In" parent="base.menu_base_config_plugins" sequence="10"/>
|
||||
<menuitem id="base.menu_base_config_plugins" name="Plugins" parent="base.menu_base_config" sequence="10"/>
|
||||
<menuitem id="menu_base_config_plugins_thunderbird" action="action_thunderbird_wizard" name="Load Thunderbird Plug-In" parent="base.menu_base_config_plugins" sequence="10"/>
|
||||
<menuitem id="base.menu_sales" name="Sales" parent="base.menu_base_partner" sequence="1" />
|
||||
<menuitem id="menu_base_config_plugins_thunderbird_sales" action="action_thunderbird_wizard" name="Load Thunderbird Plug-In" parent="base.menu_sales" />
|
||||
|
||||
</data>
|
||||
</openerp>
|
||||
|
|
Loading…
Reference in New Issue