Community: Framework mailing list archives

expert-framework@mail.odoo.com

Re: Community: Framework

by
omar
- 04/20/2016 03:45:37
this statment   <div style="'width:%dpx' %o.company_id.width; 'height: %dpx' %o.company_id.heigth"> not working


2016-04-20 0:34 GMT+01:00 Graeme Gellatly <gdgellatly@gmail.com>:
I'm not sure of the exact context here, but it is hugely unusual in any templating to not escape the variable reference

eg ${"width: %dpx; height: %dpx" % (var1, var2)} or whatever the template standard is.

also your div style statement just looks wrong.

On Wed, Apr 20, 2016 at 10:42 AM, <danny@catalyst.net.nz> wrote:
Hi Omar,

> 
If those are integers specifying pixels, best to clarify that:
Cheers, Danny On 2016-04-19 21:38, omar frikha wrote: > I added two fields('width' and 'height') in the table 'res.company' . > I can use these fields in the division parameter in the report as this > statement: > <div style="width: o.company_id.width, o.company.height height&gt;, &gt; but this statement does not work, how do in the problem? &gt; &gt; _______________________________________________ &gt; Mailing-List: https://www.odoo.com/groups/community-framework-62 [1] &gt; Post to: mailto:expert-framework@mail.odoo.com &gt; Unsubscribe: https://www.odoo.com/groups?unsubscribe [2] &gt; &gt; &gt; Links: &gt; ------ &gt; [1] https://www.odoo.com/groups/community-framework-62 &gt; [2] https://www.odoo.com/groups?unsubscribe&lt;/pre&gt; ">

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


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