You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
1.1 KiB

  1. This module extend the Point of Sale Odoo module, regarding invoicing.
  2. This module prevent to make some mistakes in Odoo Point of Sale
  3. regarding invoices generated via Point of Sale.
  4. Without this module
  5. ~~~~~~~~~~~~~~~~~~~
  6. When an invoice generated from Point of Sale is confirmed
  7. it is in a 'open' state, until the session is closed, and the entries are
  8. generated. At this step, invoice will be marked as 'paid' and the related
  9. accounting moves will be reconcilied.
  10. So, as long as the session is not closed, any user can:
  11. * cancel the invoice;
  12. * register a payment;
  13. * reconcile the invoice with an existing payment;
  14. All that action should be prohibited.
  15. With that module
  16. ~~~~~~~~~~~~~~~~
  17. All those actions will not be possible anymore.
  18. Note that the changes only impact the opened invoice coming from point of sale,
  19. before the session is closed.
  20. Technically
  21. -----------
  22. * add a ``pos_pending_payment`` field on the ``account.invoice`` to mark the
  23. items that shouldn't be paid.
  24. This field is checked when the invoice is created from point of sale,
  25. and is unchecked, when the session is closed.
  26. .. figure:: ../static/description/account_invoice_form.png