تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
3041 أدوات العرض

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

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
5
مارس 16
10172
0
مايو 15
73
4
يونيو 21
18051
4
يناير 17
8474
0
أغسطس 16
4128