I need to export Item Group Tree

I. 

I add a child to Item Group Tree and now, like fixtures, i want to export. 

I want when install my module that this child show in Item Group Tree.


Thanks.


  1. Please be kind and don't send large attachments
  2. For issues, features requests use https://github.com/frappe/erpnext/issues



    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 view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/72d6fb3b-8070-43c1-bcde-fd25deed96b1%40googlegroups.com.

    For more options, visit https://groups.google.com/d/optout.
Can you explain the use case? do you want a different Item Group tree by default?

On 22-Sep-2014, at 11:13 pm, Luis Fernandes <lu...@gmail.com> wrote:

I. 

I add a child to Item Group Tree and now, like fixtures, i want to export. 

I want when install my module that this child show in Item Group Tree.


Thanks.


  1. Please be kind and don’t send large attachments
  2. For issues, features requests use https://github.com/frappe/erpnext/issues



    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 view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/72d6fb3b-8070-43c1-bcde-fd25deed96b1%40googlegroups.com.

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


  1. Please be kind and don't send large attachments
  2. For issues, features requests use https://github.com/frappe/erpnext/issues



    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 view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/BC7AE775-4B14-4D8D-95E1-BDCC1AA7F685%40gmail.com.

    For more options, visit https://groups.google.com/d/optout.
I Rushabh. I want to add one more category (Variant) but this category i want to add only when my module is installed.

So like the image show i added but know i want to exported like fixtures to package with my module.

Like this:




Thanks.

Terça-feira, 23 de Setembro de 2014 6:10:45 UTC+1, rushabh escreveu:
Can you explain the use case? do you want a different Item Group tree by default?

On 22-Sep-2014, at 11:13 pm, Luis Fernandes <lu...@gmail.com> wrote:

I. 

I add a child to Item Group Tree and now, like fixtures, i want to export. 

I want when install my module that this child show in Item Group Tree.


Thanks.


  1. Please be kind and don’t send large attachments
  2. For issues, features requests use https://github.com/frappe/erpnext/issues



    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 view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/72d6fb3b-8070-43c1-bcde-fd25deed96b1%40googlegroups.com.

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


  1. Please be kind and don't send large attachments
  2. For issues, features requests use https://github.com/frappe/erpnext/issues



    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 view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/b83300fd-ed53-40eb-96e6-20ac549e4727%40googlegroups.com.

    For more options, visit https://groups.google.com/d/optout.
Add an after-install hook:

https://github.com/frappe/erpnext/blob/develop/erpnext/hooks.py#L15

https://github.com/frappe/erpnext/blob/develop/erpnext/setup/install.py#L13


On 23-Sep-2014, at 1:23 pm, Luis Fernandes <lu...@gmail.com> wrote:

I Rushabh. I want to add one more category (Variant) but this category i want to add only when my module is installed.

So like the image show i added but know i want to exported like fixtures to package with my module.

Like this:




Thanks.

Terça-feira, 23 de Setembro de 2014 6:10:45 UTC+1, rushabh escreveu:
Can you explain the use case? do you want a different Item Group tree by default?

On 22-Sep-2014, at 11:13 pm, Luis Fernandes <lu...@gmail.com> wrote:

I. 

I add a child to Item Group Tree and now, like fixtures, i want to export. 

I want when install my module that this child show in Item Group Tree.


Thanks.


  1. Please be kind and don’t send large attachments
  2. For issues, features requests use https://github.com/frappe/erpnext/issues



    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 view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/72d6fb3b-8070-43c1-bcde-fd25deed96b1%40googlegroups.com.

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



  1. Please be kind and don’t send large attachments
  2. For issues, features requests use https://github.com/frappe/erpnext/issues



    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 view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/b83300fd-ed53-40eb-96e6-20ac549e4727%40googlegroups.com.

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


  1. Please be kind and don't send large attachments
  2. For issues, features requests use https://github.com/frappe/erpnext/issues



    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 view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/5901B607-524D-41F0-949D-B28D3EBE0FB3%40gmail.com.

    For more options, visit https://groups.google.com/d/optout.
Thanks.

For now i will try to workaround.

Thanks.

Terça-feira, 23 de Setembro de 2014 9:36:01 UTC+1, rushabh escreveu:
Add an after-install hook:


https://github.com/frappe/erpnext/blob/develop/erpnext/setup/install.py#L13


On 23-Sep-2014, at 1:23 pm, Luis Fernandes <lu...@gmail.com> wrote:

I Rushabh. I want to add one more category (Variant) but this category i want to add only when my module is installed.

So like the image show i added but know i want to exported like fixtures to package with my module.

Like this:




Thanks.

Terça-feira, 23 de Setembro de 2014 6:10:45 UTC+1, rushabh escreveu:
Can you explain the use case? do you want a different Item Group tree by default?

On 22-Sep-2014, at 11:13 pm, Luis Fernandes <lu...@gmail.com> wrote:

I. 

I add a child to Item Group Tree and now, like fixtures, i want to export. 

I want when install my module that this child show in Item Group Tree.


Thanks.


  1. Please be kind and don’t send large attachments
  2. For issues, features requests use https://github.com/frappe/erpnext/issues



    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 view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/72d6fb3b-8070-43c1-bcde-fd25deed96b1%40googlegroups.com.

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



  1. Please be kind and don’t send large attachments
  2. For issues, features requests use https://github.com/frappe/erpnext/issues



    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 view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/b83300fd-ed53-40eb-96e6-20ac549e4727%40googlegroups.com.

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


  1. Please be kind and don't send large attachments
  2. For issues, features requests use https://github.com/frappe/erpnext/issues



    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 view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/c1f2bbb6-11d9-41ac-8f00-5f57cc24ab2b%40googlegroups.com.

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

You can do this by generating report from item group tree