Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Error:
- Odoo Server Error
- Traceback (most recent call last):
- File "/home/sbu/odoo/odoo/tools/cache.py", line 85, in lookup
- r = d[key]
- File "/home/sbu/odoo/odoo/tools/func.py", line 69, in wrapper
- return func(self, *args, **kwargs)
- File "/home/sbu/odoo/odoo/tools/lru.py", line 44, in __getitem__
- a = self.d[obj].me
- KeyError: ('ir.model.data', <function IrModelData.xmlid_lookup at 0x7fdb955e4d90>, 'crm.crm_case_form_view_oppor')
- During handling of the above exception, another exception occurred:
- Traceback (most recent call last):
- File "/home/sbu/odoo/odoo/tools/convert.py", line 711, in parse
- self._tag_root(de)
- File "/home/sbu/odoo/odoo/tools/convert.py", line 673, in _tag_root
- f(rec)
- File "/home/sbu/odoo/odoo/tools/convert.py", line 673, in _tag_root
- f(rec)
- File "/home/sbu/odoo/odoo/tools/convert.py", line 562, in _tag_record
- f_val = self.id_get(f_ref)
- File "/home/sbu/odoo/odoo/tools/convert.py", line 656, in id_get
- res = self.model_id_get(id_str, raise_if_not_found)
- File "/home/sbu/odoo/odoo/tools/convert.py", line 662, in model_id_get
- return self.env['ir.model.data'].xmlid_to_res_model_res_id(id_str, raise_if_not_found=raise_if_not_found)
- File "/home/sbu/odoo/odoo/addons/base/models/ir_model.py", line 1609, in xmlid_to_res_model_res_id
- return self.xmlid_lookup(xmlid)[1:3]
- File "<decorator-gen-24>", line 2, in xmlid_lookup
- File "/home/sbu/odoo/odoo/tools/cache.py", line 90, in lookup
- value = d[key] = self.method(*args, **kwargs)
- File "/home/sbu/odoo/odoo/addons/base/models/ir_model.py", line 1598, in xmlid_lookup
- raise ValueError('External ID not found in the system: %s' % xmlid)
- ValueError: External ID not found in the system: crm.crm_case_form_view_oppor
- During handling of the above exception, another exception occurred:
- Traceback (most recent call last):
- File "/home/sbu/odoo/odoo/http.py", line 631, in _handle_exception
- return super(JsonRequest, self)._handle_exception(exception)
- File "/home/sbu/odoo/odoo/http.py", line 325, in _handle_exception
- raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
- File "/home/sbu/odoo/odoo/tools/pycompat.py", line 14, in reraise
- raise value
- File "/home/sbu/odoo/odoo/http.py", line 676, in dispatch
- result = self._call_function(**self.params)
- File "/home/sbu/odoo/odoo/http.py", line 357, in _call_function
- return checked_call(self.db, *args, **kwargs)
- File "/home/sbu/odoo/odoo/service/model.py", line 92, in wrapper
- return f(dbname, *args, **kwargs)
- File "/home/sbu/odoo/odoo/http.py", line 350, in checked_call
- result = self.endpoint(*a, **kw)
- File "/home/sbu/odoo/odoo/http.py", line 894, in __call__
- return self.method(*args, **kw)
- File "/home/sbu/odoo/odoo/http.py", line 522, in response_wrap
- response = f(*args, **kw)
- File "/home/sbu/odoo/addons/web/controllers/main.py", line 1110, in call_button
- action = self._call_kw(model, method, args, kwargs)
- File "/home/sbu/odoo/addons/web/controllers/main.py", line 1098, in _call_kw
- return call_kw(request.env[model], method, args, kwargs)
- File "/home/sbu/odoo/odoo/api.py", line 394, in call_kw
- result = _call_kw_multi(method, model, args, kwargs)
- File "/home/sbu/odoo/odoo/api.py", line 381, in _call_kw_multi
- result = method(recs, *args, **kwargs)
- File "<decorator-gen-58>", line 2, in button_immediate_install
- File "/home/sbu/odoo/odoo/addons/base/models/ir_module.py", line 72, in check_and_log
- return method(self, *args, **kwargs)
- File "/home/sbu/odoo/odoo/addons/base/models/ir_module.py", line 466, in button_immediate_install
- return self._button_immediate_function(type(self).button_install)
- File "/home/sbu/odoo/odoo/addons/base/models/ir_module.py", line 576, in _button_immediate_function
- modules.registry.Registry.new(self._cr.dbname, update_module=True)
- File "/home/sbu/odoo/odoo/modules/registry.py", line 86, in new
- odoo.modules.load_modules(registry._db, force_demo, status, update_module)
- File "/home/sbu/odoo/odoo/modules/loading.py", line 420, in load_modules
- loaded_modules, update_module, models_to_check)
- File "/home/sbu/odoo/odoo/modules/loading.py", line 312, in load_marked_modules
- perform_checks=perform_checks, models_to_check=models_to_check
- File "/home/sbu/odoo/odoo/modules/loading.py", line 222, in load_module_graph
- load_data(cr, idref, mode, kind='data', package=package, report=report)
- File "/home/sbu/odoo/odoo/modules/loading.py", line 68, in load_data
- tools.convert_file(cr, package.name, filename, idref, mode, noupdate, kind, report)
- File "/home/sbu/odoo/odoo/tools/convert.py", line 735, in convert_file
- convert_xml_import(cr, module, fp, idref, mode, noupdate, report)
- File "/home/sbu/odoo/odoo/tools/convert.py", line 802, in convert_xml_import
- obj.parse(doc.getroot())
- File "/home/sbu/odoo/odoo/tools/convert.py", line 720, in parse
- exc_info[2]
- File "/home/sbu/odoo/odoo/tools/pycompat.py", line 13, in reraise
- raise value.with_traceback(tb)
- File "/home/sbu/odoo/odoo/tools/convert.py", line 711, in parse
- self._tag_root(de)
- File "/home/sbu/odoo/odoo/tools/convert.py", line 673, in _tag_root
- f(rec)
- File "/home/sbu/odoo/odoo/tools/convert.py", line 673, in _tag_root
- f(rec)
- File "/home/sbu/odoo/odoo/tools/convert.py", line 562, in _tag_record
- f_val = self.id_get(f_ref)
- File "/home/sbu/odoo/odoo/tools/convert.py", line 656, in id_get
- res = self.model_id_get(id_str, raise_if_not_found)
- File "/home/sbu/odoo/odoo/tools/convert.py", line 662, in model_id_get
- return self.env['ir.model.data'].xmlid_to_res_model_res_id(id_str, raise_if_not_found=raise_if_not_found)
- File "/home/sbu/odoo/odoo/addons/base/models/ir_model.py", line 1609, in xmlid_to_res_model_res_id
- return self.xmlid_lookup(xmlid)[1:3]
- File "<decorator-gen-24>", line 2, in xmlid_lookup
- File "/home/sbu/odoo/odoo/tools/cache.py", line 90, in lookup
- value = d[key] = self.method(*args, **kwargs)
- File "/home/sbu/odoo/odoo/addons/base/models/ir_model.py", line 1598, in xmlid_lookup
- raise ValueError('External ID not found in the system: %s' % xmlid)
- odoo.tools.convert.ParseError: "External ID not found in the system: crm.crm_case_form_view_oppor" while parsing /home/sbu/enterprise/crm_enterprise/views/crm_lead_views.xml:2, near
- <odoo>
- <data>
- <record id="crm_opportunity_view_search" model="ir.ui.view">
- <field name="name">crm.lead.search</field>
- <field name="model">crm.lead</field>
- <field name="priority">32</field>
- <field name="arch" type="xml">
- <search string="Opportunities Analysis">
- <filter string="My Pipeline" name="my" domain="[('user_id', '=', uid)]"/>
- <separator/>
- <filter name="lead" string="Leads" domain="[('type','=', 'lead')]" help="Show only lead" groups="crm.group_use_lead"/>
- <filter name="opportunity" string="Opportunities" domain="[('type','=','opportunity')]" help="Show only opportunity" groups="crm.group_use_lead"/>
- <separator/>
- <filter string="Won" name="won_status" domain="[('probability', '=', 100)]"/>
- <filter string="Lost" name="lost" domain="[('probability', '=', 0), ('active', '=', False)]"/>
- <field name="user_id" string="Salesperson"/>
- <field name="team_id" context="{'invisible_team': False}"/>
- <separator/>
- <group expand="0" string="Extended Filters">
- <field name="partner_id" filter_domain="[('partner_id','child_of',self)]"/>
- <field name="stage_id" widget="selection" domain="['|', ('team_id', '=', False), ('team_id', '=', 'team_id')]"/>
- <field name="campaign_id" widget="selection"/>
- <field name="medium_id" widget="selection"/>
- <field name="source_id" widget="selection"/>
- <field name="company_id" options="{'no_create': True}" groups="base.group_multi_company"/>
- </group>
- <field name="city"/>
- <field name="lost_reason"/>
- <group expand="1" string="Group By">
- <filter string="Salesperson" name="salesperson" context="{'group_by':'user_id'}"/>
- <filter string="Sales Team" name="saleschannel" context="{'group_by':'team_id'}"/>
- <filter name="stage" string="Stage" context="{'group_by':'stage_id'}"/>
- <filter name="city" string="City" context="{'group_by': 'city'}"/>
- <filter string="Country" name="country" context="{'group_by':'country_id'}"/>
- <filter string="Lost Reason" name="lostreason" context="{'group_by':'lost_reason'}"/>
- <filter string="Company" name="company" context="{'group_by':'company_id'}" groups="base.group_multi_company"/>
- <filter string="Campaign" name="compaign" domain="[]" context="{'group_by':'campaign_id'}"/>
- <filter string="Medium" name="medium" domain="[]" context="{'group_by':'medium_id'}"/>
- <filter string="Source" name="source" domain="[]" context="{'group_by':'source_id'}"/>
- <separator orientation="vertical"/>
- <filter string="Creation Date" context="{'group_by':'create_date:month'}" name="month"/>
- <filter string="Conversion Date" name="date_conversion" context="{'group_by': 'date_conversion'}" groups="crm.group_use_lead"/>
- <filter string="Expected Closing Date" name="date_deadline" context="{'group_by':'date_deadline'}"/>
- <filter string="Closed Date" name="date_closed" context="{'group_by':'date_closed'}"/>
- </group>
- </search>
- </field>
- </record>
- <record id="crm_opportunity_view_graph" model="ir.ui.view">
- <field name="name">crm.lead.graph.view</field>
- <field name="model">crm.lead</field>
- <field name="arch" type="xml">
- <graph string="Opportunities">
- <field name="stage_id" type="row"/>
- <field name="date_deadline" interval="month" type="row"/>
- </graph>
- </field>
- </record>
- <record id="crm_lead_view_pivot" model="ir.ui.view">
- <field name="name">crm.lead.pivot.view</field>
- <field name="model">crm.lead</field>
- <field name="arch" type="xml">
- <pivot string="Leads" display_quantity="true">
- <field name="user_id" type="row"/>
- <field name="planned_revenue" type="measure"/>
- <field name="expected_revenue" type="measure"/>
- <field name="day_close" type="measure"/>
- </pivot>
- </field>
- </record>
- <record id="crm_lead_view_graph" model="ir.ui.view">
- <field name="name">crm.lead.graph.view</field>
- <field name="model">crm.lead</field>
- <field name="arch" type="xml">
- <graph string="leads" type="line">
- <field name="create_date" interval="week" type="row"/>
- </graph>
- </field>
- </record>
- <record id="crm_opportunity_view_dashboard" model="ir.ui.view">
- <field name="name">crm.lead.view.dashboard</field>
- <field name="model">crm.lead</field>
- <field name="mode">primary</field>
- <field name="arch" type="xml">
- <dashboard>
- <view type="graph" ref="crm_enterprise.crm_opportunity_view_graph"/>
- <group>
- <group>
- <aggregate name="opportunities" string="Opportunities" group_operator="count" field="id" measure="__count__"/>
- <aggregate name="expected_revenue_aggregate" field="planned_revenue" string="Expected Revenue"/>
- <aggregate name="prorated_revenue_aggregate" field="expected_revenue" invisible="1"/>
- <formula name="prorated_revenue" string="Prorated Revenue" value="record.prorated_revenue_aggregate" widget="monetary"/>
- <formula name="deal_size" string="Average Deal Size" value="record.expected_revenue_aggregate / record.opportunities" widget="monetary"/>
- <aggregate name="days_to_assign" string="Days to Assign" field="day_open" group_operator="avg" value_label="days"/>
- <aggregate name="days_to_close" string="Days to Close" field="day_close" group_operator="avg" value_label="days"/>
- <aggregate name="days_exceeding_closing" string="Exceeding Close Days" field="days_exceeding_closing" group_operator="avg"/>
- </group>
- <group col="1">
- <widget name="pie_chart" title="Win/Loss Ratio" attrs="{'groupby': 'won_status', 'domain': '[\'|\', (\'active\', \'=\', False), (\'active\', \'=\', True), (\'won_status\', \'!=\', \'pending\')]'}"/>
- <widget name="pie_chart" title="Medium" attrs="{'groupby': 'medium_id'}"/>
- </group>
- </group>
- <view type="pivot" ref="crm.crm_lead_view_pivot"/>
- <view type="cohort" ref="crm_enterprise.crm_lead_view_cohort"/>
- </dashboard>
- </field>
- </record>
- <record id="crm_lead_dashboard_view" model="ir.ui.view">
- <field name="name">crm.lead.view.dashboard.lead</field>
- <field name="model">crm.lead</field>
- <field name="mode">primary</field>
- <field name="arch" type="xml">
- <dashboard>
- <view type="graph" ref="crm_enterprise.crm_lead_view_graph"/>
- <group>
- <group>
- <aggregate name="leads" string="Leads" group_operator="count_distinct" field="id" measure="__count__"/>
- <aggregate name="days_to_convert" string="Days To Opportunity" group_operator="avg" field="days_to_convert"/>
- <aggregate name="days_to_assign" string="Days to Assign" field="day_open" group_operator="avg" value_label="days"/>
- <formula name="opportunity_percent" string="% Opportunities" value="record.opportunities / record.leads" widget="percentage"/>
- <aggregate name="planned_revenue" string="Expected Revenue" field="planned_revenue" group_operator="sum" widget="monetary"/>
- <aggregate name="expected_revenue" string="Prorated Revenue" field="expected_revenue" group_operator="sum" widget="monetary"/>
- <aggregate name="day_close" string="Days to Close" field="day_close" group_operator="avg" value_label="days"/>
- <aggregate name="opportunities" string="Opportunities" field="id" domain="[('type','=','opportunity')]" group_operator="count" invisible="1"/>
- </group>
- <group>
- <widget name="pie_chart" title="Sales Teams" attrs="{'groupby': 'team_id'}"/>
- <widget name="pie_chart" title="Medium" attrs="{'groupby': 'medium_id'}"/>
- </group>
- </group>
- <view type="pivot" ref="crm_enterprise.crm_lead_view_pivot"/>
- </dashboard>
- </field>
- </record>
- <record id="crm_lead_view_cohort" model="ir.ui.view">
- <field name="name">crm.lead.view.cohort</field>
- <field name="model">crm.lead</field>
- <field name="arch" type="xml">
- <cohort string="Opportunities" date_start="create_date" date_stop="date_closed" interval="week" mode="churn"/>
- </field>
- </record>
- <record id="crm.action_report_crm_lead_salesteam" model="ir.actions.act_window">
- <field name="view_mode">dashboard,pivot,graph,tree,form,cohort</field>
- <field name="view_id" ref="crm_lead_dashboard_view"/>
- <field name="search_view_id" ref="crm.view_crm_case_leads_filter"/>
- </record>
- <record id="crm.action_report_crm_opportunity_salesteam" model="ir.actions.act_window">
- <field name="view_mode">dashboard,pivot,graph,tree,form,cohort</field>
- <field name="view_id" ref="crm_opportunity_view_dashboard"/>
- <field name="search_view_id" ref="crm_enterprise.crm_opportunity_view_search"/>
- </record>
- <!-- dashboard action -->
- <record id="crm_opportunity_action_dashboard" model="ir.actions.act_window">
- <field name="name">Pipeline Analysis</field>
- <field name="res_model">crm.lead</field>
- <field name="view_mode">dashboard,pivot,graph,tree,form,cohort</field>
- <field name="context" eval="{'form_view_ref': 'crm.crm_case_form_view_oppor', 'tree_view_ref': 'crm.crm_case_tree_view_oppor','default_type': 'opportunity', 'search_default_opportunity': True, 'time_ranges': {'field':'create_date', 'range':'last_365_days'}}"/>
- <field name="search_view_id" ref="crm_enterprise.crm_opportunity_view_search"/>
- </record>
- <record id="crm_opportunity_action_dashboard_dashboard" model="ir.actions.act_window.view">
- <field name="sequence" eval="1"/>
- <field name="view_mode">dashboard</field>
- <field name="view_id" ref="crm_opportunity_view_dashboard"/>
- <field name="act_window_id" ref="crm_enterprise.crm_opportunity_action_dashboard"/>
- </record>
- <record id="crm_opportunity_action_dashboard_pivot" model="ir.actions.act_window.view">
- <field name="sequence" eval="2"/>
- <field name="view_mode">pivot</field>
- <field name="view_id" ref="crm.crm_lead_view_pivot"/>
- <field name="act_window_id" ref="crm_enterprise.crm_opportunity_action_dashboard"/>
- </record>
- <record id="crm_opportunity_action_dashboard_graph" model="ir.actions.act_window.view">
- <field name="sequence" eval="3"/>
- <field name="view_mode">graph</field>
- <field name="view_id" ref="crm_enterprise.crm_opportunity_view_graph"/>
- <field name="act_window_id" ref="crm_enterprise.crm_opportunity_action_dashboard"/>
- </record>
- <record id="crm_opportunity_action_dashboard_cohort" model="ir.actions.act_window.view">
- <field name="sequence" eval="4"/>
- <field name="view_mode">cohort</field>
- <field name="view_id" ref="crm_enterprise.crm_lead_view_cohort"/>
- <field name="act_window_id" ref="crm_enterprise.crm_opportunity_action_dashboard"/>
- </record>
- <record id="crm_opportunity_action_dashboard_tree" model="ir.actions.act_window.view">
- <field name="sequence" eval="5"/>
- <field name="view_mode">tree</field>
- <field name="view_id" ref="crm.crm_case_tree_view_oppor"/>
- <field name="act_window_id" ref="crm_enterprise.crm_opportunity_action_dashboard"/>
- </record>
- <record id="crm_opportunity_action_dashboard_form" model="ir.actions.act_window.view">
- <field name="sequence" eval="6"/>
- <field name="view_mode">form</field>
- <field name="view_id" ref="crm.crm_case_form_view_oppor"/>
- <field name="act_window_id" ref="crm_enterprise.crm_opportunity_action_dashboard"/>
- </record>
- <record id="crm_lead_action_dashboard" model="ir.actions.act_window">
- <field name="name">Leads Analysis</field>
- <field name="res_model">crm.lead</field>
- <field name="view_mode">dashboard,pivot,graph,tree</field>
- <field name="domain">['|', ('active','=',True), ('active','=',False)]</field>
- <field name="search_view_id" ref="crm.view_crm_case_leads_filter"/>
- <field name="context" eval="{'time_ranges': {'field':'create_date', 'range':'last_30_days'}}"/>
- </record>
- <record id="crm_lead_action_dashboard_dashboard" model="ir.actions.act_window.view">
- <field name="sequence" eval="1"/>
- <field name="view_mode">dashboard</field>
- <field name="view_id" ref="crm_lead_dashboard_view"/>
- <field name="act_window_id" ref="crm_enterprise.crm_lead_action_dashboard"/>
- </record>
- <record id="crm_lead_action_dashboard_pivot" model="ir.actions.act_window.view">
- <field name="sequence" eval="2"/>
- <field name="view_mode">pivot</field>
- <field name="view_id" ref="crm_enterprise.crm_lead_view_pivot"/>
- <field name="act_window_id" ref="crm_enterprise.crm_lead_action_dashboard"/>
- </record>
- <record id="crm_lead_action_dashboard_graph" model="ir.actions.act_window.view">
- <field name="sequence" eval="3"/>
- <field name="view_mode">graph</field>
- <field name="view_id" ref="crm_enterprise.crm_lead_view_graph"/>
- <field name="act_window_id" ref="crm_enterprise.crm_lead_action_dashboard"/>
- </record>
- <!-- add dashboard to pipeline action -->
- <record id="crm_lead_action_pipeline_view_dashboard" model="ir.actions.act_window.view">
- <field name="sequence" eval="7"/>
- <field name="view_mode">dashboard</field>
- <field name="view_id" ref="crm_enterprise.crm_opportunity_view_dashboard"/>
- <field name="act_window_id" ref="crm.crm_lead_opportunities_tree_view"/>
- </record>
- <!-- add cohort to pipeline action -->
- <record id="crm_lead_act_window_view_cohort" model="ir.actions.act_window.view">
- <field name="sequence" eval="6"/>
- <field name="view_mode">cohort</field>
- <field name="view_id" ref="crm_enterprise.crm_lead_view_cohort"/>
- <field name="act_window_id" ref="crm.crm_lead_opportunities_tree_view"/>
- </record>
- <!-- add dashboard to res partner action -->
- <record id="crm_lead_action_partner_view_dashboard" model="ir.actions.act_window.view">
- <field name="sequence" eval="6"/>
- <field name="view_mode">dashboard</field>
- <field name="act_window_id" ref="crm.crm_lead_opportunities"/>
- </record>
- <!-- add cohort to res partner action -->
- <record id="crm_opportunity_partner_add_cohort" model="ir.actions.act_window.view">
- <field name="sequence" eval="7"/>
- <field name="view_mode">cohort</field>
- <field name="act_window_id" ref="crm.crm_lead_opportunities"/>
- </record>
- <!-- menuitem -->
- <record id="crm.crm_opportunity_report_menu" model="ir.ui.menu">
- <field name="action" ref="crm_enterprise.crm_opportunity_action_dashboard"/>
- </record>
- <record id="crm.crm_opportunity_report_menu_lead" model="ir.ui.menu">
- <field name="action" ref="crm_enterprise.crm_lead_action_dashboard"/>
- </record>
- </data>
- </odoo>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement