Call method

Hello All,

   There is a doctype Eqiupment and it have generate_schedule method in old framework . There are 10000 records in Equipment table I have to call generate schedule method for all its records how can i implement this. 

Thank you.
Gangadhar kadam



You received this message because you are subscribed to the Google Groups “ERPNext Developer Forum” group.

To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un...@googlegroups.com.

To post to this group, send email to er...@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msg/erpnext-developer-forum/-/ewVvpTzO8jMJ.

For more options, visit https://groups.google.com/groups/opt_out.

 

 

Select all equipments and run the following:
get_obj("Equipment", equipment_name, with_children=1).generate_schedule()


Regards,
Nabin Hait

On 11-Mar-2013, at 7:40 PM, gangadhar kadam wrote:

Hello All,
   There is a doctype Eqiupment and it have generate_schedule method in old framework . There are 10000 records in Equipment table I have to call generate schedule method for all its records how can i implement this. 

Thank you.
Gangadhar kadam



You received this message because you are subscribed to the Google Groups “ERPNext Developer Forum” group.

To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un…@googlegroups.com.

To post to this group, send email to er…@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msg/erpnext-developer-forum/-/ewVvpTzO8jMJ.

For more options, visit https://groups.google.com/groups/opt_out.

 

 




You received this message because you are subscribed to the Google Groups “ERPNext Developer Forum” group.

To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un...@googlegroups.com.

To post to this group, send email to er...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

 

 

Thank you Sir,

Should i run this in control panel?

res=sql("select name from tabEquipment")
for r in res:
get_obj("Equipment", r[0], with_children=1).generate_schedule()

will it work?

Thank you sir.

On 11 March 2013 21:49, Nabin Hait <na...@gmail.com> wrote:
Select all equipments and run the following:
get_obj("Equipment", equipment_name, with_children=1).generate_schedule()


Regards,
Nabin Hait

On 11-Mar-2013, at 7:40 PM, gangadhar kadam wrote:

Hello All,
There is a doctype Eqiupment and it have generate_schedule method in old framework . There are 10000 records in Equipment table I have to call generate schedule method for all its records how can i implement this.

Thank you.
Gangadhar kadam



You received this message because you are subscribed to the Google Groups “ERPNext Developer Forum” group.

To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un…@googlegroups.com.

To post to this group, send email to er…@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msg/erpnext-developer-forum/-/ewVvpTzO8jMJ.

For more options, visit https://groups.google.com/groups/opt_out.







You received this message because you are subscribed to the Google Groups “ERPNext Developer Forum” group.

To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un…@googlegroups.com.

To post to this group, send email to er…@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.







--
Thanks & Regards,
Mr.Gangadhar N.Kadam.
Cell: +91 9960066444
Software Engineer,
New Indictrans Technologies Pvt. Ltd., Pune


P SAVE TREES - Please consider the environment before printing this email.

SAVE ENERGY - My monitor is off whenever I am away from my desk. I am helping prevent global warming by reducing consumption of power... ARE YOU?



You received this message because you are subscribed to the Google Groups “ERPNext Developer Forum” group.

To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un...@googlegroups.com.

To post to this group, send email to er...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

 

 

It should work. Record must be saved from the called function, after adding row in the table.


Regards,
Nabin Hait

On 12-Mar-2013, at 11:09 AM, गंगाधर कदम wrote:

Thank you Sir,
   Should i run this in control panel?

res=sql("select name from tabEquipment")
for r in res:
   get_obj("Equipment", r[0], with_children=1).generate_schedule()

will it work?

Thank you sir.

On 11 March 2013 21:49, Nabin Hait <na...@gmail.com> wrote:
Select all equipments and run the following:
get_obj("Equipment", equipment_name, with_children=1).generate_schedule()


Regards,
Nabin Hait

On 11-Mar-2013, at 7:40 PM, gangadhar kadam wrote:

