incorrect invoice price - average price + real time missing code
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Fix Released
|
Low
|
OpenERP R&D Addons Team 2 |
Bug Description
to reproduce
product with
* costing method: average price
* inventory valuation: real time
* stockable
PO:
* Invoice control from picking
create some PO , process picking, validate invoice
etc
the problem
create PO , price= 10
process picking AND modify price = 11
* create stock move -
** with modified and correct price_unit = 11
* create invoice from picking
invoice line takes price from product
def _get_price_
takes standard (= average) price from product
IMHO in this case the invoice should take the (modified) price from stock move.
because:
./stock.py:1213:
if the invoice is created from the picking (which is very often the case in small companies where no pricelists and standard price exists for purchased products) it does not make much sense to use/propose a different price in the invoice.
the users has to correct the price during "process picking" AND on the invoice line again. - a source of errors.
Related branches
- Rucha (Open ERP) (community): Approve
- qdp (OpenERP): Pending requested
-
Diff: 15 lines (+4/-1)1 file modifiedpurchase/stock.py (+4/-1)
Changed in openobject-addons: | |
assignee: | nobody → OpenERP R&D Addons Team 2 (openerp-dev-addons2) |
importance: | Undecided → Low |
status: | New → Confirmed |
Changed in openobject-addons: | |
status: | Confirmed → In Progress |
Changed in openobject-addons: | |
status: | Fix Committed → Fix Released |
patch uses (modified) price from stock move for invoice lines if purchase-invoices are created from pickings
for real time settings this will create identical amounts for
* stock moves
* invoice lines
if invoice = picking.price
to resume,
if OpenERP allows to modify the price for the stock move, this price should be taken also for the invoice.
in real life
* if a price is printed on the supplier picking, the same price will usually be on the invoice.