Advertisement
SBUODOO

Untitled

Aug 27th, 2019
370
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 23.48 KB | None | 0 0
  1. Error:
  2. Odoo Server Error
  3.  
  4. Traceback (most recent call last):
  5. File "/home/sbu/odoo/odoo/tools/cache.py", line 85, in lookup
  6. r = d[key]
  7. File "/home/sbu/odoo/odoo/tools/func.py", line 69, in wrapper
  8. return func(self, *args, **kwargs)
  9. File "/home/sbu/odoo/odoo/tools/lru.py", line 44, in __getitem__
  10. a = self.d[obj].me
  11. KeyError: ('ir.model.data', <function IrModelData.xmlid_lookup at 0x7fdb955e4d90>, 'crm.crm_case_form_view_oppor')
  12.  
  13. During handling of the above exception, another exception occurred:
  14.  
  15. Traceback (most recent call last):
  16. File "/home/sbu/odoo/odoo/tools/convert.py", line 711, in parse
  17. self._tag_root(de)
  18. File "/home/sbu/odoo/odoo/tools/convert.py", line 673, in _tag_root
  19. f(rec)
  20. File "/home/sbu/odoo/odoo/tools/convert.py", line 673, in _tag_root
  21. f(rec)
  22. File "/home/sbu/odoo/odoo/tools/convert.py", line 562, in _tag_record
  23. f_val = self.id_get(f_ref)
  24. File "/home/sbu/odoo/odoo/tools/convert.py", line 656, in id_get
  25. res = self.model_id_get(id_str, raise_if_not_found)
  26. File "/home/sbu/odoo/odoo/tools/convert.py", line 662, in model_id_get
  27. return self.env['ir.model.data'].xmlid_to_res_model_res_id(id_str, raise_if_not_found=raise_if_not_found)
  28. File "/home/sbu/odoo/odoo/addons/base/models/ir_model.py", line 1609, in xmlid_to_res_model_res_id
  29. return self.xmlid_lookup(xmlid)[1:3]
  30. File "<decorator-gen-24>", line 2, in xmlid_lookup
  31. File "/home/sbu/odoo/odoo/tools/cache.py", line 90, in lookup
  32. value = d[key] = self.method(*args, **kwargs)
  33. File "/home/sbu/odoo/odoo/addons/base/models/ir_model.py", line 1598, in xmlid_lookup
  34. raise ValueError('External ID not found in the system: %s' % xmlid)
  35. ValueError: External ID not found in the system: crm.crm_case_form_view_oppor
  36.  
  37. During handling of the above exception, another exception occurred:
  38.  
  39. Traceback (most recent call last):
  40. File "/home/sbu/odoo/odoo/http.py", line 631, in _handle_exception
  41. return super(JsonRequest, self)._handle_exception(exception)
  42. File "/home/sbu/odoo/odoo/http.py", line 325, in _handle_exception
  43. raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
  44. File "/home/sbu/odoo/odoo/tools/pycompat.py", line 14, in reraise
  45. raise value
  46. File "/home/sbu/odoo/odoo/http.py", line 676, in dispatch
  47. result = self._call_function(**self.params)
  48. File "/home/sbu/odoo/odoo/http.py", line 357, in _call_function
  49. return checked_call(self.db, *args, **kwargs)
  50. File "/home/sbu/odoo/odoo/service/model.py", line 92, in wrapper
  51. return f(dbname, *args, **kwargs)
  52. File "/home/sbu/odoo/odoo/http.py", line 350, in checked_call
  53. result = self.endpoint(*a, **kw)
  54. File "/home/sbu/odoo/odoo/http.py", line 894, in __call__
  55. return self.method(*args, **kw)
  56. File "/home/sbu/odoo/odoo/http.py", line 522, in response_wrap
  57. response = f(*args, **kw)
  58. File "/home/sbu/odoo/addons/web/controllers/main.py", line 1110, in call_button
  59. action = self._call_kw(model, method, args, kwargs)
  60. File "/home/sbu/odoo/addons/web/controllers/main.py", line 1098, in _call_kw
  61. return call_kw(request.env[model], method, args, kwargs)
  62. File "/home/sbu/odoo/odoo/api.py", line 394, in call_kw
  63. result = _call_kw_multi(method, model, args, kwargs)
  64. File "/home/sbu/odoo/odoo/api.py", line 381, in _call_kw_multi
  65. result = method(recs, *args, **kwargs)
  66. File "<decorator-gen-58>", line 2, in button_immediate_install
  67. File "/home/sbu/odoo/odoo/addons/base/models/ir_module.py", line 72, in check_and_log
  68. return method(self, *args, **kwargs)
  69. File "/home/sbu/odoo/odoo/addons/base/models/ir_module.py", line 466, in button_immediate_install
  70. return self._button_immediate_function(type(self).button_install)
  71. File "/home/sbu/odoo/odoo/addons/base/models/ir_module.py", line 576, in _button_immediate_function
  72. modules.registry.Registry.new(self._cr.dbname, update_module=True)
  73. File "/home/sbu/odoo/odoo/modules/registry.py", line 86, in new
  74. odoo.modules.load_modules(registry._db, force_demo, status, update_module)
  75. File "/home/sbu/odoo/odoo/modules/loading.py", line 420, in load_modules
  76. loaded_modules, update_module, models_to_check)
  77. File "/home/sbu/odoo/odoo/modules/loading.py", line 312, in load_marked_modules
  78. perform_checks=perform_checks, models_to_check=models_to_check
  79. File "/home/sbu/odoo/odoo/modules/loading.py", line 222, in load_module_graph
  80. load_data(cr, idref, mode, kind='data', package=package, report=report)
  81. File "/home/sbu/odoo/odoo/modules/loading.py", line 68, in load_data
  82. tools.convert_file(cr, package.name, filename, idref, mode, noupdate, kind, report)
  83. File "/home/sbu/odoo/odoo/tools/convert.py", line 735, in convert_file
  84. convert_xml_import(cr, module, fp, idref, mode, noupdate, report)
  85. File "/home/sbu/odoo/odoo/tools/convert.py", line 802, in convert_xml_import
  86. obj.parse(doc.getroot())
  87. File "/home/sbu/odoo/odoo/tools/convert.py", line 720, in parse
  88. exc_info[2]
  89. File "/home/sbu/odoo/odoo/tools/pycompat.py", line 13, in reraise
  90. raise value.with_traceback(tb)
  91. File "/home/sbu/odoo/odoo/tools/convert.py", line 711, in parse
  92. self._tag_root(de)
  93. File "/home/sbu/odoo/odoo/tools/convert.py", line 673, in _tag_root
  94. f(rec)
  95. File "/home/sbu/odoo/odoo/tools/convert.py", line 673, in _tag_root
  96. f(rec)
  97. File "/home/sbu/odoo/odoo/tools/convert.py", line 562, in _tag_record
  98. f_val = self.id_get(f_ref)
  99. File "/home/sbu/odoo/odoo/tools/convert.py", line 656, in id_get
  100. res = self.model_id_get(id_str, raise_if_not_found)
  101. File "/home/sbu/odoo/odoo/tools/convert.py", line 662, in model_id_get
  102. return self.env['ir.model.data'].xmlid_to_res_model_res_id(id_str, raise_if_not_found=raise_if_not_found)
  103. File "/home/sbu/odoo/odoo/addons/base/models/ir_model.py", line 1609, in xmlid_to_res_model_res_id
  104. return self.xmlid_lookup(xmlid)[1:3]
  105. File "<decorator-gen-24>", line 2, in xmlid_lookup
  106. File "/home/sbu/odoo/odoo/tools/cache.py", line 90, in lookup
  107. value = d[key] = self.method(*args, **kwargs)
  108. File "/home/sbu/odoo/odoo/addons/base/models/ir_model.py", line 1598, in xmlid_lookup
  109. raise ValueError('External ID not found in the system: %s' % xmlid)
  110. 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
  111. <odoo>
  112. <data>
  113.  
  114. <record id="crm_opportunity_view_search" model="ir.ui.view">
  115. <field name="name">crm.lead.search</field>
  116. <field name="model">crm.lead</field>
  117. <field name="priority">32</field>
  118. <field name="arch" type="xml">
  119. <search string="Opportunities Analysis">
  120. <filter string="My Pipeline" name="my" domain="[('user_id', '=', uid)]"/>
  121. <separator/>
  122. <filter name="lead" string="Leads" domain="[('type','=', 'lead')]" help="Show only lead" groups="crm.group_use_lead"/>
  123. <filter name="opportunity" string="Opportunities" domain="[('type','=','opportunity')]" help="Show only opportunity" groups="crm.group_use_lead"/>
  124. <separator/>
  125. <filter string="Won" name="won_status" domain="[('probability', '=', 100)]"/>
  126. <filter string="Lost" name="lost" domain="[('probability', '=', 0), ('active', '=', False)]"/>
  127. <field name="user_id" string="Salesperson"/>
  128. <field name="team_id" context="{'invisible_team': False}"/>
  129. <separator/>
  130. <group expand="0" string="Extended Filters">
  131. <field name="partner_id" filter_domain="[('partner_id','child_of',self)]"/>
  132. <field name="stage_id" widget="selection" domain="['|', ('team_id', '=', False), ('team_id', '=', 'team_id')]"/>
  133. <field name="campaign_id" widget="selection"/>
  134. <field name="medium_id" widget="selection"/>
  135. <field name="source_id" widget="selection"/>
  136. <field name="company_id" options="{'no_create': True}" groups="base.group_multi_company"/>
  137. </group>
  138. <field name="city"/>
  139. <field name="lost_reason"/>
  140. <group expand="1" string="Group By">
  141. <filter string="Salesperson" name="salesperson" context="{'group_by':'user_id'}"/>
  142. <filter string="Sales Team" name="saleschannel" context="{'group_by':'team_id'}"/>
  143. <filter name="stage" string="Stage" context="{'group_by':'stage_id'}"/>
  144. <filter name="city" string="City" context="{'group_by': 'city'}"/>
  145. <filter string="Country" name="country" context="{'group_by':'country_id'}"/>
  146. <filter string="Lost Reason" name="lostreason" context="{'group_by':'lost_reason'}"/>
  147. <filter string="Company" name="company" context="{'group_by':'company_id'}" groups="base.group_multi_company"/>
  148. <filter string="Campaign" name="compaign" domain="[]" context="{'group_by':'campaign_id'}"/>
  149. <filter string="Medium" name="medium" domain="[]" context="{'group_by':'medium_id'}"/>
  150. <filter string="Source" name="source" domain="[]" context="{'group_by':'source_id'}"/>
  151. <separator orientation="vertical"/>
  152. <filter string="Creation Date" context="{'group_by':'create_date:month'}" name="month"/>
  153. <filter string="Conversion Date" name="date_conversion" context="{'group_by': 'date_conversion'}" groups="crm.group_use_lead"/>
  154. <filter string="Expected Closing Date" name="date_deadline" context="{'group_by':'date_deadline'}"/>
  155. <filter string="Closed Date" name="date_closed" context="{'group_by':'date_closed'}"/>
  156. </group>
  157. </search>
  158. </field>
  159. </record>
  160.  
  161. <record id="crm_opportunity_view_graph" model="ir.ui.view">
  162. <field name="name">crm.lead.graph.view</field>
  163. <field name="model">crm.lead</field>
  164. <field name="arch" type="xml">
  165. <graph string="Opportunities">
  166. <field name="stage_id" type="row"/>
  167. <field name="date_deadline" interval="month" type="row"/>
  168. </graph>
  169. </field>
  170. </record>
  171.  
  172. <record id="crm_lead_view_pivot" model="ir.ui.view">
  173. <field name="name">crm.lead.pivot.view</field>
  174. <field name="model">crm.lead</field>
  175. <field name="arch" type="xml">
  176. <pivot string="Leads" display_quantity="true">
  177. <field name="user_id" type="row"/>
  178. <field name="planned_revenue" type="measure"/>
  179. <field name="expected_revenue" type="measure"/>
  180. <field name="day_close" type="measure"/>
  181. </pivot>
  182. </field>
  183. </record>
  184.  
  185. <record id="crm_lead_view_graph" model="ir.ui.view">
  186. <field name="name">crm.lead.graph.view</field>
  187. <field name="model">crm.lead</field>
  188. <field name="arch" type="xml">
  189. <graph string="leads" type="line">
  190. <field name="create_date" interval="week" type="row"/>
  191. </graph>
  192. </field>
  193. </record>
  194.  
  195. <record id="crm_opportunity_view_dashboard" model="ir.ui.view">
  196. <field name="name">crm.lead.view.dashboard</field>
  197. <field name="model">crm.lead</field>
  198. <field name="mode">primary</field>
  199. <field name="arch" type="xml">
  200. <dashboard>
  201. <view type="graph" ref="crm_enterprise.crm_opportunity_view_graph"/>
  202. <group>
  203. <group>
  204. <aggregate name="opportunities" string="Opportunities" group_operator="count" field="id" measure="__count__"/>
  205. <aggregate name="expected_revenue_aggregate" field="planned_revenue" string="Expected Revenue"/>
  206. <aggregate name="prorated_revenue_aggregate" field="expected_revenue" invisible="1"/>
  207. <formula name="prorated_revenue" string="Prorated Revenue" value="record.prorated_revenue_aggregate" widget="monetary"/>
  208. <formula name="deal_size" string="Average Deal Size" value="record.expected_revenue_aggregate / record.opportunities" widget="monetary"/>
  209. <aggregate name="days_to_assign" string="Days to Assign" field="day_open" group_operator="avg" value_label="days"/>
  210. <aggregate name="days_to_close" string="Days to Close" field="day_close" group_operator="avg" value_label="days"/>
  211. <aggregate name="days_exceeding_closing" string="Exceeding Close Days" field="days_exceeding_closing" group_operator="avg"/>
  212. </group>
  213. <group col="1">
  214. <widget name="pie_chart" title="Win/Loss Ratio" attrs="{'groupby': 'won_status', 'domain': '[\'|\', (\'active\', \'=\', False), (\'active\', \'=\', True), (\'won_status\', \'!=\', \'pending\')]'}"/>
  215. <widget name="pie_chart" title="Medium" attrs="{'groupby': 'medium_id'}"/>
  216. </group>
  217. </group>
  218. <view type="pivot" ref="crm.crm_lead_view_pivot"/>
  219. <view type="cohort" ref="crm_enterprise.crm_lead_view_cohort"/>
  220. </dashboard>
  221. </field>
  222. </record>
  223.  
  224. <record id="crm_lead_dashboard_view" model="ir.ui.view">
  225. <field name="name">crm.lead.view.dashboard.lead</field>
  226. <field name="model">crm.lead</field>
  227. <field name="mode">primary</field>
  228. <field name="arch" type="xml">
  229. <dashboard>
  230. <view type="graph" ref="crm_enterprise.crm_lead_view_graph"/>
  231. <group>
  232. <group>
  233. <aggregate name="leads" string="Leads" group_operator="count_distinct" field="id" measure="__count__"/>
  234. <aggregate name="days_to_convert" string="Days To Opportunity" group_operator="avg" field="days_to_convert"/>
  235. <aggregate name="days_to_assign" string="Days to Assign" field="day_open" group_operator="avg" value_label="days"/>
  236. <formula name="opportunity_percent" string="% Opportunities" value="record.opportunities / record.leads" widget="percentage"/>
  237. <aggregate name="planned_revenue" string="Expected Revenue" field="planned_revenue" group_operator="sum" widget="monetary"/>
  238. <aggregate name="expected_revenue" string="Prorated Revenue" field="expected_revenue" group_operator="sum" widget="monetary"/>
  239. <aggregate name="day_close" string="Days to Close" field="day_close" group_operator="avg" value_label="days"/>
  240. <aggregate name="opportunities" string="Opportunities" field="id" domain="[('type','=','opportunity')]" group_operator="count" invisible="1"/>
  241. </group>
  242. <group>
  243. <widget name="pie_chart" title="Sales Teams" attrs="{'groupby': 'team_id'}"/>
  244. <widget name="pie_chart" title="Medium" attrs="{'groupby': 'medium_id'}"/>
  245. </group>
  246. </group>
  247. <view type="pivot" ref="crm_enterprise.crm_lead_view_pivot"/>
  248. </dashboard>
  249. </field>
  250. </record>
  251.  
  252. <record id="crm_lead_view_cohort" model="ir.ui.view">
  253. <field name="name">crm.lead.view.cohort</field>
  254. <field name="model">crm.lead</field>
  255. <field name="arch" type="xml">
  256. <cohort string="Opportunities" date_start="create_date" date_stop="date_closed" interval="week" mode="churn"/>
  257. </field>
  258. </record>
  259.  
  260. <record id="crm.action_report_crm_lead_salesteam" model="ir.actions.act_window">
  261. <field name="view_mode">dashboard,pivot,graph,tree,form,cohort</field>
  262. <field name="view_id" ref="crm_lead_dashboard_view"/>
  263. <field name="search_view_id" ref="crm.view_crm_case_leads_filter"/>
  264. </record>
  265.  
  266. <record id="crm.action_report_crm_opportunity_salesteam" model="ir.actions.act_window">
  267. <field name="view_mode">dashboard,pivot,graph,tree,form,cohort</field>
  268. <field name="view_id" ref="crm_opportunity_view_dashboard"/>
  269. <field name="search_view_id" ref="crm_enterprise.crm_opportunity_view_search"/>
  270. </record>
  271.  
  272. <!-- dashboard action -->
  273. <record id="crm_opportunity_action_dashboard" model="ir.actions.act_window">
  274. <field name="name">Pipeline Analysis</field>
  275. <field name="res_model">crm.lead</field>
  276. <field name="view_mode">dashboard,pivot,graph,tree,form,cohort</field>
  277. <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'}}"/>
  278. <field name="search_view_id" ref="crm_enterprise.crm_opportunity_view_search"/>
  279. </record>
  280.  
  281. <record id="crm_opportunity_action_dashboard_dashboard" model="ir.actions.act_window.view">
  282. <field name="sequence" eval="1"/>
  283. <field name="view_mode">dashboard</field>
  284. <field name="view_id" ref="crm_opportunity_view_dashboard"/>
  285. <field name="act_window_id" ref="crm_enterprise.crm_opportunity_action_dashboard"/>
  286. </record>
  287.  
  288. <record id="crm_opportunity_action_dashboard_pivot" model="ir.actions.act_window.view">
  289. <field name="sequence" eval="2"/>
  290. <field name="view_mode">pivot</field>
  291. <field name="view_id" ref="crm.crm_lead_view_pivot"/>
  292. <field name="act_window_id" ref="crm_enterprise.crm_opportunity_action_dashboard"/>
  293. </record>
  294.  
  295. <record id="crm_opportunity_action_dashboard_graph" model="ir.actions.act_window.view">
  296. <field name="sequence" eval="3"/>
  297. <field name="view_mode">graph</field>
  298. <field name="view_id" ref="crm_enterprise.crm_opportunity_view_graph"/>
  299. <field name="act_window_id" ref="crm_enterprise.crm_opportunity_action_dashboard"/>
  300. </record>
  301.  
  302. <record id="crm_opportunity_action_dashboard_cohort" model="ir.actions.act_window.view">
  303. <field name="sequence" eval="4"/>
  304. <field name="view_mode">cohort</field>
  305. <field name="view_id" ref="crm_enterprise.crm_lead_view_cohort"/>
  306. <field name="act_window_id" ref="crm_enterprise.crm_opportunity_action_dashboard"/>
  307. </record>
  308.  
  309. <record id="crm_opportunity_action_dashboard_tree" model="ir.actions.act_window.view">
  310. <field name="sequence" eval="5"/>
  311. <field name="view_mode">tree</field>
  312. <field name="view_id" ref="crm.crm_case_tree_view_oppor"/>
  313.  
  314. <field name="act_window_id" ref="crm_enterprise.crm_opportunity_action_dashboard"/>
  315. </record>
  316.  
  317. <record id="crm_opportunity_action_dashboard_form" model="ir.actions.act_window.view">
  318. <field name="sequence" eval="6"/>
  319. <field name="view_mode">form</field>
  320. <field name="view_id" ref="crm.crm_case_form_view_oppor"/>
  321. <field name="act_window_id" ref="crm_enterprise.crm_opportunity_action_dashboard"/>
  322. </record>
  323.  
  324. <record id="crm_lead_action_dashboard" model="ir.actions.act_window">
  325. <field name="name">Leads Analysis</field>
  326. <field name="res_model">crm.lead</field>
  327. <field name="view_mode">dashboard,pivot,graph,tree</field>
  328. <field name="domain">['|', ('active','=',True), ('active','=',False)]</field>
  329. <field name="search_view_id" ref="crm.view_crm_case_leads_filter"/>
  330. <field name="context" eval="{'time_ranges': {'field':'create_date', 'range':'last_30_days'}}"/>
  331. </record>
  332.  
  333. <record id="crm_lead_action_dashboard_dashboard" model="ir.actions.act_window.view">
  334. <field name="sequence" eval="1"/>
  335. <field name="view_mode">dashboard</field>
  336. <field name="view_id" ref="crm_lead_dashboard_view"/>
  337. <field name="act_window_id" ref="crm_enterprise.crm_lead_action_dashboard"/>
  338. </record>
  339.  
  340. <record id="crm_lead_action_dashboard_pivot" model="ir.actions.act_window.view">
  341. <field name="sequence" eval="2"/>
  342. <field name="view_mode">pivot</field>
  343. <field name="view_id" ref="crm_enterprise.crm_lead_view_pivot"/>
  344. <field name="act_window_id" ref="crm_enterprise.crm_lead_action_dashboard"/>
  345. </record>
  346.  
  347. <record id="crm_lead_action_dashboard_graph" model="ir.actions.act_window.view">
  348. <field name="sequence" eval="3"/>
  349. <field name="view_mode">graph</field>
  350. <field name="view_id" ref="crm_enterprise.crm_lead_view_graph"/>
  351. <field name="act_window_id" ref="crm_enterprise.crm_lead_action_dashboard"/>
  352. </record>
  353.  
  354. <!-- add dashboard to pipeline action -->
  355. <record id="crm_lead_action_pipeline_view_dashboard" model="ir.actions.act_window.view">
  356. <field name="sequence" eval="7"/>
  357. <field name="view_mode">dashboard</field>
  358. <field name="view_id" ref="crm_enterprise.crm_opportunity_view_dashboard"/>
  359. <field name="act_window_id" ref="crm.crm_lead_opportunities_tree_view"/>
  360. </record>
  361.  
  362. <!-- add cohort to pipeline action -->
  363. <record id="crm_lead_act_window_view_cohort" model="ir.actions.act_window.view">
  364. <field name="sequence" eval="6"/>
  365. <field name="view_mode">cohort</field>
  366. <field name="view_id" ref="crm_enterprise.crm_lead_view_cohort"/>
  367. <field name="act_window_id" ref="crm.crm_lead_opportunities_tree_view"/>
  368. </record>
  369.  
  370. <!-- add dashboard to res partner action -->
  371. <record id="crm_lead_action_partner_view_dashboard" model="ir.actions.act_window.view">
  372. <field name="sequence" eval="6"/>
  373. <field name="view_mode">dashboard</field>
  374. <field name="act_window_id" ref="crm.crm_lead_opportunities"/>
  375. </record>
  376.  
  377. <!-- add cohort to res partner action -->
  378. <record id="crm_opportunity_partner_add_cohort" model="ir.actions.act_window.view">
  379. <field name="sequence" eval="7"/>
  380. <field name="view_mode">cohort</field>
  381. <field name="act_window_id" ref="crm.crm_lead_opportunities"/>
  382. </record>
  383.  
  384. <!-- menuitem -->
  385. <record id="crm.crm_opportunity_report_menu" model="ir.ui.menu">
  386. <field name="action" ref="crm_enterprise.crm_opportunity_action_dashboard"/>
  387. </record>
  388.  
  389. <record id="crm.crm_opportunity_report_menu_lead" model="ir.ui.menu">
  390. <field name="action" ref="crm_enterprise.crm_lead_action_dashboard"/>
  391. </record>
  392.  
  393. </data>
  394. </odoo>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement