Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • Tryton Tryton
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 710
    • Issues 710
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 58
    • Merge requests 58
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar

April 05-07 - Mercurial Paris Conference 2023 - One day of workshop dedicated to Heptapod and Mercurial usage and workflow. There are still places available for both workshops and talks!

  • TrytonTryton
  • TrytonTryton
  • Issues
  • #11531
Closed
Open
Issue created Jun 01, 2022 by Maxime Richez@maxxDeveloper

Warehouse should be required on sale when using sale_stock_quantity

When using multiple warehouses, there's no default warehouse set by default on sale.

Module sale_stock_quantity is checking stock quantity when quoting sale. But to check stock_quantity, warehouse should be required otherwise we get this error:

Traceback (most recent call last): File "/trytond/wsgi.py", line 119, in dispatch_request return endpoint(request, **request.view_args) File "/trytond/protocols/dispatcher.py", line 47, in rpc request, database_name, *request.rpc_params) File "/trytond/wsgi.py", line 86, in auth_required return wrapped(*args, **kwargs) File "/trytond/protocols/wrappers.py", line 161, in wrapper return func(request, pool, *args, **kwargs) File "/trytond/protocols/dispatcher.py", line 181, in _dispatch result = rpc.result(meth(*c_args, **c_kwargs)) File "/trytond/model/modelview.py", line 707, in wrapper return func(cls, records, *args, **kwargs) File "/trytond/model/workflow.py", line 37, in wrapper result = func(cls, filtered, *args, **kwargs) File "/sale/sale.py", line 172, in quote sale.create_planned_move() File "/sale/sale.py", line 148, in create_planned_move move.from_location = self.warehouse.storage_location AttributeError: 'NoneType' object has no attribute 'storage_location'

Fault: 'NoneType' object has no attribute 'storage_location'

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking