[Trunk/7.0] Point of sale order is "invoiced" when state of invoice is draft

Bug #1098493 reported by Antoine(OpenERP)
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Committed
Low
OpenERP R&D Addons Team 3

Bug Description

Steps to reproduce:

1. Create empty db and install POS. Configure accounting
2. Create a product (MTS / buy / Stockable) and update the stock level and create a customer (whatever the info)
3. Configure one journal as payment method
4. Create a POS object and start a new session
5. Sell your product, execute payment, print the order and the leave the front end
6. go in the back end, in the pos orders, and select the only order you created
7. Add the client to the order and invoice the order
8. As you can see, the invoice is in draft state. You can delete it.

Problem is:

1. On your pos order, the order is still marked as "invoiced" (while it's not)
2. If you close your session, no sales accounting entries can be found as you removed the invoice before it create entries.

Possible solutions:

1. Mark order as invoiced only once invoice is validated (not when is created in draft)
2. Make it possible to click on the invoice button if the invoice field on the pos order is empty (easy)
3. Don't make it possible to close the session if there are orders in state "invoice" but that invoice field is empty (easy)
4. If 3 not good enough, automatically create the entries in accounting as for a normal (non invoiced) order if the order is in state invoiced and invoice field is empty (much more difficult to do and error prone)
5. Make it possible to revert back to paid an order in invoiced state (difficult)

Related branches

Changed in openobject-addons:
status: New → Confirmed
summary: - [7.0] Point of sale order is "invoiced" when state of invoice is draft
+ [Trunk/7.0] Point of sale order is "invoiced" when state of invoice is
+ draft
Amit Parik (amit-parik)
Changed in openobject-addons:
assignee: nobody → OpenERP R&D Addons Team 3 (openerp-dev-addons3)
importance: Undecided → Low
Revision history for this message
Khushboo Bhatt(openerp) (kbh-openerp) wrote :

Hello Antoine,

  I have checked your issue.Yes you are right.The state of draft invoice must not be "invoiced"in POS order.

 So for the solution either you can do is, change the state name of POS Order from "invoiced" to "Order to invoice" as same in sale order or the another option is when invoice is validate then after invoiced is become true.

Thanks for reporting!!

Changed in openobject-addons:
status: Confirmed → In Progress
Revision history for this message
Chandni Gandhi(OpenERP) (cga-openerp) wrote :

Hello,

It has been fixed in to : https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-1098493-cga

Revision No:8532
Revision ID:<email address hidden>

Thanks

Changed in openobject-addons:
status: In Progress → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.