dcmul

Untitled

Feb 13th, 2017
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.23 KB | None | 0 0
  1. Traceback (most recent call last):
  2. File "/mystuff/odoo/odoo9/openerp/modules/registry.py", line 386, in new
  3. openerp.modules.load_modules(registry._db, force_demo, status, update_module)
  4. File "/mystuff/odoo/odoo9/openerp/modules/loading.py", line 336, in load_modules
  5. force, status, report, loaded_modules, update_module)
  6. File "/mystuff/odoo/odoo9/openerp/modules/loading.py", line 239, in load_marked_modules
  7. loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules, perform_checks=perform_checks)
  8. File "/mystuff/odoo/odoo9/openerp/modules/loading.py", line 156, in load_module_graph
  9. _load_data(cr, module_name, idref, mode, kind='data')
  10. File "/mystuff/odoo/odoo9/openerp/modules/loading.py", line 98, in _load_data
  11. tools.convert_file(cr, module_name, filename, idref, mode, noupdate, kind, report)
  12. File "/mystuff/odoo/odoo9/openerp/tools/convert.py", line 849, in convert_file
  13. convert_xml_import(cr, module, fp, idref, mode, noupdate, report)
  14. File "/mystuff/odoo/odoo9/openerp/tools/convert.py", line 932, in convert_xml_import
  15. obj.parse(doc.getroot(), mode=mode)
  16. File "/mystuff/odoo/odoo9/openerp/tools/convert.py", line 802, in parse
  17. self._tags[rec.tag](self.cr, rec, de, mode=mode)
  18. File "/mystuff/odoo/odoo9/openerp/tools/convert.py", line 775, in _tag_template
  19. return self._tag_record(cr, record, data_node)
  20. File "/mystuff/odoo/odoo9/openerp/tools/convert.py", line 705, in _tag_record
  21. id = self.pool['ir.model.data']._update(cr, self.uid, rec_model, self.module, res, rec_id or False, not self.isnoupdate(data_node), noupdate=self.isnoupdate(data_node), mode=self.mode, context=rec_context )
  22. File "/mystuff/odoo/odoo9/openerp/api.py", line 250, in wrapper
  23. return old_api(self, *args, **kwargs)
  24. File "/mystuff/odoo/odoo9/openerp/addons/base/ir/ir_model.py", line 1115, in _update
  25. " you can't define a `%s` record with this ID." % (xml_id, real_model, model)
  26. ParseError: "External ID conflict, report_lunch_order already refers to a `ir.actions.report.xml` record, you can't define a `ir.ui.view` record with this ID." while parsing None:3, near
  27. <t t-name="lunch.report_lunch_order">
  28. <t t-call="report.html_container">
  29. <t t-call="report.external_layout">
  30. <div class="page">
  31. <div class="oe_structure"/>
  32.  
  33. <div class="row">
  34. <div class="col-xs-5 col-xs-offset-7">
  35. <div t-field="user.partner_id" t-field-options="{&quot;widget&quot;: &quot;contact&quot;, &quot;fields&quot;: [&quot;address&quot;, &quot;name&quot;], &quot;no_marker&quot;: true}"/>
  36. </div>
  37. </div>
  38.  
  39. <h2>Lunch Order</h2>
  40.  
  41. <table class="table table-condensed">
  42. <thead>
  43. <tr>
  44. <th>Name/Date</th>
  45. <th>Order</th>
  46. <th>Description</th>
  47. <th class="text-right">Unit Price</th>
  48. </tr>
  49. </thead>
  50. <tbody>
  51. <t t-foreach="docs.read_group([('id', 'in', docs.ids)],['user_id'],['user_id'])" t-as="o">
  52. <t t-set="user" t-value="user.browse(o['user_id'][0])"/>
  53. <t t-set="lines" t-value="docs.search([('user_id', '=', user.id), ('id', 'in', docs.ids)])"/>
  54. <tr>
  55. <td colspan="2">
  56. <strong t-field="user.name"/>
  57. </td>
  58. <td class="text-right" colspan="2">
  59. <strong>
  60. <span t-esc="sum(line.price for line in lines)"/>
  61. <span t-field="user.company_id.currency_id.symbol"/>
  62. </strong>
  63. </td>
  64. </tr>
  65. <tr t-foreach="lines" t-as="line">
  66. <td>
  67. <span t-field="line.date"/>
  68. </td>
  69. <td>
  70. <span t-field="line.product_id.name"/>
  71. </td>
  72. <td>
  73. <span t-field="line.note"/>
  74. </td>
  75. <td class="text-right">
  76. <span t-field="line.price" t-field-options="{&quot;widget&quot;: &quot;monetary&quot;, &quot;display_currency&quot;: &quot;user.company_id.currency_id&quot;}"/>
  77. </td>
  78. </tr>
  79. </t>
  80. </tbody>
  81. </table>
  82.  
  83. <div class="row">
  84. <div class="col-xs-4 pull-right">
  85. <table class="table table-condensed">
  86. <tr class="border-black">
  87. <td><strong>Total</strong></td>
  88. <td class="text-right">
  89. <span t-esc="sum([line.price for line in docs]) or 0.0"/>
  90. <span t-field="user.company_id.currency_id.symbol"/>
  91. </td>
  92. </tr>
  93. </table>
  94. </div>
  95. </div>
  96.  
  97. <div class="oe_structure"/>
  98. </div>
  99. </t>
  100. </t>
  101. </t>
Advertisement
Add Comment
Please, Sign In to add comment