Hello All,
   There is a doctype Eqiupment and it have generate_schedule method in old framework . There are 10000 records in Equipment table I have to call generate schedule method for all its records how can i implement this. 

Thank you.
Gangadhar kadam



You received this message because you are subscribed to the Google Groups “ERPNext Developer Forum” group.

To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un…@googlegroups.com.

To post to this group, send email to er…@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msg/erpnext-developer-forum/-/ewVvpTzO8jMJ.

For more options, visit https://groups.google.com/groups/opt_out.

 

 





You received this message because you are subscribed to the Google Groups “ERPNext Developer Forum” group.

To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un…@googlegroups.com.

To post to this group, send email to er…@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

 

 




--
Thanks & Regards,
Mr.Gangadhar N.Kadam.
Cell: +91 9960066444
Software Engineer,
New Indictrans Technologies Pvt. Ltd., Pune

SAVE TREES - Please consider the environment before printing this email.
SAVE ENERGY - My monitor is off whenever I am away from my desk. I am helping  prevent global warming by reducing consumption of power... ARE YOU?



You received this message because you are subscribed to the Google Groups “ERPNext Developer Forum” group.

To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un…@googlegroups.com.

To post to this group, send email to er…@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

 

 




You received this message because you are subscribed to the Google Groups “ERPNext Developer Forum” group.

To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un...@googlegroups.com.

To post to this group, send email to er...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

 

 

Thank you sir,

It is working but the created child record did not saved, how can i save them . pmh is an instance for preventive maintenance history table which i have to save. how should i implement it .


res=sql("select name from tabEquipment where status='In AMC'")
i=0
for r in res:
get_obj("Equipment",r[i], with_children=1).generate_schedule()

Thank you Sir,


On 12 March 2013 11:37, Nabin Hait <na...@gmail.com> wrote:
It should work. Record must be saved from the called function, after adding row in the table.


Regards,
Nabin Hait

On 12-Mar-2013, at 11:09 AM, गंगाधर कदम wrote:

Thank you Sir,
Should i run this in control panel?

res=sql("select name from tabEquipment")
for r in res:
get_obj("Equipment", r[0], with_children=1).generate_schedule()

will it work?

Thank you sir.

On 11 March 2013 21:49, Nabin Hait <na...@gmail.com> wrote:
Select all equipments and run the following:
get_obj("Equipment", equipment_name, with_children=1).generate_schedule()


Regards,
Nabin Hait

On 11-Mar-2013, at 7:40 PM, gangadhar kadam wrote:

Hello All,
There is a doctype Eqiupment and it have generate_schedule method in old framework . There are 10000 records in Equipment table I have to call generate schedule method for all its records how can i implement this.

Thank you.
Gangadhar kadam



You received this message because you are subscribed to the Google Groups “ERPNext Developer Forum” group.

To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un…@googlegroups.com.

To post to this group, send email to er…@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msg/erpnext-developer-forum/-/ewVvpTzO8jMJ.

For more options, visit https://groups.google.com/groups/opt_out.








You received this message because you are subscribed to the Google Groups “ERPNext Developer Forum” group.

To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un…@googlegroups.com.

To post to this group, send email to er…@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.







--
Thanks & Regards,
Mr.Gangadhar N.Kadam.
Cell: +91 9960066444
Software Engineer,

New Indictrans Technologies Pvt. Ltd., Pune



P SAVE TREES - Please consider the environment before printing this email.
SAVE ENERGY - My monitor is off whenever I am away from my desk. I am helping prevent global warming by reducing consumption of power... ARE YOU?



You received this message because you are subscribed to the Google Groups “ERPNext Developer Forum” group.

To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un…@googlegroups.com.

To post to this group, send email to er…@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.







You received this message because you are subscribed to the Google Groups “ERPNext Developer Forum” group.

To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un…@googlegroups.com.

To post to this group, send email to er…@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.







