I have a problem: I need to manually enter 2 fields' requested_document 'on sale.order and on sale.order.line, I want to enter the value for' 'requested_document' on each line of sale.order.line itself I have related them but the problem is related for not edit, I tried
def _default_requested_document (self):
if self.context.get ('active_model') == 'sale.order':
return self.context.get ('active_id', False)
requested_document = fields.Text ('Requested Document', default = _default_requested_document) but failed.