コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
3028 ビュー

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
3月 16
10165
0
5月 15
73
4
6月 21
18046
4
1月 17
8471
0
8月 16
4124