Odoo Help

0

[solved]problem with javascript

By
vgze
on 7/18/13, 7:51 AM 973 views

Hello, I try to use Javascript on a custom module view. But, that did'nt work. I alway have the same error:

Uncaught TypeError: object is not a function

<record model="ir.ui.view" id="sale_order_line_type_price">
        <field name="name">sale.order.line.type.price</field>
        <field name="model">sale.order</field>
        <field name="inherit_id" ref="sale.view_order_form"/>
        <field name="arch" type="xml">
           <xpath expr="//field[@name='order_line']/tree//field[@name='price_unit']" position="replace">
           <script>
                console.log('test');
           </script>
                    <field name="price_unit"/>
            </xpath>
        </field>
    </record>

I, also, try with an extern js file but same result.

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

Question tools

0 follower(s)

Stats

Asked: 7/18/13, 7:51 AM
Seen: 973 times
Last updated: 3/16/15, 8:10 AM