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

How Can I use my own new field here?:

I have this:

class hr_timesheet_sheet(osv.osv):

_inherit = "hr_timesheet_sheet.sheet"

def test(self):

iid = self.task_field

_columns = {

'task_field': fields.many2one('project.task', 'task_id', required=True)

}


How Can I use my own field = "task_field" in a simple variable or in a function that I want to write?

Or how can I use my own field in other modules?

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

Read the docs here

https://www.odoo.com/documentation/8.0/reference/orm.html

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
5
thg 3 16
10165
0
thg 5 15
73
4
thg 6 21
18045
4
thg 1 17
8471
0
thg 8 16
4124