Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Traceback (most recent call last):
- File "/mystuff/odoo/odoo9/openerp/modules/registry.py", line 386, in new
- openerp.modules.load_modules(registry._db, force_demo, status, update_module)
- File "/mystuff/odoo/odoo9/openerp/modules/loading.py", line 336, in load_modules
- force, status, report, loaded_modules, update_module)
- File "/mystuff/odoo/odoo9/openerp/modules/loading.py", line 239, in load_marked_modules
- loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules, perform_checks=perform_checks)
- File "/mystuff/odoo/odoo9/openerp/modules/loading.py", line 156, in load_module_graph
- _load_data(cr, module_name, idref, mode, kind='data')
- File "/mystuff/odoo/odoo9/openerp/modules/loading.py", line 98, in _load_data
- tools.convert_file(cr, module_name, filename, idref, mode, noupdate, kind, report)
- File "/mystuff/odoo/odoo9/openerp/tools/convert.py", line 849, in convert_file
- convert_xml_import(cr, module, fp, idref, mode, noupdate, report)
- File "/mystuff/odoo/odoo9/openerp/tools/convert.py", line 932, in convert_xml_import
- obj.parse(doc.getroot(), mode=mode)
- File "/mystuff/odoo/odoo9/openerp/tools/convert.py", line 802, in parse
- self._tags[rec.tag](self.cr, rec, de, mode=mode)
- File "/mystuff/odoo/odoo9/openerp/tools/convert.py", line 775, in _tag_template
- return self._tag_record(cr, record, data_node)
- File "/mystuff/odoo/odoo9/openerp/tools/convert.py", line 705, in _tag_record
- 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 )
- File "/mystuff/odoo/odoo9/openerp/api.py", line 250, in wrapper
- return old_api(self, *args, **kwargs)
- File "/mystuff/odoo/odoo9/openerp/addons/base/ir/ir_model.py", line 1115, in _update
- " you can't define a `%s` record with this ID." % (xml_id, real_model, model)
- 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
- <t t-name="lunch.report_lunch_order">
- <t t-call="report.html_container">
- <t t-call="report.external_layout">
- <div class="page">
- <div class="oe_structure"/>
- <div class="row">
- <div class="col-xs-5 col-xs-offset-7">
- <div t-field="user.partner_id" t-field-options="{"widget": "contact", "fields": ["address", "name"], "no_marker": true}"/>
- </div>
- </div>
- <h2>Lunch Order</h2>
- <table class="table table-condensed">
- <thead>
- <tr>
- <th>Name/Date</th>
- <th>Order</th>
- <th>Description</th>
- <th class="text-right">Unit Price</th>
- </tr>
- </thead>
- <tbody>
- <t t-foreach="docs.read_group([('id', 'in', docs.ids)],['user_id'],['user_id'])" t-as="o">
- <t t-set="user" t-value="user.browse(o['user_id'][0])"/>
- <t t-set="lines" t-value="docs.search([('user_id', '=', user.id), ('id', 'in', docs.ids)])"/>
- <tr>
- <td colspan="2">
- <strong t-field="user.name"/>
- </td>
- <td class="text-right" colspan="2">
- <strong>
- <span t-esc="sum(line.price for line in lines)"/>
- <span t-field="user.company_id.currency_id.symbol"/>
- </strong>
- </td>
- </tr>
- <tr t-foreach="lines" t-as="line">
- <td>
- <span t-field="line.date"/>
- </td>
- <td>
- <span t-field="line.product_id.name"/>
- </td>
- <td>
- <span t-field="line.note"/>
- </td>
- <td class="text-right">
- <span t-field="line.price" t-field-options="{"widget": "monetary", "display_currency": "user.company_id.currency_id"}"/>
- </td>
- </tr>
- </t>
- </tbody>
- </table>
- <div class="row">
- <div class="col-xs-4 pull-right">
- <table class="table table-condensed">
- <tr class="border-black">
- <td><strong>Total</strong></td>
- <td class="text-right">
- <span t-esc="sum([line.price for line in docs]) or 0.0"/>
- <span t-field="user.company_id.currency_id.symbol"/>
- </td>
- </tr>
- </table>
- </div>
- </div>
- <div class="oe_structure"/>
- </div>
- </t>
- </t>
- </t>
Advertisement
Add Comment
Please, Sign In to add comment