Hello,
I want to display value to another model field with create function.
Any help please?
class MyClass1(models.Model):
_inherit = 'x.x'
field1 = fields.Char(string='A')
@api.model
def create(self, vals):
#field1
result = super(MyClass1, self).create(vals)
return result
class MyClass2(models.Model):
_inherit = 'z.z'
field2 = fields.Char(string='B')
@api.model
def create(self, vals):
# field2 = field1
result = super(MyClass2, self).create(vals)
return result