0

I need to make a related field with two other fields. Right according to my knowledge we can have only one. Is there is any other option?

I don't want a compute field. Because the field should be editable.

Pablo Escobar
  • 679
  • 4
  • 20
  • It is possible to make a computed field editable https://stackoverflow.com/questions/31267793/make-a-functional-field-editable-in-openerp/31268996#31268996 – Kenly Oct 13 '19 at 12:37
  • You can't and You should make two fields and hide one of them in the view. user will not notice that if the fields have the same label – Charif DZ Oct 13 '19 at 12:54
  • Check the code of `standard_price` field in `product.template` model. You can make compute field editable by using `inverse` attribute. – Younis Mahsud Oct 13 '19 at 15:13

1 Answers1

0

Computed field can also editable fields make it readonly=False and make store true for it so that it relate to your two fields if you make any change in them it will reflect in your computed field and if not then you can put your value in that field and store that field data so it can save its value also.

Akshay
  • 639
  • 3
  • 8