What should I do? Do i need to use inherits?
If I will use inherits, how can I inherit the function and also the needed fields from each model from the specific class, like this:
_name = 'newClassName'
_inherits = ['stock.picking', #1st model
'account.invoice'] #2nd model
min_date = fields.Datetime() #stock.picking field
date_invoice = fields.Date()#account.invoice field
def _write(self,vals): #function from account.invoice