kid1194 / frappe-better-list-view Goto Github PK
View Code? Open in Web Editor NEWFrappe list view plugin that allows modification.
License: MIT License
Frappe list view plugin that allows modification.
License: MIT License
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
how we can change color scheme of background row of our choice
We want to use Status based coluroing based on select field, can we achive different rows colur functiolity. What portion of exmpale code should be used in such a scanario
parser function is working as expected ON INITIAL LOAD of a listview BUT NOT after the following scenarios:
NOTE: listview before_render() function IS CALLED under each of the above scenario's, but I haven't been able to find a way to retrigger the parser function from the before_render() function.
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Traceback with variables (most recent call last):
File "apps/frappe/frappe/website/serve.py", line 18, in get_response
response = renderer_instance.render()
path = '/list'
http_status_code = 200
response = None
endpoint = 'list'
path_resolver = <frappe.website.path_resolver.PathResolver object at 0x7fb22d03b760>
renderer_instance = <frappe.website.page_renderers.template_page.TemplatePage object at 0x7fb22d063820>
e = DoesNotExistError('DocType None not found')
File "apps/frappe/frappe/website/page_renderers/template_page.py", line 78, in render
html = self.get_html()
self = <frappe.website.page_renderers.template_page.TemplatePage object at 0x7fb22d063820>
File "apps/frappe/frappe/website/utils.py", line 510, in cache_html_decorator
html = func(*args, **kwargs)
args = (<frappe.website.page_renderers.template_page.TemplatePage object at 0x7fb22d063820>,)
kwargs = {}
html = None
page_cache = None
func = <function TemplatePage.get_html at 0x7fb23171f880>
File "apps/frappe/frappe/website/page_renderers/template_page.py", line 89, in get_html
self.update_context()
self = <frappe.website.page_renderers.template_page.TemplatePage object at 0x7fb22d063820>
File "apps/frappe/frappe/website/page_renderers/template_page.py", line 157, in update_context
data = self.run_pymodule_method("get_context")
self = <frappe.website.page_renderers.template_page.TemplatePage object at 0x7fb22d063820>
File "apps/frappe/frappe/website/page_renderers/template_page.py", line 219, in run_pymodule_method
return method(self.context)
self = <frappe.website.page_renderers.template_page.TemplatePage object at 0x7fb22d063820>
method_name = 'get_context'
inspect = <module 'inspect' from '/usr/lib/python3.10/inspect.py'>
method = <function get_context at 0x7fb22d179120>
File "apps/frappe/frappe/www/list.py", line 21, in get_context
context.meta = frappe.get_meta(doctype)
context = {'top_bar_items': [<TopBarItem: 7640ad8412 parent=Website Settings>, <TopBarItem: 5d35593e2f parent=Website Settings>, <TopBarItem: 23e2f47521 parent=Website Settings>, <TopBarItem: 32af5b00d3 parent=Website Settings>, <TopBarItem: 201660d38f parent=Website Settings>, <TopBarItem: 33e817700b parent=Website Settings>], 'footer_items': [<TopBarItem: c2cef792f0 parent=Website Settings>, <TopBarItem: 046fb0ef7b parent=Website Settings>, <TopBarItem: 2e0aed9725 parent=Website Settings>, <TopBarItem: d713ae5fad parent=Website Settings>, <TopBarItem: 399981147a parent=Website Settings>, <TopBarItem: 8e3b89a8ee parent=Website Settings>, <TopBarItem: 8fe12c75b3 parent=Website Settings>, <TopBarItem: 950daae9eb parent=Website Settings>], 'post_login': [{'label': 'My Account', 'url': '/me'}, {'label': 'Log out', 'url': '/?cmd=web_logout'}], 'banner_image': '/files/CK COLOR CRP.png', 'brand_html': "", 'copyright': 'Desifoods Processing ...
dict_params = {}
doctype = None
File "apps/frappe/frappe/init.py", line 1203, in get_meta
return frappe.model.meta.get_meta(doctype, cached=cached)
doctype = None
cached = True
frappe = <module 'frappe' from 'apps/frappe/frappe/init.py'>
File "apps/frappe/frappe/model/meta.py", line 65, in get_meta
meta = Meta(doctype)
doctype = None
cached = True
meta = None
File "apps/frappe/frappe/model/meta.py", line 123, in init
super().init("DocType", doctype)
self = <Meta: unsaved>
doctype = None
class = <class 'frappe.model.meta.Meta'>
File "apps/frappe/frappe/model/document.py", line 106, in init
self.load_from_db()
self = <Meta: unsaved>
args = ('DocType', None)
kwargs = {}
class = <class 'frappe.model.document.Document'>
File "apps/frappe/frappe/model/meta.py", line 129, in load_from_db
super().load_from_db()
self = <Meta: unsaved>
class = <class 'frappe.model.meta.Meta'>
File "apps/frappe/frappe/model/document.py", line 149, in load_from_db
frappe.throw(
self = <Meta: unsaved>
d = None
class = <class 'frappe.model.document.Document'>
File "apps/frappe/frappe/init.py", line 522, in throw
msgprint(
msg = 'DocType None not found'
exc = <class 'frappe.exceptions.DoesNotExistError'>
title = None
is_minimizable = False
wide = False
as_list = False
File "apps/frappe/frappe/init.py", line 490, in msgprint
_raise_exception()
title = None
as_table = False
as_list = False
indicator = 'red'
alert = False
primary_action = None
is_minimizable = False
wide = False
sys = <module 'sys' (built-in)>
out = {'message': 'DocType None not found', 'title': 'Message', 'indicator': 'red', 'raise_exception': 1}
_strip_html_tags = <functools._lru_cache_wrapper object at 0x7fb22d0ba140>
_raise_exception = <function msgprint.._raise_exception at 0x7fb22d09a050>
inspect = <module 'inspect' from '/usr/lib/python3.10/inspect.py'>
msg = 'DocType None not found'
raise_exception = <class 'frappe.exceptions.DoesNotExistError'>
strip_html_tags = <function strip_html_tags at 0x7fb234883f40>
File "apps/frappe/frappe/init.py", line 442, in _raise_exception
raise raise_exception(msg)
inspect = <module 'inspect' from '/usr/lib/python3.10/inspect.py'>
msg = 'DocType None not found'
raise_exception = <class 'frappe.exceptions.DoesNotExistError'>
frappe.exceptions.DoesNotExistError: DocType None not found
Additional context
Add any other context about the problem here.
Describe the bug
A clear and concise description of what the bug is.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.