Repository navigation
Conversation
a14c023 to
cca0f34
Compare
c3aa3c9 to
1534b78
Compare
1534b78 to
ba2b7c3
Compare
b2f12d1 to
5c1f059
Compare
5091c88 to
554c7c2
Compare
554c7c2 to
3593e2a
Compare
e9bc32d to
45c2c3c
Compare
|
This PR has the |
44f0475 to
b6b9c7d
Compare
b6b9c7d to
37df6f0
Compare
| "version": "17.0.1.0.0", | ||
| "category": "Inventory/Inventory", | ||
| "website": "https://github.com/OCA/stock-logistics-availability", | ||
| "author": "Binhex Systems Solutions S.L., Odoo Community Association (OCA)", |
There was a problem hiding this comment.
@ajfebres please fix the Author name
37df6f0 to
494181c
Compare
|
/ocabot merge nobump |
|
On my way to merge this fine PR! |
|
@jelenapoblet The merge process could not be finalized, because command |
|
@OCA/pypi-support reserve this name please. |
| cls.env["stock.quant"].sudo().with_company( | ||
| company_id | ||
| )._update_available_quantity(product, location, qty, owner_id=owner) | ||
| return cls.env["stock.quant"].search( |
There was a problem hiding this comment.
If you want tot be sure to get the proper quant, I'd suggest you to do:
quant = cls.env["stock.quant"].with_context(inventory_mode=True).create({
"inventory_quantity": qty,
"location_id": location.id,
"owner_id": owner.id if owner else False,
})
quant._apply_inventory()
return quant
| ) | ||
| move._action_confirm() | ||
|
|
||
| if create_move_line: |
There was a problem hiding this comment.
Why creating move_line manually ?
There was a problem hiding this comment.
The test requires that the line have the exact owner_id specified for the test case (owner_a, owner_b, or none). Automatically generated lines may not reflect that owner, and since the consigned stock portal filters by owner, the test might fail to represent the scenario intended for testing.
494181c to
3ab10bd
Compare
@BinhexTeam
[ADD] stock_available_portal_owner: Portal visibility for consigned stock
📝 Context & Need
In logistics models handling consignment inventory, third-party merchandise owners require autonomous visibility over their stock levels stored in third-party warehouses. While Odoo natively tracks stock ownership using the standard
owner_idfield in the inventory module, it lacks a built-in portal interface for owners to view their specific stock availability. Currently, this limitation creates an operational dependency on the logistics operator's internal staff to manually provide stock reports (physical stock, forecasted, incoming/outgoing, etc.).🚀 What it incorporates
This PR introduces the
stock_available_portal_ownermodule, which adds a dedicated and secure portal section for consigned stock. Specifically, it includes:owner_id.✨ Benefits