sergeolacruz / inventree-supplier-panel Goto Github PK
View Code? Open in Web Editor NEWPut the parts from a purchase order into a supplier shopping cart
License: MIT License
Put the parts from a purchase order into a supplier shopping cart
License: MIT License
When i create a mouser purchase order in inventree I get this error, but have no idea how to solve this.
'suppliercart' is not a registered namespace inside 'plugin'
Traceback (most recent call last):
File "/root/.local/lib/python3.11/site-packages/django/urls/base.py", line 71, in reverse
extra, resolver = resolver.namespace_dict[ns]
~~~~~~~~~~~~~~~~~~~~~~~^^^^
KeyError: 'suppliercart'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/inventree/InvenTree/plugin/views.py", line 25, in get_plugin_panels
panels += plug.render_panels(self, self.request, ctx)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/inventree/InvenTree/plugin/base/integration/mixins.py", line 161, in render_panels
panel['content'] = render_template(self, content_template, ctx)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/inventree/InvenTree/plugin/helpers.py", line 243, in render_template
html = tmp.render(context)
^^^^^^^^^^^^^^^^^^^
File "/root/.local/lib/python3.11/site-packages/django/template/backends/django.py", line 61, in render
return self.template.render(context)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/.local/lib/python3.11/site-packages/django/template/base.py", line 175, in render
return self._render(context)
^^^^^^^^^^^^^^^^^^^^^
File "/root/.local/lib/python3.11/site-packages/django/template/base.py", line 167, in _render
return self.nodelist.render(context)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/.local/lib/python3.11/site-packages/django/template/base.py", line 1005, in render
return SafeString("".join([node.render_annotated(context) for node in self]))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/.local/lib/python3.11/site-packages/django/template/base.py", line 1005, in <listcomp>
return SafeString("".join([node.render_annotated(context) for node in self]))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/.local/lib/python3.11/site-packages/django/template/base.py", line 966, in render_annotated
return self.render(context)
^^^^^^^^^^^^^^^^^^^^
File "/root/.local/lib/python3.11/site-packages/django/template/defaulttags.py", line 471, in render
url = reverse(view_name, args=args, kwargs=kwargs, current_app=current_app)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/.local/lib/python3.11/site-packages/django/urls/base.py", line 77, in reverse
raise NoReverseMatch(
django.urls.exceptions.NoReverseMatch: 'suppliercart' is not a registered namespace inside 'plugin'
I installed the plugin but I don't see any trace of a configuration for it.
Here is the install log output:
Cloning https://github.com/SergeoLacruz/inventree-supplier-panel to /tmp/pip-req-build-blcoabey
Running command git clone --filter=blob:none --quiet https://github.com/SergeoLacruz/inventree-supplier-panel /tmp/pip-req-build-blcoabey
Resolved https://github.com/SergeoLacruz/inventree-supplier-panel to commit 2f743b6efd1bcfc617a9679bc10addc54f855a6a
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
Building wheels for collected packages: inventree-supplier-panel
Building wheel for inventree-supplier-panel (setup.py): started
Building wheel for inventree-supplier-panel (setup.py): finished with status 'done'
Created wheel for inventree-supplier-panel: filename=inventree_supplier_panel-0.0.2-py3-none-any.whl size=8780 sha256=27e027413c0249b6a2c5b378b4cb1e3a604241db346b881706a5ca93d340d161
Stored in directory: /tmp/pip-ephem-wheel-cache-jy7tf26q/wheels/b7/3a/a3/ab2dbc1b26e84d3aca3bc80319a26836d9a38213714b15985f
Successfully built inventree-supplier-panel
Installing collected packages: inventree-supplier-panel
Successfully installed inventree-supplier-panel-0.0.2
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
Logs from 6/8/2023, 9:30:18 PM
Here are the contents of the plugins.txt file after the install:
cat data/plugins.txt
# InvenTree Plugins (uses PIP framework to install)
-i https://github.com/SergeoLacruz/inventree-supplier-panel inventree-supplier-panel # Installed 2023-06-09 03:01:49.524246+00:00 by caleb
Here is the image showing that only the default plugins are available:
Can someone please assist me with this? My company would really love to use this plugin!
If I add multiple items to my purchase order and press the 'Transfer PO' button:
The correct prices / amounts / etc. are displayed in the Mouser Actions panel:
But, the wrong prices are set in the purchase order:
It seems one of the prices is set to all the line items in the purchase order.
Running inventree 0.13.0 and the latest version of this plugin.
BTW: The functionality of this plugin is really great, can't wait for TME and Digikey support.
#issue-1719469387
sorry for the confusion i was in the wrong repository but i can not install the supplier panel
ModuleNotFoundError: No module named 'inventree_supplier'
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.