Odoo Help


[solved]problem with javascript

on 7/18/13, 7:51 AM 1,078 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">
                    <field name="price_unit"/>

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.


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)


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