What is the difference between employee attribute and name attribute in employee doctype


what is the difference between employee attribute and name attribute in employee doctype

First you have to understand the logic on code side.

i ask about employee and name
not employee_name
i hope you understand me question

again check it, i already posted.

as i see they are the same so why we duplicate the data in database?!

You have to debug the code and check the functionality.

I didn’t understand could you explain what you meant this is just a line
self.employee = self.name

assign the value of name attribute to employee attribute

name set in the employee field but also you have to check set_name_by_naming_series(self)

i saw the code
“”“Sets name by the naming_series property”“”
why the duplicate happen or what is the benefit of both of fields?

As already said, without debugging, it becomes difficult to understand this flow.

i did not get the idea but Question
when i use crud event for validate method
the flow start with autoname method in employee master

but when i use the override validate method

the flow start with autoname method in employee doctype

why?