-
- Downloads
[FIX] account_stock, purchase_stock: prevent AttributeError when confirm...
[FIX] account_stock, purchase_stock: prevent AttributeError when confirm vendor BILL/refund with FIFO/AVCO AttributeError "account.move.line" object has no attribute "purchase_line_id" occurs in `stock_account` when we confirm vendor BILL or REFUND with product costing method "first in first out" or "average cost". With the recent reflacted changes in commit[1], the `purchase_line_id` field is used and it belongs to `purchase`, but it is not installed and does not depend, so it causes an error. The above issue is solved by removing some code in commit[1] from `stock_account` and adding it to `purchase_stock`. committ[1] - https://github.com/odoo/odoo/pull/99411/commits/e9ce88a9372843abef7cf8fc94c4dbe5f16c5fa3#diff-e6134a1a5a13058e35f86426a96db0acac44553fa3b0ca26716390f7b19fc96cR318 sentry-3975529425 closes odoo/odoo#117876 Signed-off-by:Arnold Moyaux (arm) <arm@odoo.com>
Showing
- addons/purchase_stock/models/account_invoice.py 34 additions, 2 deletionsaddons/purchase_stock/models/account_invoice.py
- addons/purchase_stock/models/account_move_line.py 92 additions, 0 deletionsaddons/purchase_stock/models/account_move_line.py
- addons/stock_account/models/account_move.py 0 additions, 122 deletionsaddons/stock_account/models/account_move.py
Loading
Please register or sign in to comment