"Did not save" on projects

23 views
Skip to first unread message

Adriano

unread,
Jan 7, 2013, 5:12:30 AM1/7/13
to erpnext-dev...@googlegroups.com
As asked by Rushabh, copying from users forum:

Hello pals,

I've run into an strange problem in erpnext. I'm trying to create some projects in order to test the project copy functionality but discovered that i couldn't save brand new or copied projects. The error message shown is "Did not save" without any other message, error log, apache log nor screen message showing what could it be. What should i test to try to fix it?
Besides that, i created some custom fields {a section breaker and a pack of text areas}, all non required. Could this be the error?

The functionality I was trying to check and solve was, when copying projects (in order to make a duplicate project functionality) copy also the tasks and milestones within, which are cleaned when i save it. How could this duplicate tasks be done? I will keep them all with the same scheduled time but always change the date of the tasks relatively to the start of the project. The same goes upon milestones.

With this continuation:

Em sexta-feira, 4 de janeiro de 2013 03h08min51s UTC-2, Nabin Hait escreveu:
Hi Adriano,

we have tested in out test environment, but did not found any issue. It is likely your customization related problem. Please check if there is any error in Firebug, if you are using Firefox. In Chrome, check Javascript Console.

This was the output:
File "../lib/webnotes/widgets/form/save.py", line 56, in savedocs raise e OperationalError: (1054, "Unknown column 'requisitos' in 'field list'") 
Requisitos is a text area field I created. It doesn't seem to find it. This message repeats a lot of times when trying to save, in JS error log. What could be done about it?

And regarding "Copy" functionality, by default all fields copied when you copy any document. If you do not want to copy any specific field, you should mark "No Copy" property for that field in the doctype/customize forms. In Project, milestone table will be copied but task list will not, because task is a separate form, only displayed here.

How would I be able to make it copy task list as well, then? I didn't check the code structure, so a point to where look would save up some time ^^
 


Regards,
Nabin Hait


On 03-Jan-2013, at 10:30 PM, Adriano wrote:

when copying projects (in order to make a duplicate project functionality) copy also the tasks and milestones within, which are cleaned when i save it.


Regards.

Adriano

unread,
Jan 7, 2013, 5:36:41 AM1/7/13
to erpnext-dev...@googlegroups.com
Answering Rushabh:

It seems that the system did not create a field when you added one in the doctype. Did you create the field via DocType or via Custom Field?

I created it via Custom Field.

Rushabh Mehta

unread,
Jan 7, 2013, 5:45:38 AM1/7/13
to erpnext-dev...@googlegroups.com
Adriano, 

For whatever reason, your Custom Field record was created but the database schema (table column) was not updated. It is really hard to find out what could be the reason (but it is strange and we have generally not encountered it before).

You can try saving the Custom Field again and see if the table column appears, or just add it yourself. Also next time if you save a Custom Field and see an error, just post it on the forum.

best,
Rushabh


--
You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.
To post to this group, send email to erpnext-dev...@googlegroups.com.
To unsubscribe from this group, send email to erpnext-developer...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/erpnext-developer-forum/-/AgP3_bBl6wwJ.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages