M.E.
M.E.

Reputation: 5505

Odoo 10 - Qweb align col-xs-n

I have a barcode inside a <div class="col-xs-n"> element in Odoo 10 QWeb PDF report:

<div class="col-xs-3">
    <img t-att-src="'/report/barcode/?type=%s&amp;value=%s&amp;width=%s&amp;height=%s' % ('Code128', o.name, 600, 100)" style="width:300px;height:50px;"/>
</div>

Is there any class that could be applied to <div> element in order to horizontally center the barcode?

Upvotes: 0

Views: 3114

Answers (2)

Pranjal Gami
Pranjal Gami

Reputation: 214

Try adding these classes..

There are native bootstrap classes available like:

class="text-center"

or

class="pagination-centered"

Upvotes: 2

PyMaster
PyMaster

Reputation: 1174

Use bootstrap class text-center like below.

<div class="col-xs-3 text-center">
    <img t-att-src="'/report/barcode/?type=%s&amp;value=%s&amp;width=%s&amp;height=%s' % ('Code128', o.name, 600, 100)" style="width:300px;height:50px;"/>
</div>

I hope this will help you.

Upvotes: 2

Related Questions