Questions tagged [frappe]

Frappe is an open source full stack, low-code Python + JS web framework

Frappe is an open source, full stack web framework, low-code web framework, which was originally built for ERPNext, but now powers many business applications.

184 questions
1
vote
1 answer

jinja2.exceptions.TemplateSyntaxError: expected token 'end of print statement', got 'dark'

I am new in programming. I can't not understand why this error. Why have I got an error with 'Dark'.
Samsul
  • 21
  • 8
1
vote
1 answer

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 certain user role: Ideally I would like to also…
Michael de Borst
  • 302
  • 2
  • 5
  • 16
1
vote
0 answers

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 account in gmail access for less secure app is also…
1
vote
1 answer

Frappe framework auto calcualte age and fullname

Good day, I need help in solving this problem Problem : I am trying to set up a custom script that calculates the age of the user base on the year it's chosen, Also when the user inputs the first_name , last_name , middle_name it should reflect on…
1
vote
1 answer

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] [Date & Time] [Constant Organization Number] eg…
Wabwire Levis
  • 117
  • 1
  • 8
1
vote
2 answers

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?
1
vote
1 answer

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, and Quotation net_totals get calculated as soon…
Redgren Grumbholdt
  • 1,115
  • 1
  • 19
  • 36
1
vote
0 answers

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 doesnt rerender after this event is triggered (I…
1
vote
1 answer

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 .with_doc('Notification Settings',…
1
vote
3 answers

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 requests but I am facing this error on my machine…
sathouel
  • 11
  • 4
1
vote
2 answers

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('Subscription', filters={ 'current_invoice_end': ['<',…
laydros
  • 51
  • 1
  • 5
1
vote
1 answer

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 feel like I'm missing some sort of save or update…
laydros
  • 51
  • 1
  • 5
1
vote
1 answer

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 replaced. But, the data I'm looking for is sent…
1
vote
1 answer

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 master branch. bench --site site1.local install-app…
Jeet Khatri
  • 21
  • 1
  • 6
1
vote
2 answers

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…
jstuardo
  • 3,901
  • 14
  • 61
  • 136
1 2
3
12 13