summaryrefslogtreecommitdiff
path: root/odoo/addons/base/data/base_data.sql
diff options
context:
space:
mode:
authorJorge Pinna Puissant <jpp@odoo.com>2020-05-25 09:57:16 +0000
committerJorge Pinna Puissant <jpp@odoo.com>2020-05-26 11:37:55 +0000
commit8deac894f818322a65b459f38e79878469961375 (patch)
tree7e25655b1e7fcf6e3eecd51919921fd79ca0a89f /odoo/addons/base/data/base_data.sql
parente26b94405c57d31b7119a38d23ea585772f4f4a1 (diff)
[FIX] product: error when automatic selecting PO vendor
The business case is the following: 1) The Child company can order the product to the Parent company; 2) The Parent company order the product to a 3rd party supplier. Settings: - Enable ‘Inter-Company Transactions’ transactions with the option ‘Synchronize sales/purchase orders’ checked; - Enable 'dropshipping'. Set 2 companies: - Parent company; - Child company: which belongs to the Parent company. Set a product 'my purchased product': - Can be Purchased; - Product Type: Storable Product. - ‘Purchase’ tab: - Set a Vendor price list line 1: which is your Parent company + set your Child company who can buy the product; - Set a Vendor price list line 2: which is your 3rd party Supplier + set your Parent company who can buy the product. - Log in as the Child company (disable the login in the Parent company, select only the Child one); - Place a Purchase Order for ‘my purchased product’ to vendor 'Parent company'; - Confirm the PO. Before this commit, an error message appears. The issue arises because seller_ids is retrieved from the cache and not re-read as superuser. Therefore, records are missing from the list and the correct seller is not found. Now, the correct vendor for the purchase order of the parent company is selected. opw-2261971 closes odoo/odoo#51887 X-original-commit: 0a9f0c5d2c85e80dd5dceaeacf3f04bfc8aa0be1 Signed-off-by: Jorge Pinna Puissant (jpp) <jpp@odoo.com>
Diffstat (limited to 'odoo/addons/base/data/base_data.sql')
0 files changed, 0 insertions, 0 deletions