Odoo Help

3

0
3 Answers
5
Avatar

Abraham Qureshi United Kingdom

--Abraham Qureshi--

1014
| 6 4 9
southampton, United Kingdom
--Abraham Qureshi--


Abraham Qureshi United Kingdom
3/12/19, 2:24 AM

please try this code and also check in user mode

 <t t-set="website_sale_pricelists" t-value="website.get_current_pricelist()"/>
                <t t-foreach="website_sale_pricelists" t-as="pricelist">
                    <t t-foreach="pricelist.item_ids" t-as="offer">
                        <t t-if="offer.product_tmpl_id.id==product.id">
                            <table>
                                <tr>
                                    <th>Price List</th>
                                    <th>Minimum Quantity</th>
                                    <th>Product Discount</th>
                                    <th t-if="offer.compute_price=='percentage'">Percent Price</th>
                                    <th t-elif="offer.compute_price=='fixed'">Fixed Price</th>
                                   
                                </tr>
                                <tr>
                                    <td><t t-esc="pricelist.name"/></td>
                                    <td><t t-esc="offer.min_quantity"/></td>
                                    <td><t t-esc="offer.price_discount"/></td>
                                    <td t-if="offer.compute_price=='percentage'"><t t-esc="offer.percent_price"/></td>
                                    <td t-elif="offer.compute_price=='fixed'"><t t-esc="offer.fixed_price"/></td>
                                </tr>
                            </table>                                           
                      </t>
                </t>
            </t>

0
Cathyklien11 Pakistan
3/12/19, 3:03 AM

thanks

Ask a Question
Writer
Keep Informed
1 follower(s)
About This Community

This platform 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.

Register
Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now