Odoo Help

0

0
2 Answers
0
Avatar

Cybrosys Techno Solutions Pvt.Ltd

--Cybrosys Techno Solutions Pvt.Ltd--
Cybrosys Technologies
https://www.cybrosys.com
16252
| 7 6 10
Calicut, India
--Cybrosys Techno Solutions Pvt.Ltd--

Cybrosys Technologies is a private limited ISO certified company in Technology and Software Engineering sector. We serve as one of the best and trusted Odoo official partner, providing ultimate Customization and Implementation services in Odoo ERP. A frequent contributor to Odoo Apps, our customized free apps are downloaded by more than one lakh users. Most of our apps augment the potentialities of Odoo and are trending in the Odoo app store.

Cybrosys keeps privilege to be one among the finest Odoo Official Partners with 200+ free apps contribution towards the Odoo community. Cybrosys also stands number one in Odoo-social Media Integration empowering every kind of business solutions.

We are also enriched with highly skilled UI/UX technical experts for Developing, Implementing and Designing, thereby providing ultimate benefit to our customer base.

Today Cybrosys has reached par excellent in Odoo Implementation and allied services, proving its credibility and reliability. Our proven services are used by customers sprawling across 160+ countries including Middle East, African continents, UK, Germany, Spain, Thailand, Hong Kong, New Zealand, Australia, Malaysia, Singapore, Egypt etc.

We are rapidly expanding our base with robust quality management and business process re-engineering to meet the ultimate customer desire.

To know more about Cybrosys Technologies and our Odoo Apps, Kindly visit:

Cybrosys Technologies 

Odoo Apps 

And inbox us your queries to odoo@cybrosys.com

Cybrosys Techno Solutions Pvt.Ltd
01.03.19, 22:39

Hi,

The field Next Preventive Maintenance in the model maintenance.equipment can be made as editable by either removing the compute function or by defining the inverse function for the field.

next_action_date = fields.Date(compute='_compute_next_maintenance',
string='Date of the next preventive maintenance', store=True)

 

In the above line, you can see a compute , you can remove it and make the field a required field if necessary.

next_action_date = fields.Date(string='Date of the next preventive maintenance')


Thanks

4 Comments
Luis Jacobo
02.03.19, 06:26

Hi, if remove the function, will the maintenance plan calculate the next maintenance date based on the period i had set to the equipment?

Because i need to make it editable to set the first date of maintenance, and then let the maintenance plan calculates by itself the future tasks,

Thanks!!

Niyas Raphy
02.03.19, 22:32

Then use the concept of the inverse for the compute field

Luis Jacobo
03.03.19, 15:09

Hi Niyas,

I am not a Odoo developer, can you help me with the python function using the inverse method?

thnks

0
mitra safari
02.03.19, 00:12

Hi,

change it in python code like >  'next_action_date' : fields.Date('Date of the next preventive maintenance')
this will be an editable date field
 

Ask a Question
Writer
Keep Informed
1 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