Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
3025 มุมมอง

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?

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Read the docs here

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

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
5
มี.ค. 16
10165
0
พ.ค. 15
73
How to add 42 days to an date field? แก้ไขแล้ว
4
มิ.ย. 21
18045
Big Problem with many2many fields! แก้ไขแล้ว
4
ม.ค. 17
8471
0
ส.ค. 16
4124