<?xml version="1.0" ?> <openerp> <data> <record id="task_company" model="ir.ui.view"> <field name="name">res.company.bs</field> <field name="model">res.company</field> <field name="type">form</field> <field name="inherit_id" ref="base.view_company_form"/> <field name="arch" type="xml"> <notebook position="inside"> <page string="BS"> <field name="company_bp_ids" nolabel="1"/> </page> </notebook> </field> </record> <!-- PLANS VIEWS --> <!-- tree view for a business plan --> <record model="ir.ui.view" id="company_bp_list_view"> <field name="name">company.bp.list</field> <field name="model">company.bp</field> <field name="type">tree</field> <field name="arch" type="xml"> <tree string="Business plans" > <field name="name"/> <field name="state" /> </tree> </field> </record> <!-- Form view for a business plan --> <record model="ir.ui.view" id="company_bp_form_view"> <field name="name">company.bp.form</field> <field name="model">company.bp</field> <field name="type">form</field> <field name="arch" type="xml"> <form string="Software"> <group col="8" colspan="4"> <field name="name"/> <field name="state"/> <button string="Request validation" type="object" name="button_request_validation" states="draft" /> <button string="Valid" type="object" name="button_valid" states="tobevalidated" /> <button string="Obsolete" type="object" name="button_set_obsolete" states="valid" /> <button string="Set to draft" type="object" name="button_set_draft" states="obsolete" /> </group> <group col="6" colspan="4"> <field name="start_date"/> <field name="end_date"/> <field name="validation_date"/> </group> <notebook colspan="4"> <page string="Main"> <separator string="Mission: what is our business and what it will be ?" colspan="2"/> <separator string="Positioning" colspan="2"/> <field name="mission" nolabel="1" colspan="2"/> <field name="positioning" nolabel="1" colspan="2"/> <separator string="Problems/risks to solve" colspan="2"/> <separator string="Annual targets" colspan="2"/> <field name="problems" nolabel="1" colspan="2"/> <field name="annual_targets" nolabel="1" colspan="2"/> </page> <page string="PEST"> <separator string="Political" colspan="4"/> <field name="political" nolabel="1" colspan="4"/> <separator string="Economical" colspan="4"/> <field name="econo" nolabel="1" colspan="4"/> <separator string="Social" colspan="4"/> <field name="social" nolabel="1" colspan="4"/> <separator string="Technological" colspan="4"/> <field name="techno" nolabel="1" colspan="4"/> </page> <page string="Porter"> <separator string="Customer" colspan="4"/> <field name="porter_customers" nolabel="1" colspan="4"/> <separator string="Suppliers" colspan="4"/> <field name="porter_suppliers" nolabel="1" colspan="4"/> <separator string="Competitors" colspan="4"/> <field name="porter_competitors" nolabel="1" colspan="4"/> <separator string="Entrants" colspan="4"/> <field name="porter_entrants" nolabel="1" colspan="4"/> <separator string="Substitutes" colspan="4"/> <field name="porter_substitutes" nolabel="1" colspan="4"/> </page> <page string="SWOT"> <separator string="Strenghts" colspan="4"/> <field name="strenghts" nolabel="1" colspan="4"/> <separator string="Weaknesses" colspan="4"/> <field name="weaknesses" nolabel="1" colspan="4"/> <separator string="Opportunities" colspan="4"/> <field name="opportunities" nolabel="1" colspan="4"/> <separator string="Threats" colspan="4"/> <field name="threats" nolabel="1" colspan="4"/> </page> <page string="Strategy"> <field name="strategy" nolabel="1" colspan="4"/> </page> <page string="Notes"> <field name="notes" nolabel="1" colspan="4"/> </page> </notebook> </form> </field> </record> <!-- search view for a business plan --> <record model="ir.ui.view" id="company_bp_search_view"> <field name="name">company.bp.search.form</field> <field name="model">company.bp</field> <field name="type">search</field> <field name="arch" type="xml"> <search string="Business strategy"> <field name="name" select='1'/> <filter string="State" icon="terp-partner" name = "by_state" domain="[]" help="State" context="{'group_by':'state'}" /> </search> </field> </record> <!-- PLANS TARGET VIEWS --> <!-- tree view for a business plan target --> <record model="ir.ui.view" id="company_bp_targets_list_view"> <field name="name">company.target.list</field> <field name="model">company.target</field> <field name="type">tree</field> <field name="arch" type="xml"> <tree string="Period's targets" > <field name="name"/> <field name="result"/> <field name="is_achived"/> </tree> </field> </record> <!-- Form view for a business plan target --> <record model="ir.ui.view" id="company_bp_targets_form_view"> <field name="name">company.target.form</field> <field name="model">company.target</field> <field name="type">form</field> <field name="arch" type="xml"> <form string="Target"> <group> <field name="name"/> <field name="is_achived"/> <field name="result" colspan="4"/> </group> <separator string="Notes" colspan="4"/> <field name="notes" nolabel="1" colspan="4"/> </form> </field> </record> <!-- PLANS PROBLEM VIEWS --> <!-- tree view for a business plan problem --> <record model="ir.ui.view" id="company_bp_problem_list_view"> <field name="name">company.problem.list</field> <field name="model">company.problem</field> <field name="type">tree</field> <field name="arch" type="xml"> <tree string="Period's problems" > <field name="name"/> <field name="solution"/> <field name="is_achived"/> </tree> </field> </record> <!-- Form view for a business plan problem --> <record model="ir.ui.view" id="company_bp_problem_form_view"> <field name="name">company.problem.form</field> <field name="model">company.problem</field> <field name="type">form</field> <field name="arch" type="xml"> <form string="Problem"> <group> <field name="name"/> <field name="is_achived"/> <field name="solution" colspan="4"/> </group> <separator string="Notes" colspan="4"/> <field name="notes" nolabel="1" colspan="4"/> </form> </field> </record> <!-- MENUS & ACTIONS --> <record id="action_open_bp" model="ir.actions.act_window"> <field name="name">Company Business Strategy</field> <field name="type">ir.actions.act_window</field> <field name="res_model">company.bp</field> <field name="view_mode">tree,form</field> <field name="view_id" ref="company_bp_list_view"/> <field name="search_view_id" ref="company_bp_search_view"/> </record> <menuitem name="Business strategy" id="base.root_menu_company_bp" sequence="10"/> <menuitem name="Strategy per period" parent="base.root_menu_company_bp" id="base.menu_company_bp" action="action_open_bp" sequence="100"/> </data> </openerp>