purchase_force_invoiced
This module allows users to force the invoice status of purchase orders to 'Fully Billed' even when not all quantities have been invoiced.
Key Features
- purchase.order: Adds a 'Force Invoiced' boolean field to manually override the invoice status.
- purchase.order: Updates the invoice status to 'invoiced' when the 'Force Invoiced' field is checked and the status was 'to invoice'.
- purchase.order.line: Resets the quantity to invoice to zero for order lines when the order is force invoiced.
- purchase.report: Sets the quantity to be billed to zero in purchase reports when the order is force invoiced.
- purchase.order: Restricts visibility of the 'Force Invoiced' field to users with the 'Set purchase orders to Force Invoiced' permission.
- purchase.order: Allows editing the 'Force Invoiced' field only when the order is in 'done' state.
- res.groups: Creates a new user group 'Set purchase orders to Force Invoiced' and assigns it by default to purchase managers.