Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
3037 Lượt xem

Hello.

I have downloaded the rpm of Odoo for Fedora. I have installed without problems, and now it's working.

But, how can I subclass a module (example: website) and do some edits and create my module from the original one?

Should I download the source code?

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

You can use _inherit in your class.

class Object(osv.Model):

_name = 'nameOfProyect.name'

_inherit = 'example.example'

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Odoo is developed in python language.  I believe if you dowload the rpm from the official source, it has already had the source code within the package.

Ảnh đại diện
Huỷ bỏ