Community mailing list archives

community@mail.odoo.com

Re: How to get value from other database table in Qweb Report?

by
HappyOdoo
- 10/28/2015 02:36:20
I use below code in my xml report for bank account number ger inherited module sale.order

<p t-if="o.partner_id" t-as="t">
 <span t-field="t.acc_number"/>       

</p>
error / exception:
 field = record._fields[field_name]
QWebException: "'NoneType' object has no attribute '_fields'" while evaluating 
"translate_doc(doc_id, doc_model, 'partner_id.lang', 'sale.report_saleorder_document')" 

On Wed, Oct 28, 2015 at 11:33 AM, Humberto Arocha <hbto@vauxoo.com> wrote:
Hi Jeel,

Which error?

Quien suscribe,

Hbto


On Wed, Oct 28, 2015 at 1:22 AM, Jeel Khanpara <jbk261292@gmail.com> wrote:

hello,

My problem is i have one Qweb report sales.order. now i want to get bank detail using company_id.

how it's possible?

i inherit the module ['sale.order']. when i try get bank detail i use following code in Qweb Report.

<t-field="o.partner_id.acc_number">

this generates error.


is this possible to get data from other table?

_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe


_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe




--
JEEL B. KHANPARA