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

I don't understand how o.name can return a value [Closed]

By
Pascal Tremblay
on 12/31/14, 9:11 PM 697 views

The Question has been closed for reason: duplicate question

by
Stephen Mack
on 12/31/2014 22:59:04

Hello all!

We have this view : report_overdue

<?xml version="1.0"?>

<t t-name="account.report_overdue">

<t t-call="report.html_container">

<t t-foreach="doc_ids" t-as="doc_id">

<t t-raw="translate_doc(doc_id, doc_model, 'lang', 'account.report_overdue_document')"/>

</t>

</t>

</t>

 

We also have this view : account.report_overdue_document

<?xml version="1.0"?>

<t t-name="account.report_overdue_document">

<t t-call="report.external_layout">

<div class="page">

<div class="row">

<div class="col-xs-5 col-xs-offset-7">

<span t-field="o.name"/>

 </div>

</div>

 </t>

</t>

 

I don't understand how o.name can return a value since it is not declared... There is no « t-foreach="" t-as="o" » before in the view... COuld you help please.... 

Where did the « o » variable takes his value?

 

About This Community

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

Question tools

1 follower(s)

Stats

Asked: 12/31/14, 9:11 PM
Seen: 697 times
Last updated: 3/16/15, 8:10 AM