--
Thanks & Regards,
Mr.Gangadhar N.Kadam.
Cell: +91 9960066444
Software Engineer,
New Indictrans Technologies Pvt. Ltd., Pune


P SAVE TREES - Please consider the environment before printing this email.

SAVE ENERGY - My monitor is off whenever I am away from my desk. I am helping prevent global warming by reducing consumption of power... ARE YOU?



You received this message because you are subscribed to the Google Groups “ERPNext Developer Forum” group.

To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un...@googlegroups.com.

To post to this group, send email to er...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

 

 

Schedule records should be saved after adding, through generate_schedule() function.

Regards,
Nabin Hait

On 12-Mar-2013, at 2:30 PM, गंगाधर कदम wrote:

Thank you sir,
   It is working but the created child record did not saved, how can i save them . pmh is an instance for preventive maintenance history table which i have to save. how should i implement it .

res=sql("select name from tabEquipment where status='In AMC'")
i=0
for r in res:
  get_obj("Equipment",r[i], with_children=1).generate_schedule()

Thank you Sir,


On 12 March 2013 11:37, Nabin Hait <na...@gmail.com> wrote:
It should work. Record must be saved from the called function, after adding row in the table.


Regards,
Nabin Hait

On 12-Mar-2013, at 11:09 AM, गंगाधर कदम wrote:

Thank you Sir,
   Should i run this in control panel?

res=sql("select name from tabEquipment")
for r in res:
   get_obj("Equipment", r[0], with_children=1).generate_schedule()

will it work?

Thank you sir.

On 11 March 2013 21:49, Nabin Hait <na...@gmail.com> wrote:
Select all equipments and run the following:
get_obj("Equipment", equipment_name, with_children=1).generate_schedule()


Regards,
Nabin Hait

On 11-Mar-2013, at 7:40 PM, gangadhar kadam wrote:

Hello All,
   There is a doctype Eqiupment and it have generate_schedule method in old framework . There are 10000 records in Equipment table I have to call generate schedule method for all its records how can i implement this. 

Thank you.
Gangadhar kadam



You received this message because you are subscribed to the Google Groups “ERPNext Developer Forum” group.

To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un…@googlegroups.com.

To post to this group, send email to er…@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msg/erpnext-developer-forum/-/ewVvpTzO8jMJ.

For more options, visit https://groups.google.com/groups/opt_out.

 

 





You received this message because you are subscribed to the Google Groups “ERPNext Developer Forum” group.

To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un…@googlegroups.com.

To post to this group, send email to er…@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

 

 




--
Thanks & Regards,
Mr.Gangadhar N.Kadam.
Cell: +91 9960066444
Software Engineer,

New Indictrans Technologies Pvt. Ltd., Pune



SAVE TREES - Please consider the environment before printing this email.
SAVE ENERGY - My monitor is off whenever I am away from my desk. I am helping  prevent global warming by reducing consumption of power... ARE YOU?



You received this message because you are subscribed to the Google Groups “ERPNext Developer Forum” group.

To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un…@googlegroups.com.

To post to this group, send email to er…@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

 

 





You received this message because you are subscribed to the Google Groups “ERPNext Developer Forum” group.

To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un…@googlegroups.com.

To post to this group, send email to er…@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

 

 




--
Thanks & Regards,
Mr.Gangadhar N.Kadam.
Cell: +91 9960066444
Software Engineer,
New Indictrans Technologies Pvt. Ltd., Pune

SAVE TREES - Please consider the environment before printing this email.
SAVE ENERGY - My monitor is off whenever I am away from my desk. I am helping  prevent global warming by reducing consumption of power... ARE YOU?



You received this message because you are subscribed to the Google Groups “ERPNext Developer Forum” group.

To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un…@googlegroups.com.

To post to this group, send email to er…@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

 

 




You received this message because you are subscribed to the Google Groups “ERPNext Developer Forum” group.

To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un...@googlegroups.com.

To post to this group, send email to er...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.