Odoo Help

Welcome!

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

0

Instantiation of python classes?

By
Nemanja Dragovic
on 9/17/14, 8:11 AM 819 views

Why after definition of some python classes stands constructor call, for example in purchase module after class purchase_order_line there is line purchase_order_line(), and after purchase_order is not?

2

Bole

--Bole--
2385
| 5 4 6
Zagreb | Karlovac, Croatia
--Bole--

there is only 10 kind of people the ones that understand binary ... and others

Bole
On 9/19/14, 8:23 AM

calling a class after defining it like is a leftover wich is not in use since v6 ...
still you can find lots of old modules that are using that, but technicaly... that calls the uper named class after reading it.. .
so no need for that part of code... (also no big harm in using it)

hope it helps

 

Bole, da li te mogu kontaktirati u vezi par pitanja koje mi je lakse ispricati na nasem jeziku?

Nemanja Dragovic
on 9/20/14, 4:20 AM

jup... bole (at) dajmi5.com

Bole
on 9/20/14, 6:26 AM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 9/17/14, 8:11 AM
Seen: 819 times
Last updated: 3/16/15, 8:10 AM