Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
3035 Visualizzazioni

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
Abbandona
Risposta migliore

Read the docs here

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

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
5
mar 16
10170
0
mag 15
73
4
giu 21
18050
4
gen 17
8472
0
ago 16
4127