Coder Social home page Coder Social logo

Comments (4)

jekkos avatar jekkos commented on June 5, 2024

You should check whether you also have the stcok location permissions beneath the sales and receivings modules. In a previous version there was indeed a direct dependency between permissions on the item module and the sales. (in which the latter required the former). I did a patch for that so that every module now has it's own stock location subpermission (which makes more sense in a way as you'd want to allow users to sell or receive to specific locations apart from the config of the items module)

Also technically it should not be possible anymore to deselect the master module permission and have sub permissions selected. If it is then it's probably a bug and then it would be nice to see a screencap to understand the problem at hand a bit better.

from opensourcepos.

marteserede avatar marteserede commented on June 5, 2024

Ok, I don't know why, but now it is indeed not possible to uncheck the master module while checking the submodule... sorry, I guess I was wrong there.

Yes, your idea that each is good and makes indeed sense to have subpermissions for the stocklocations for each module.
But I have to create in the permissions-table new entries, right? for example for sales: sales__name of stock location_ and then sales and the location_id.

But I think there is a small "bug" if I'm not wrong: in the stock_locations module in the method get_undeleted_all() it looks like that if I give a user the permission for sales-Stock B and receiving-stock A he can at the end sell from Stock B and A although in the permissions setting it does not look like that.
do you know what i mean?

from opensourcepos.

jekkos avatar jekkos commented on June 5, 2024

yes I might have missed that indeed. Will take a closer look tomorrow and then get back to you.

from opensourcepos.

jekkos avatar jekkos commented on June 5, 2024

I did a fix for this issue. I will release this soon enough.

from opensourcepos.

Related Issues (20)

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.