adding new module

473 views
Skip to first unread message

gangadhar kadam

unread,
Apr 11, 2013, 9:15:14 AM4/11/13
to erpnext-dev...@googlegroups.com
Hello All,
  We have added new module (Tracking) on our local setup through "app/public/js/modules.js" and "setup/page/modules_setup/modules_setup.js" . Today I took update and tracking module got invisible.I have added new module in "modules.js" and "module_setup.js" , rebuild the setup using "./lib/wnf.py -b" , also restarted the webserver but the changes not reflected. What should i do in order to made added module visible?

Thank you

Regards
Gangadhar kadam

Nabin Hait

unread,
Apr 11, 2013, 10:03:59 AM4/11/13
to erpnext-dev...@googlegroups.com

Please check Setup -> Show/Hide Modules, may be it is uncheched there.

--
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...@googlegroups.com.
To post to this group, send email to erpnext-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/erpnext-developer-forum/-/B8npRSjRgS0J.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

गंगाधर कदम

unread,
Apr 12, 2013, 12:48:08 AM4/12/13
to erpnext-dev...@googlegroups.com
Hello Nabin,
      Thank you for your response but new added module is also not listed in setup->Show/hide module. I have added new module in setup/page/modules_setup/modules_setup.js. I also rebuild the setup. for chrch role user  i have given permission for doctypes in new module still it is hidden. What should i do?

Regards,
Gangadhar kadam
--
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?

Rushabh Mehta

unread,
Apr 12, 2013, 12:51:15 AM4/12/13
to erpnext-dev...@googlegroups.com
Add it in app/config.json

Gangadhar - can you please share your updates on GitHub? This project is a community effort and contributions should not be a one way street.


W: https://erpnext.com
T: @rushabh_mehta

गंगाधर कदम

unread,
Apr 12, 2013, 5:29:28 AM4/12/13
to erpnext-dev...@googlegroups.com
Hello Sir,
  After project delivery I will fork all updated on git.

While updating i got following error.

Traceback (innermost last):
  File "/var/www/mtn/lib/webnotes/modules/patch_handler.py", line 74, in execute_patch
    webnotes.get_method(patchmodule + ".execute")()
  File "app/patches/march_2013/p04_pos_update_stock_check.py", line 5, in execute
    webnotes.reload_doc("setup", "doctype", "global_defaults")
  File "/var/www/mtn/lib/webnotes/__init__.py", line 339, in reload_doc
  File "/var/www/mtn/lib/webnotes/modules/__init__.py", line 73, in reload_doc
    return import_files(module, dt, dn, force)
  File "/var/www/mtn/lib/webnotes/modules/import_file.py", line 35, in import_files
    return import_file(module, dt, dn, force)
  File "/var/www/mtn/lib/webnotes/modules/import_file.py", line 45, in import_file
    ret = import_file_by_path(path, force)
  File "/var/www/mtn/lib/webnotes/modules/import_file.py", line 63, in import_file_by_path
    import_doclist(doclist)
  File "/var/www/mtn/lib/webnotes/modules/import_file.py", line 92, in import_doclist
    webnotes.delete_doc(doctype, name, force=1, ignore_doctypes =ignore, for_reload=True)
 TypeError: delete_doc() got an unexpected keyword argument 'ignore_doctypes'

What should i do?

Thanks and regards,
Gangadhar kadam

Rushabh Mehta

unread,
Apr 12, 2013, 5:31:20 AM4/12/13
to erpnext-dev...@googlegroups.com
It takes < 5 mins to push updates.

Sorry Gangadhar we cannot help you further.
Twitter: @rushabh_mehta

Mohamed Dawod

unread,
Aug 6, 2013, 5:51:20 AM8/6/13
to erpnext-dev...@googlegroups.com
Hi rushabh,

Please, I need to try starting a new module to manage hospitals but I can not find any tutorial or topic for module creation steps as I found in openerp as an example.

Is erpnext already have one ?

I think it will be very helpfull if you and erpnext team telling us the steps in clear way.

Thank you

Rushabh Mehta

unread,
Aug 6, 2013, 8:27:56 AM8/6/13
to erpnext-dev...@googlegroups.com
Mohamed,

Thats a big task.... Can you make it more motivating :)

best,
Rushabh

--
Note:
 
If you are posting an issue,
1. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
3. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.
 
End of Note
---
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...@googlegroups.com.
Message has been deleted

Rushabh Mehta

unread,
Aug 6, 2013, 9:10:41 AM8/6/13
to erpnext-dev...@googlegroups.com



T: @rushabh_mehta

On 06-Aug-2013, at 6:35 PM, Mohamed Helmy <mhe...@vieracom.com> wrote:

