Odoo Help

1

0
4 Answers
1
Avatar

Sudhir Arya (ERP Harbor Consulting Services)

--Sudhir Arya (ERP Harbor Consulting Services)--
14814
| 8 8 10
Ahmedabad, India
--Sudhir Arya (ERP Harbor Consulting Services)--

• Co-Founder & Co-Owner at ERP Harbor Consulting Services

• ERP Consultant / ERP Customization / TechnoFunctional Expert

• Sound knowledge in Python, Odoo (Open ERP), XML, PostgreSQL

• Domain knowledge of Sale Management, Purchase Management, Warehouse Management, Manufacturing, Multi Company Configuration & Management, HR Management, Medical Management, Construction Management, Education Management, Point of Sale, Third Party Integrations

• Positive attitude and quick Learner

• Good analytical skill, quick bug and issue tracing and find the solution

• Good knowledge and experience in payment gateway integration with Odoo

• Ready to accept new challenges

• Active Memeber On Stackoverflow 

LinkedIn

Blog

Stackoverflow

ERP Harbor Consulting Services

Skype:sudhir@erpharbor.com
Website: http://www.erpharbor.com
Sudhir Arya (ERP Harbor Consulting Services)
5/16/19, 4:11 AM

1) You can create a custom constraint on timesheet object. The constraint will check your attendance for the date selected in the timesheet and the employee and if there no attendance, raise an exception like "You cannot fill the timesheet for the absent day".

2) Create a compute boolean field (Is Absent) in timesheet object. Check for the attendance of the day for the user/employee and if it is absent, set True in the field. Now, based on this boolean field, add attrs in the timesheet line in xml and make it readonly if Absent is True.


1 Comment
VENI V R
5/16/19, 6:42 AM

Thanks for this,and I'll try it

0
Mr.V
5/16/19, 3:32 AM

Hi Veni,

I hope it will help for you..

<field name="fieldname" readonly="1">

<tree>

inside your tree fields here....

</tree>

</field>


Thank You.

2 Comments
Mr.V
5/16/19, 3:34 AM

<field name="fieldname" attrs="{'readonly':[('state', '=', "done")]}">

<tree>

inside your tree fields here....

</tree>

</field>

VENI V R
5/16/19, 3:37 AM

I think you couldn't understand my problem.

Suppose I have a new timesheet and I didn't fill it, What I need is,I have to check my attendance If it is zero then check with the corresponding date and create a record with the date and mark it as absent.This is my problem

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 E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now