Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
3038 Zobrazení

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?

Avatar
Zrušit
Nejlepší odpověď

Read the docs here

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

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
5
bře 16
10172
0
kvě 15
73
4
čvn 21
18051
4
led 17
8474
0
srp 16
4128