A new ir.sequence is generated at pos.config creation for the orders. However it was not used as the type was not set. The fallback was done on the general sequence.
In addition to the sequences being shared, it was not possible to create a pos.order in multicompany (no sequence found for user company, name was null).
Same issue for the pos.order.line.
This patch generates correctly pos.order and pos.order.line sequences at pos.config creation.
Instead of using the pos.config sequence to generate session number (not what this field was intended to), use the existing sequence for pos.session.
Remove company_id value on default pos.session sequence to make sure it's shared between companies and correctly set the prefix.
- refactorisation of the code: 2000 lines of code removed
- fixed all the bugs
- support for tax included/excluded prices
- fixed rounding troubles
- don't print the ticket if partial payment
- cleaning features:
- workflow reviewed: New -> Done -> Posted / Invoiced
- generation of journal entries/invoice is now correct
- only one picking per PoS order
- wizard to apply global discount (on each lines)
- useability:
- reviewed the main point_of_sale screen
- statements are open by default
- removed non-useful features
- advances (you use a special product for this)
- contracts numbers
- refund with exchange (you just create a new sale with negatives qty)
- removed validation steps
- scan product wizard
- clean and complete YAML tests (work in progress)
bzr revid: fp@tinyerp.com-20110925140930-s6zibvn51k3914in