Dear Rushabh,

I just need to make a new title like HR in modules list.

I tried to do this with ERPNext app but I can not.

I am tring to get some explanation for how to do this simply ?? !!

thanks.

Maxwell

unread,
Aug 30, 2013, 11:50:37 AM8/30/13
to erpnext-dev...@googlegroups.com
I'm try to add a new module too, but the adition of module record in config.json, does not show the module, on Desktop and the module_setup
There would be some more step to be done?

PS: I performed wn.py --build before this post, but does not works
To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+unsub...@googlegroups.com.

Anand Doshi

unread,
Aug 30, 2013, 12:00:09 PM8/30/13
to erpnext-dev...@googlegroups.com
Go to setup / show hide modules and check show for your module. 

Sent from my phone
To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer...@googlegroups.com.

Maxwell Morais

unread,
Aug 30, 2013, 3:41:40 PM8/30/13
to erpnext-dev...@googlegroups.com
The module is not being displayed.
 My config.js is attached



2013/8/30 Anand Doshi <an...@iwebnotes.com>



--

Maxwell Morais
Tecnologia da Informação
config.json

Rushabh Mehta

unread,
Aug 31, 2013, 1:55:03 AM8/31/13
to erpnext-dev...@googlegroups.com
Check

wn.modules

and 

wn.user.get_desktop_items()

from the js console and see if your module appears in both.

You may also have to give permissions on the page, module def related to the module

- Rushabh



W: https://erpnext.com
T: @rushabh_mehta

<config.json>

Maxwell Morais

unread,
Sep 2, 2013, 7:00:08 AM9/2/13
to erpnext-dev...@googlegroups.com
After recreate the page, the module is showed in module def, the page is accessible by url, but not displayed on the desktop.

The module def is `Call Center` and its exists on `wn.modules"` but not is listed on `wn.user.get_desktop_items()`
The permission of the page is `All`




2013/8/31 Rushabh Mehta <rme...@gmail.com>

Maxwell Morais

unread,
Sep 2, 2013, 7:16:57 AM9/2/13
to erpnext-dev...@googlegroups.com

From what I could contain the problem occurs because the module is not listed in wn.boot.profile.allow_modules, someone would have some idea about how to solve?

If I force the input module in wn.boot.profile.allow_modules it is listed on the desktop.



2013/9/2 Maxwell Morais <max.mor...@gmail.com>

Rushabh Mehta

unread,
Sep 3, 2013, 1:23:37 AM9/3/13
to erpnext-dev...@googlegroups.com
You have to set "type" as "page" in config.json

Maxwell Morais

unread,
Sep 3, 2013, 9:25:57 AM9/3/13
to erpnext-dev...@googlegroups.com
Works Fine, thanks!


2013/9/3 Rushabh Mehta <rme...@gmail.com>

MP

unread,
Sep 11, 2013, 11:02:08 AM9/11/13
to erpnext-dev...@googlegroups.com
Does it have to be type=page? I tested it with type=module and it works too.

Also I found that if you have type=module then you can't have module name with space in it. For example, if you have module name as "Food Management" and type='module' then it won't get displayed. wn.boot.profile.allowed_modules.indexOf("Food Management") return -1 even though "Food Management" is in allowed_modules. If rename it to FoodMan it works.


2013/9/2 Maxwell Morais <max.mor...@gmail.com>


2013/8/31 Rushabh Mehta <rme...@gmail.com>


2013/8/30 Anand Doshi <an...@iwebnotes.com>
To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+unsubscr...@googlegroups.com.

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

--
Note:
 
If you are posting an issue,
1. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
3. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.
 
End of Note
---
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+unsub...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
Note:
 
If you are posting an issue,
1. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
3. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.
 
End of Note
---
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+unsub...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



--

Maxwell Morais
Tecnologia da Informação

--
Note:
 
If you are posting an issue,
1. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
3. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.
 
End of Note
---
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+unsub...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
<config.json>


--
Note:
 
If you are posting an issue,
1. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
3. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.
 
End of Note
---
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+unsub...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



--

Maxwell Morais
Tecnologia da Informação



--

Maxwell Morais
Tecnologia da Informação

--
Note:
 
If you are posting an issue,
1. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
3. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.
 
End of Note
---
You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.

Maxwell Morais

unread,
Sep 11, 2013, 1:10:28 PM9/11/13
to erpnext-dev...@googlegroups.com
If you own doctypes linked to the module, it worked, but in my case I did not.


2013/9/11 MP <mayur....@gmail.com>
To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.
Reply all
Reply to author
Forward
0 new messages