[Stock valuation] Stock journal entry for real-time product which have unit and sale price are 0.0
This bug report was converted into a question: question #186577: Stock valuation for consummable product.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Fix Released
|
Medium
|
OpenERP Publisher's Warranty Team |
Bug Description
On the SaaS, when I make an inventory directly from the product form for a Consumable product with sales and cost price equal to 0, I get an accounting line with an amount equal to 1 which is not correct.
It should generate a move with an amount equal to 0 or no move at all.
Steps to reproduce:
- Create a consumable product with sales and cost price equal to 0
- Set the Stock valuation to real time
- Make an inventory for 10000 units
- Check the accounting move
- Make an inventory for 5 units for the same product
- Check the accounting move
--> Problem: accounting move with amount different of 0
Related branches
- nel: Pending requested
- Xavier ALT: Pending requested
- Naresh(OpenERP): Pending requested
-
Diff: 11 lines (+1/-1)1 file modifiedstock/stock.py (+1/-1)
- OpenERP R&D Team: Pending requested
-
Diff: 11 lines (+1/-1)1 file modifiedstock/stock.py (+1/-1)
Changed in openobject-addons: | |
status: | Opinion → Confirmed |
status: | Confirmed → In Progress |
Changed in openobject-addons: | |
importance: | Undecided → Medium |
assignee: | nobody → OpenERP Publisher's Warranty Team (openerp-opw) |
tags: |
added: maintenance removed: profserv |
Hello,
I have checked your issue but this is not a bug rather than it's functional behavior for accounting entires.
Let me explain whole thing here:
First of all that doesn't matter that we have using a "Consumable " or "Stackable" both have behavior same for this scenario.
You have created a product with cost and sale both price 0.0.
Yes, you are right. Whenever we creates stock journal's entires for this product it will take the credit and debit value 1.0.
This is not a bug, but we have set this thing for better functional behavior for real time scenario. Because If we creates entires for 0.0 it's doesn't make sanes and it's meaning less also we won't allow entires for 0.0.
Finlay that's behavior is set an intensionally and this 's not a bug, So I am converting this to questions.
Correct me If I am wrong .
Thanks for understanding!