Skip to content

Commit

Permalink
[REF] sale_quotation_products: add comment
Browse files Browse the repository at this point in the history
closes #781

Related: ingadhoc/stock#448
Related: ingadhoc/purchase#180
Signed-off-by: Bruno Zanotti <bz@adhoc.com.ar>
  • Loading branch information
jjscarafia authored and jcadhoc committed Feb 9, 2024
1 parent 74b6128 commit 3365362
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sale_quotation_products/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ This module adds a button "Search Products" in sale order that gets you to a pro
When you return to the sale order form view, you can see all the sale order lines added from the product list view
You can edit the sale order lines as you wish afterwards.

If you have also stock_ux installed, when using this new button, the stock location of the warehouse of the picking type is used as a default filter so that the stock info shown on the products tree view uses that location.

Installation
============

Expand Down
1 change: 1 addition & 0 deletions sale_quotation_products/models/sale_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ def add_products_to_quotation(self):
))
# we do this apart because we need to ensure "warehouse_id" exists in datebase, if for the case that
# we don't have inventory installed yet
# for this to work stock_ux needs to be installed because it's adding those filters on every view
if 'warehouse_id' in self._fields:
context.update(dict(
search_default_location_id=self.warehouse_id.lot_stock_id.id,
Expand Down

0 comments on commit 3365362

Please sign in to comment.