camptocamp / c2c-rd-addons

GNU Affero General Public License v3.0
15 stars 58 forks source link

account_cash_register_webkit #16

Closed wredwan closed 9 years ago

wredwan commented 9 years ago

After I installed this module, the following error massage is shown during cash register printing: Encountered unknown tag 'running_tot'. Jinja was looking for the following tags: 'endfor' or 'else'. The innermost block that needs to be closed is 'for'.

except_orm: (u"Encountered unknown tag 'endif'. Jinja was looking for the following tags: 'endfor' or 'else'. The innermost block that needs to be closed is 'for'.", (<class 'jinja2.exceptions.TemplateSyntaxError'>, TemplateSyntaxError("Encountered unknown tag 'endif'. Jinja was looking for the following tags: 'endfor' or 'else'. The innermost block that needs to be closed is 'for'.",), <traceback object at 0x7f751cc621b8>))

ferdiga commented 9 years ago

On 2015-08-13 15:48, Walid Redwan wrote: which odoo version - currently only 6.1 is maintained

After I installed this module, the following error massage is shown during cash register printing: Encountered unknown tag 'running_tot'. Jinja was looking for the following tags: 'endfor' or 'else'. The innermost block that needs to be closed is 'for'.

except_orm: (u"Encountered unknown tag 'endif'. Jinja was looking for the following tags: 'endfor' or 'else'. The innermost block that needs to be closed is 'for'.", (, TemplateSyntaxError("Encountered unknown tag 'endif'. Jinja was looking for the following tags: 'endfor' or 'else'. The innermost block that needs to be closed is 'for'.",), ))

— Reply to this email directly or view it on GitHub https://github.com/camptocamp/c2c-rd-addons/issues/16.

wredwan commented 9 years ago

mmm Odoo v8

ferdiga commented 9 years ago

please give it a try , I merged v 6.1 into v8

wredwan commented 9 years ago

Ok I test it now

wredwan commented 9 years ago

From Odoo Pull :https://apps.openerp.com/apps/modules/8.0/account_cash_register_webkit/

the same error is shown after installation??

wredwan commented 9 years ago

I got it from github and the new error massage is : except_orm: (u'Webkit render!', u"'openerp.api.account.bank.statement.line object' has no attribute 'tax_id'")

wredwan commented 9 years ago

After I removed

${line.tax_id.name or ''}

the report is printed but it's need some modifications

BIG Thanks for you Mr. Ferdiga

ferdiga commented 9 years ago

please could you try this line instead of commenting

td style="white-space:nowrap">${'tax_id' in line._columns and line.tax_id.name or ''}

wredwan commented 9 years ago

I don't need tax_id in my business case. If you need my test I will do it ??

ferdiga commented 9 years ago

please

wredwan commented 9 years ago

screenshot- domain date time