Table of Content
I add the contract expiration date field in the puchase order model and show it in the purchase order form.
When a purchase order is confirm will create stock pikings, This pickings will have a expired contract date too, the date pull from the purchase order data.
When a stock picking is duplicated will clear the expiration contract date.
I create a purchase order and I assing a past contract expire date. Then I confirm the purchase order.
I go inside the picking generated by a contract expire date purchase order confirmation and I click in the Receive button. This error message is pop up saying Cannot receive a picking with a expired contract date of pickings in done state.
I use the Force Receive button to sucessfully recieve the picking Force Recevie button will open the receive wizard normally.
I use the Create Draft Invoice wizard from the stock picking in tree view. I select a picking whose purchase order is contract expired date.
I try to create an invoce from a stock picking in with contract expired date. And this is the result, a error message raise indicating that the action can be done.
I add the Force Create button in the create draft invoices wizard. When a stock picking have contract expired date then with this button will proceed no matter what and will create the invoice even if the stock picking have a expired contract date.
After a picking is received a button 'Create Invoice/Refund' is shown to create the invoice of the current picking