Odoo Help

0

How to use code from another module ?

By
peterm
on 11/13/13, 9:23 AM 1,089 views

Consider I write a module like this:

from osv import fields, osv
from sale_layout import one2many_mod2

class sale_order(osv.osv):

    _inherit = "sale.order"
    _columns = {
        'saleM102_line': one2many_mod2('sale.m102', 'order_id', 'SaleM102'),
    }
sale_order()

OpenERP won't start up, because cannot find sale_layout nor one2many_mod2.

[2013-11-13 10:10:48,390][test] CRITICAL:init:cannot import name one2many_mod2

How can I tell python to look there ?

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: 11/13/13, 9:23 AM
Seen: 1089 times
Last updated: 3/16/15, 8:10 AM