Questions tagged [frappe]
Frappe is an open source full stack, low-code Python + JS web framework
76
questions with no upvoted or accepted answers
3
votes
0
answers
800
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 ...
2
votes
0
answers
172
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 ...
2
votes
1
answer
353
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 ...
2
votes
1
answer
243
views
Get documentation from GitHub project as a single pdf
I'm looking for a single pdf of the ErpNext and Frappe user manuals.
Documentation seems to be provided in html and the source is in markdown. I did find tools to convert markdown to html/pdf, but ...
1
vote
1
answer
21
views
Custom middleware to redirect user based on a role based on certain checks
I am trying to customize my frappe app based on a role.
user with Role Website logs in.
Check if the user has company set
If it is not set then redirect them to a custom page where they can select ...
1
vote
0
answers
394
views
How to connecting my web application to socket io in frappe (Docker local development)
So I want to connect my web application that was made from react to frappe. I have already installed the socket io client and connected it to the other socket io server. It was successful when I tried ...
1
vote
3
answers
92
views
Merge Two python Lists with a condition
I have two list Activities and Projects. I want to merge them such that I will be able to loop over the merged list. So now the merged list Appication but I want to merge them in such a way that I ...
1
vote
0
answers
334
views
VSCode errors for Frappe framework and erpnext - JavaScript & Jinja
I am using Frappe framework to develop a web application alongside ERPNext app and my custom app.
Everything is working as expected on the website. However, VSCode keeps on throwing errors all over ...
1
vote
0
answers
674
views
How to hide general ui elements in frappe framework / erpnext
What is the best approach to hide general ui options from certain desk users with lower permission roles? I would for example like to block the create workspace feature (and hide the button) for a ...
1
vote
0
answers
162
views
Incoming email account not correct ERROR”
How to set up email account in erp next i tried to setup email but
Incoming email account not correct ERROR” and Email Domain not
accepted
want to setup email account for erpnext via simple gmail ...
1
vote
1
answer
2k
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
270
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 ...
1
vote
1
answer
566
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 ...
1
vote
1
answer
1k
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 ...
1
vote
2
answers
1k
views
Created doctype is not showing in Frappe/ERPNext
I have created a custom doctype in ERPNext v10^, but the problem is; created doctype shows in doctype list but it's related form doesn't exist.
ERPNext is in production mode and the option 'custom' ...
1
vote
1
answer
2k
views
How to remove Failed to create chart: can't acquire context from the given item error while using it with Ruby on Rails?
I installed frappe charts for ruby on rails through gem.
Then I tried to run one of the frappe-chart code which is given in their website:
let data = {
labels: ["12am-3am", "3am-6am", "6am-...
1
vote
2
answers
1k
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:
=====...
0
votes
1
answer
18
views
does frappe.db.commit() not work in server script in Frappe Cloud?
HI I am writing a server script in Frappe Cloud where I am trying to update a particular doctype(which is NOT THE DOCTYPE I HAVE CHOSEN IN DOCTYPE EVENT) using frappe.db.set_value(), then in order to ...
0
votes
0
answers
20
views
imaplib.IMAP4.error: got more than 20480 bytes when configured A gmail account for a Frappe Project
I have configured one Gmail id for default inbox inside email Account list, I am geting an Error . When a new email is recieved in the email inbox.
Step to reproduce :
configure new email to Email ...
0
votes
0
answers
29
views
How can I get images from API in Custom print format instead of frappe files?
I have created a custom print format where I can print all form data using Jinja but there are some base64 images that I am storing on external server and I want to get those images and display it on ...
0
votes
0
answers
28
views
Frappe save objects in another doctype based on the base doctype?
I am tring to trigger an event to save doctype data based on another doctype.
This is how my doctype are:
Employee has a Job Role.
Job Role has tow doctypes as Table 'Job Role Course Item' and 'Job ...
0
votes
0
answers
14
views
Modefying the search pop-up inside the purchase invoice
I am new to frappe framework and ERPnext,
when I add multiple items under (New Purchase Invoice) as shown below:
enter image description here
it gives me the only two items I created so far in order ...
0
votes
0
answers
33
views
How to make the ERPNext auto clicked the button in client side?
How to auto clicked once on the Generate Payables when there is a value in Sales Agent Name?
Generate Payables
0
votes
1
answer
67
views
Move last two or one row data if another section of data goes to next page in print format
I have a html page for a print view. This page contain some data from back-end. There are a header section, item table section and signature section. Item table data comes dynamically that may have ...
0
votes
0
answers
19
views
Error while "Add child" in chart of account ERPNext Frappe
I am very new to ERPNext, I am trying to add one entry in Chart of Account ERPNext, using **Add Child" as shown in the below screen shot:
But it is showing me error in console as below:
It is ...
0
votes
0
answers
20
views
How to use NuxtJS from CDN or load app from inner folder
I'm using Frappe Framework to develop a custom app and I'm looking to use NuxtJS for the app's Portal.
A frappe app's folder structure is like this:
custom-app/
├─ custom-app/
│ ├─ www/
│ │ ├─...
0
votes
0
answers
14
views
Change name of the document where the data is stored when webform has been submitted
When an user submits a webform, the data is stored in a document with a random ID like "5c58393da6". Is it possible to give the document a name, for example use the input in one of the form-...
0
votes
0
answers
29
views
Why is '}' in Jinja frappe can replace {% endif %}?
This is the frappe core code,
{% if name == 'Property Sales' { %}
<ul>
<a>bla bla bla</a>
<li>bla bla bla</li>
</ul>
{% } %}
What this the { in the 1st line ...
0
votes
1
answer
151
views
Convert ERPNext from Docker to regular install
I would like to install apps on my frappe bench installation. Unfortunately I used the Docker image to install the ERPNext bundle. I did not realise at the time that this setup does not allow the ...
0
votes
1
answer
414
views
ModuleNotFoundError in vs code Frappe import
Unfortunately, I always get this error message with Frappe, so I ask you that you can maybe help me and give me a few types. Thank you and I'll be happy to wait for your answer. Thanks
Error:
...
0
votes
0
answers
23
views
titile_field and search_field in Link field Script Report
How to make the filter show the full_name at the top and email (this is id) at the bottom? This report filter is link to a doctype tabUser.
i refer to this https://github.com/techmaxsolucoes/...
0
votes
1
answer
121
views
frappe.get_url return http:// but not https://
I am using frappe v14, however, when I use frappe.get_url in jinja2, it return me http://xxxx, but not https://xxxxx, may I know if I miss any setup. I am using https://xxxx for visiting
0
votes
1
answer
223
views
How to use “IS NOT NULL” filter in frappe.get_list?
Problem:
when i bench execute using frappe.get_list, nothing happen, i tried
("!=", “null”)
("!=", “None”)
("!=", “”)
i think the second parameter is wrong.
...
0
votes
0
answers
89
views
Restrict User wise doc list view
Suppose I have a doctype name ‘Export File’. there are multiple types of users. All of them can create new files from the ‘Export File’ doctype. But I want to make restrictions.
Only the creator can ...
0
votes
0
answers
97
views
i try to install custom erp in windows its successfully installed.and after i try install the app in mysite but its thrown error like this
frappe@23a8618099ff:/workspace/development/frappe-bench$ bench --site softsuave.localhost install-app ss_custom_erpnext
Installing ss_custom_erpnext...
Updating DocTypes for ss_custom_erpnext: [=======...
0
votes
0
answers
84
views
Unable to init frappe-bench on MacOS
I'm trying to install erpNext on my MacOS. I followed the link below to set up frappe-bench:
https://frappeframework.com/docs/v13/user/en/installation#macos
Bench CLI installed successfully but when I ...
0
votes
0
answers
145
views
Users cannot add rows with the same item twice. If do, then show an error message and remove the row/item from row
I have a vehicle price doctype. In this doctype, I have a child table that has two field names (vehicle item, item price). Users can add multiple rows but when a duplicate row is added then it should ...
0
votes
0
answers
235
views
Leaving field label empty in Frappe DocType fields results in empty header in reports view
I want to hide the field labels in custom form - to provide a table like data input option. Successfully achieved by just leaving the Label empty.
But this results in Reports view showing no header ...
0
votes
1
answer
259
views
Frappe Gantt chart date not aligning with correct date
I'm using the frappe gantt chart package & setting the start date as "2022-04-18" but for some reason the bar is showing as one day before, is there a way for me to set an offset to ...
0
votes
1
answer
198
views
ERPNEXT - docker frappe/erpnext-nginx:v14 - host not found in upstream "${BACKEND}" in /etc/nginx/conf.d/default.conf:2
Anyone more are using the docker available in frappe/erpnext-nginx:v14?
I´m having the error
host not found in upstream "${BACKEND}" in /etc/nginx/conf.d/default.conf:2
Did I miss some ...
0
votes
1
answer
35
views
Frappe - Patches do not get executed when installing app
We are developing a custom app. The custom app has some patches defined in patches.txt.
Now, when we install the custom app on the site, say
bench --site [sitename] install-app custom-app
The patches ...
0
votes
1
answer
456
views
Installing ERPNext on Ubuntu 20.0.4. SIGTERM being sent to Redis
I am following this tutorial, to install ERPNext on my Ubuntu 20.0.4 LTS OS.
I managed to follow all the instructions, however, when I run bench start, the system fails to start.
Here is the console ...
0
votes
0
answers
69
views
No module named 'gspread'
Below file runs successfully when run direct on the console, but give an error: No module named 'gspread' on server
import gspread
from oauth2client.service_account import ServiceAccountCredentials
...
0
votes
0
answers
151
views
Creation of your site - site2 failed because MariaDB is not properly configured to use the Barracuda storage engine
I am facing below mentioned issue when i am creating the new-site
Creation of your site - xxx failed because MariaDB is not properly
configured to use the Barracuda storage engine.
Please add the ...
0
votes
0
answers
1k
views
How to insert data to child table in FrappeClient? And also date to date field in erpnext?
I have two problems:
1) I'm trying to insert data to a child table, "operator_staff", of a doctype. But showing this error. Getting this error only when i try to insert data to child table.
...
0
votes
0
answers
114
views
Is there a password_reset hook in frappe framework?
I have a requirement where i want an item for a doctype to be created when the user signup.
i can use ‘on_session_creation’ hook which gets called when the user logs into the system for the very first ...
0
votes
0
answers
29
views
How to remove this warning message injected into my site?
I configured my two domains with SSL in my VPS (ubuntu)
the site with .in domain got the following code injected into DOM\
<div style="padding: 15px">
<h3 style="color: red&...
0
votes
1
answer
1k
views
This error where add frappe erpnext new-site
Traceback (most recent call last):
File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.8/runpy....
0
votes
1
answer
326
views
Developer Mode in Frappe
When do we need to set frappe in developer mode?
To do this, do following bench folder:
bench set-config developer_mode 1
bench clear-cache
bench setup requirements --dev
I get warning (see last line):...
0
votes
0
answers
81
views
Apply CSS between String Element
I'm using Gantt component and i have lists of task in HTML, exaple:
Task 1: XXXX <b>YYYY</b> ZZZZZ
Task 1: AAAA <b>BBBB</b> CCCCC
My problems is YYYY and BBBB have bold tag &...