Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

InternalError: current transaction is aborted, commands ignored until end of transaction block

By
Erhuvwu Akpobaro
on 11/13/14, 5:43 AM 1,046 views

 

 

I am having trouble displaying data from my model view into a customised report :

 

when i try to print i get this error log:

  res = self._obj.execute(query, params)
InternalError: current transaction is aborted, commands ignored until end of transaction block

 

The classed used to make the view (~note model view displays correctly):

class cm_sales_receipt(osv.osv):
    _name = "cm.sales.receipt"
    _description = "Camden Market Sales Receipt"
    _auto = False
    _columns = {
        'paymentref':fields.char('PaymentRef'),
        'date':fields.date('Date'),
        'receipt_number':fields.char('Receipt Number'),
        'customer':fields.char('Customer',size=128),
        'unit':fields.char('Unit',size=128),
        'company':fields.char('Name',size=128,required=True),
        'invoicing_company':fields.char('Invoicing Company', size=128,required=True),
        'street':fields.char('Street',size=128,required=True),
        'street2':fields.char('Street2',size=128,required=True),
        'zip':fields.char('Zip',size=10,required=True),
        'state':fields.char('State',size=128,required=True),
        'city':fields.char('City',size=128,required=True),
        'email':fields.char('Email',size=128),
        'fax':fields.integer('Fax'),
        'phone':fields.integer('State'),
        'paid_amount':fields.float('Paid_Amount'),
   

xml report / im having trouble figuring out what to code to put in my xml view:

<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<template id="report_salesreceipt">
    <div class="oe_structure"/>
        <t t-call="report.html_container">
             <t t-foreach="docs" t-as="doc">
                    <t t-call="report.external_layout">
                        
                
                            <p t-field="doc.customer"/>
                        
        </t>                               
        </t>    
        </t>    
        <div class="oe_structure"/>                     
</template>
</data>
</openerp>

 

 

 

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 11/13/14, 5:43 AM
Seen: 1046 times
Last updated: 3/16/15, 8:10 AM