Odoo Help

1

0
2 Answers
1
Avatar

Ivan

--Ivan--

3410
| 6 3 9
Jakarta, إندونيسيا
--Ivan--
Ivan
6‏/10‏/2014 11:20 ص

Santi, you will need to specify 3 function fields to get the values of loc_rack, lock_row, loc_case from the stock.move's product_id field.  These function fields will need to have func_inv to store the edited values back to the corresponding product.product's record.  Sample of similar code can be found in stock/stock.py file in the definition of 'min_date' field of stock.picking which is calculated from the stock.picking's moves' date_expected (method get_min_max_date) and, when updated, will update the stock.move's date_expected when necessary (method _set_minimum_date)

0
Pedro M. Baeza
4‏/1‏/2015 3:49 م

You only need related fields with readonly=False, not function fields, and you will have both things (read and write access).

Regards.

Ask a Question
Writer
Keep Informed
2 follower(s)
About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register
Odoo Training Center

Access to our eLearning platform and experience all Odoo Apps through learning videos, use cases and quizzes.

Test it now