Is it possible to copy a doctyp and have it active.

66 views
Skip to first unread message

HF

unread,
Aug 26, 2012, 5:04:23 AM8/26/12
to erpnext-dev...@googlegroups.com
I need to have a copy of the stock entry doctyp so I can change the fields in the copied document for special users, is it possible to do this from the (New==>Doctyp==>...) and make it active and appears in the menu ???

Rushabh Mehta

unread,
Aug 26, 2012, 5:06:42 AM8/26/12
to erpnext-dev...@googlegroups.com
Its possible, but it won't do any good if you are unable to create "Stock Ledger Entries" -> that are the basis of all stock calculation, via code. You can see the file erpnext/stock/doctype/stock_entry/stock_entry.py for more info.


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

On 26-Aug-2012, at 2:34 PM, HF <h.far...@gmail.com> wrote:

I need to have a copy of the stock entry doctyp so I can change the fields in the copied document for special users, is it possible to do this from the (New==>Doctyp==>...) and make it active and appears in the menu ???

--
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/-/ZSHiPwNKGikJ.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

HF

unread,
Aug 26, 2012, 9:38:31 AM8/26/12
to erpnext-dev...@googlegroups.com
So There is no way to that with stock ledger calculation ?
I need to replicate the form but I will hide some fields from it , can I copy the .py file or its nonsence 
If you can take this in consideration in the next version it would be very good way for administrators to customize special forms for users based on their function.

Anand Doshi

unread,
Aug 26, 2012, 9:41:47 AM8/26/12
to erpnext-dev...@googlegroups.com
Hi HF,

Can you describe the scenario in detail, like how do you want different users to use stock entry?

Are you aiming to just hide the fields based on some criteria? You can use custom script for this.

thanks,
Anand.

--
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.

HF

unread,
Aug 26, 2012, 10:12:04 AM8/26/12
to erpnext-dev...@googlegroups.com
How can I use the custom scripts ?? I don't know the syntax and field names in forms ? is there any reference for this???
Also if I need to add a custom field which will get its value from another table depending on the user selected field who can I do it ?

If I know these I think it will be solved.

Anand Doshi

unread,
Aug 26, 2012, 10:21:41 AM8/26/12
to erpnext-dev...@googlegroups.com
Hi HF,

It will be helpful if you can describe what exactly you want to do. We can give an example based on your scenario to make it easier for you to understand.

Thanks,
Anand.

--
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.

HF

unread,
Aug 26, 2012, 10:30:33 AM8/26/12
to erpnext-dev...@googlegroups.com
I have added a custom field (barcode) for Items, and I need this field to appear in the stock_entry_items with the barcode of the item selected, also I need to let the field item rate hidden for special users and appears for another users.

Also if the rate is changed by users to more than 20% of the standard rate the system does not accept.

Nabin Hait

unread,
Aug 27, 2012, 2:37:22 AM8/27/12
to erpnext-dev...@googlegroups.com
Hi HF,

"Barcode" field is already there in the item master, you can pull items based on "Barcode" in Delivery Note and Sales Invoice. The feature is hidden by default, you can activate it from Setup --> Disable Features.
Currently, Barcode field is not exists in Stock Entry, we will add it soon, so that users can pull item based on barcode while issue or transfer items from one warehouse to another.

You can hide Rate column for a particular Role, by modifying permlevel of the Rate field and assigning different access restriction against that permlevel. But currently there is a bug in the system, column is not hiding based on permlevel, we will fix this soon. It has been discussed in detail on a previous thread (https://groups.google.com/forum/?fromgroups=#!searchin/erpnext-user-forum/permission/erpnext-user-forum/nKDgysdrwpk/MXzp4qGxBQgJ).

About Rate validation, it is difficult to implement by custom code by yourself. Please create an issue in Github, we will try to add the feature in the future.


Thanks,
Nabin Hait



On Sun, Aug 26, 2012 at 8:00 PM, HF <h.far...@gmail.com> wrote:
I have added a custom field (barcode) for Items, and I need this field to appear in the stock_entry_items with the barcode of the item selected, also I need to let the field item rate hidden for special users and appears for another users.

Also if the rate is changed by users to more than 20% of the standard rate the system does not accept.

--
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.

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



--
Regards,
Nabin Hait

Reply all
Reply to author
Forward
0 new messages