GithubHelp home page GithubHelp logo

sergeolacruz / inventree-supplier-panel Goto Github PK

View Code? Open in Web Editor NEW
11.0 3.0 1.0 654 KB

Put the parts from a purchase order into a supplier shopping cart

License: MIT License

Python 85.41% HTML 14.59%
inventree inventreeplugins digikey mouser

inventree-supplier-panel's People

Contributors

sergeolacruz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

xeno27

inventree-supplier-panel's Issues

NoReverseMatch error

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'

Install succeeds but doesn't appear in list

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:

image

Can someone please assist me with this? My company would really love to use this plugin!

Prices copied back to purchase order are wrong

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:
image

But, the wrong prices are set in the purchase order:
image
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.

install problem

#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'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.