Questions tagged [frappe]
Frappe is an open source full stack, low-code Python + JS web framework
122
questions
0
votes
2
answers
555
views
How to make custom integration in erpnext
I am trying to integrate erpnext to my own marketplace so i can directly fetch orders related data in erpnext, so anyone have any idea regarding this like how can i sync erpnext with my online store ...
0
votes
1
answer
87
views
How to create composite index on multiple columns in Frappe/Erpnext
How do we create composite index on multiple columns in Frappe/Erpnext. For individual fields in the Doctype, we can create the index. However, if we want to create a composite index based on more ...
0
votes
0
answers
233
views
How do I create Sales Order on ERPNext using the frappe python client?
I’m using frappe python client to create Sales Order but for some reason its not getting created. I’m using all mandatory fields for Sales Order (and Sales Order Item). Its not giving any error but ...
1
vote
0
answers
120
views
How to embed calendar view into portal page?
I'm using Frappe Framework to build a website along with an admin portal. Unable to display doctypes to portal users in calendar view. I was able to create Calendar View on desk, but unable to export ...
3
votes
1
answer
231
views
Frappe: What is the difference between short, default and Long queue
Apart from timeout as mentioned in the frappe document, 300s for short and default and 1500s for long queue. Is there any more difference between these 3 types of queues. And, when should one prefer ...
2
votes
0
answers
230
views
Frappe: Can we configure different number of workers for different types of Queue
In common_site_config we have background_workers attribute. When we set this attribute to a certain value, that many number of workers are created per queue. In Frappe we have 3 queues, short, long ...
0
votes
0
answers
62
views
How to make locally pushed array global javascript [duplicate]
I have array initially declared in global scope as an empty array
then inside a function callback. I have to push response message elements to this array.
But I need to get this update array outside ...
1
vote
1
answer
241
views
Generate a random string on employee custom field in ERPNext
I have a custom employee field called Misconduct Case Number that’s supposed to be extracted and used elsewhere outside ERPNext. The random string should be in the format [8 Alfanumeric charactors] [...
0
votes
1
answer
97
views
How to fix error reset link formatting when reset password erpnext?
Hello… I have error reset link when reset password for user like this:
http://xxxxx.xxxxxx.com,xxxxx.xxxxxx.com:8000/update-password?key=MpqDCOxDO7vEZUCHi5F8rfSHeIgzBLyo
The link is duplicated, ...
0
votes
1
answer
238
views
Date range for query (Frappe)
I want to create a filter for a frappe query that finds values which have a date between 2 other dates. Specifically, the Salary slip start_date and end_date should enclose the attendance_date.
...
1
vote
2
answers
192
views
How to access views created in the database using frappe
We have created a view in the mariadb. We want to access that view from Frappe. Does frappe supports this kind of functionality?
0
votes
1
answer
210
views
How to post request python method from react native?
I have a python method called def login_device(data):
I tried to post request using fetch api with react native but i always get an error status of 500
and an error message of login_device() missing 1 ...
0
votes
1
answer
607
views
How to specify filter for child items in list view?
I want to open Sales Order list and specify filter via
frappe.set_route('List', 'Sales Order', 'List', {'items': {'item_code':my_specific_item_code}})
But it does not work this way - no filters ...
1
vote
1
answer
1k
views
frappe trigger field update via custom script
I'm customizing an existing DocType(quotation) and I've added fields to the Quotation Item child table which affect the amount field of an Item. By default, i.e. before customizations, the grand_total,...
1
vote
0
answers
203
views
React Frappe Charts: How to change chart type on click
I have an application with a react frontend and I want to use Frappe charts to show some data. I have a Switch which changes the value on the chart from line to bar. The problem is that the chart ...
0
votes
1
answer
119
views
Is there any way to version control ERPNext customizations?
We have a laravel application that we integrated ERPNext to via API calls.
We added some customizations to our ERPNext production environment to go with the changes we made to our laravel application. ...
0
votes
0
answers
585
views
Fastest way to import large data to ERPNext
Hello Beautiful People,
We have planned to migrate our existing system to ERPNext. But we've noticed that importing large amount of data takes a long time, importing and submitting 80,000 Delivery ...
0
votes
1
answer
221
views
Frappe (ERP Next): How can we store null in a Currency Field of a DocType?
We require null to be stored in a Currency Field of a DocType. Right now even though the field is not mandatory, by default 0 (zero) is stored in the database, whenever a row is inserted. Is it ...
1
vote
0
answers
587
views
frappe-gantt not working in my angular 10 application
I'm working on a project where the need is to show the tasks in gantt chart, I came across an open source library frappe-gantt and this fits for my use-case.
I tried implementing this in my angular ...
0
votes
1
answer
547
views
Frappe not updating database
please i am new to programming. i am working on a project on frappe. my database dont update. please can someone help me out
DETAILS OF THE PROBLEM
i made a button on a doctype inventory_reconcilation ...
0
votes
0
answers
528
views
Customise frappe query report
I've been trying to make a query_report on frappe.
but it doesn't return the data on the browser.
the console says 'Unable to handle success response'
console.trace() Each data element must implement ...
1
vote
1
answer
153
views
javascript override class variable
I have class with variables, I want change variable value by another function in external file
Class code
frappe.ui.Notifications = class Notifications {
constructor() {
frappe.model
...
0
votes
3
answers
656
views
Frappe Framework ERPNEXT: How to enable CORS on localhost
I am trying to develop a React Client that consumes the Frappe REST API but on each request I am getting a CORS error. according to the community forum, I have to edit the Nginx conf to allow CORS ...
0
votes
1
answer
1k
views
In Frappe Framework Bench Start commands stuck on Rebuilding data_import_tools.min.js on MacOS
I'm new to frappe framework. I have followed the instructions given on the FrappeFramework's website and installed everything without any major problem. But after executing
bench start
it stands still ...
17
votes
2
answers
20k
views
Building wheel for pandas on Ubuntu 20.04 takes more than 20 minutes, but not on 18.04
I have an installation script for ERPNext that works just fine on Ubuntu 18.04.
When I run the same script on 20.04 I am obliged to wait more than 20 minutes for it to complete where it takes around ...
0
votes
1
answer
3k
views
How to frappe.get_all() with child table fields?
I have a "Parcel" Doctype
Which have a “Parcel Content” Doctype as a child table.
If i do:
frappe.get_doc('Parcel', 'NAME')
I get the object with the child table in it, it works for a ...
0
votes
1
answer
189
views
Can't able to create sales invoice in ERP Next with REST
I want to create invoice through REST. I sent all the required parameters but it's showing me "The resource you are looking for is not available".
The endpoint I have used "http://mydomain.amazonaws....
1
vote
2
answers
1k
views
How to get date range with frappe.db.get_list()?
I'm trying to get subscriptions ending in a given month using the DB API documented here.
I can get before a certain date with:
end_period = datetime.date(2020, 12, 31)
frappe.db.get_list('...
1
vote
1
answer
799
views
Setting a value in Frappe application isn't reflected in ERPNext GUI
I have added a 'number_of_members' value to the Customer DocType via customization.
In my application I have tried several ways to update the value. However the value never updates in the webpage. I ...
0
votes
1
answer
101
views
A list variable is used in a function when it seems empty
I'm creating a Frappe App, similar (working) functionality exists so I'm trying to reuse this code. I can't find the actual assignment for the lst variable anywhere in this python document (using ...
1
vote
1
answer
477
views
How to handle multiple set-cookie values in react-native?
Development environment:
- nginx v1.14 on ubuntu 16
- React-Native v0.57
I'm using a frappe REST API and the login request returns multiple cookies and I'm getting the later value, the rest are ...
0
votes
2
answers
742
views
ERPNext: Join multiple tables using script report
Anyone know what is the ORM function for joining multiple db tables in ERPNext?
I need query result from 2 DB tables join using script report
*I don't need query report answer since i already have it....
0
votes
2
answers
399
views
DocType not visible under Module view
I have created two DocTypes inside the education module. I've unchecked the "custom" checkbox to build the js and py files. However, the two DocTypes have not listed inside the education module.
If ...
-1
votes
1
answer
650
views
Add custom app on desk using Frappe + ERP
So i was a beginner using this framework.
I don't know how to add custom app on the desk.
I was following the tutorial by add desk.py and insert my code there. after bench migrate and nothing ...
0
votes
1
answer
1k
views
How to pass data to another doctype
I have 2 doctypes, When i press button i want to send fields data, and items to another doctype, during research i found sample like this. But doesn't working at all. Any suggestion?
frappe.ui.form....
0
votes
0
answers
878
views
How to get child table values in frappe.route_options along with Parent table values
In sales order , I have a button for creating Allotment which is a custom doctype. Using frappe.set_route I am able to get parent table values but not sure how to get child table values along with it. ...
0
votes
1
answer
274
views
Could not install custom app in frappe docker bench
I am new to frappe docker,I have created a site in frappe docker and its working fine. I created a custom app called test and tried installing it in my site using
./dbench --site site1.local install-...
0
votes
2
answers
211
views
How to fetch doctype eg: address or tax rule
I want to fetch the doctype. How do I do this? I want to add a separate column which will give doctype such as sales order, purchase order etc. The first line gives me error what query should be fired....
-2
votes
1
answer
362
views
How can I get current document number in frappe (python)?
doc_no = doc.naming_series
Gives me (for sales order) Order No: SAL-ORD-.YYYY.- but no actual number
-1
votes
1
answer
274
views
Selenium send_keys way too fast
I'm implementing Selenium (Python), but whenever I enter a send_keys("bla bla bla") the system can't handle it. It's literally bugging. The text erases himself or just keep the last part of the word.
...
0
votes
1
answer
132
views
Uncaught TypeError: Cannot read property 'substr' of undefined (javascript)
I have this error on my console
below is the snippet of the code i am working with
JAVASCRIPT
get_items: function (item_code)
if (key) {
if (key.length == 13){
if (key....
1
vote
1
answer
802
views
Error executing: bench --site site1.local install-app erpnext
I am trying to install ERPNext frappe using full installation, but facing the following issue while executing bench --site site1.local install-app erpnext
I am using ubuntu-19.04 OS.
I am using ...
0
votes
1
answer
843
views
ERPNext OperationalError (2003, "Can't connect to MySQL server on u'localhost' ([Errno 22] Invalid argument)")
I’m getting the below error when trying to install a new site using command
bench --site site1.local install-app erpnext
This is a new installation on Windows Linux SubSustem running Ubuntu.
I’m ...
0
votes
1
answer
282
views
IndexError: tuple index out of range (Frappe/Erpnext)
I am trying to modify code below but I am getting a "tuple index out of range" error.
price_list_name = frappe.db.sql("""select name
from `tabItem Price` a
where a....
5
votes
4
answers
6k
views
How can we add child table dynamically in frappe (ERPNEXT)
I want to add child tables dynamically depending on records in another doctype.
0
votes
2
answers
1k
views
How to remove special characters of input field in Javascript?
I have form with 4 fields (item_code, item_name, item_search, description)
If user fill the first input field (item_code), at the end it automatically sets the same value for all the other three input ...
3
votes
2
answers
125
views
How can I clean this code to an associative array?
I have been struggling with the following code to make it useable, but I don't know what type of data it is.
This part is extracted from a payload posted by ERPNext to my webhook. I have drilled down ...
0
votes
1
answer
137
views
"Procfile" template is not found even when file exists
I am installing frappe bench by mean of a python script they created but in one of the steps, I am getting this error:
jinja2.exceptions.TemplateNotFound: Procfile
By searching the disk, I have ...
0
votes
2
answers
834
views
MariaDB configuration
I run this command in my Centos 7 server:
frappe@vps [~/frappe-bench]# bench new-site erp.local
but I got this error:
frappe@vps [~/frappe-bench]# bench new-site erp.local
MySQL root password:
=====...
1
vote
1
answer
4k
views
Could not open kernel policy /etc/selinux/targeted/active/policy.kern for reading
by using “Easy Install” to install Frappe ERPNext with this command:
sudo python install.py --production --user frappe
I am getting this error:
TASK [frappe_selinux : Check enabled SELinux modules] ...