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

[V8] [SOLVED] It's possible to add condition (if/then/else) on a QWeb/XML report?

By
FEDERICO LEONI
on 3/5/15, 4:49 PM 1,429 views

I would like to personalize a little more the POS Qweb Report_receipt.

Actually I've already modified it for my need and even if not perfect works fine for my restaurant. But I need an expert advice to see if I can add a separation line based on the internal code displayed. 

See the picture here:

https://mega.co.nz/#!WdZQgRJY!i9Ci7xGBDENWo8Wz0fmHNy9ir-GfCjE9ynInxguLwqo

(sorry I don't have enough karma to add picture or a embedded link)

Is possible to check the code before and eventually add a graphic line if necessary? Will be very useful to separate special orders and avoid confusion in the kitchen.

F.

1

zbik

--zbik--
5941
| 6 4 7
Lodz, Poland
--zbik--


zbik
On 3/5/15, 4:55 PM
0
FEDERICO LEONI
On 3/5/15, 7:16 PM

Thanks zbik,

the problem is I didn't fine anything on the doc talking about what kind of condition I can use on  <t t-if="condition">. Perhaps something one like  starts-with() used with XSLT? 

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: 3/5/15, 4:49 PM
Seen: 1429 times
Last updated: 5/20/15, 9:24 AM