Rational
Some kind of subscriptions involve an asset of the company (ex: cars, building etc.). In such case it may be required to know which asset is rent to who. Also we should ensure that the same asset is not rent twice over the same period. And we must provide a way to let the user select available assets for the subscription period.
Proposal
- Add a
Man2Manypointing to stock lots of assets on subscription service. - Add a
Many2Onepointing to a serial lot number on the subscription line. It must be a lot number from the subscription service. - Add on serial lot number a
Functionfield “Subscribed” for the contextual date which point to the current subscription line. - Add a constraint on subscription line with a lot number to not overlap.
- Add a
Many2Manyreadonly fields on the subscription service which shows the available and not available lots for the current date (using filter).
The lot must be removed from the lines when the subscription is canceled.
The lot will be required for a running subscription with a service linked to lots.
Implementation
Future Improvement
- Create customer shipment for the rent assets.