Contributors mailing list archives

contributors@odoo-community.org

Browse archives

Avatar

Re: Best model for selling unique products (used machines)

by
InitOS GmbH, Pete Hahn
- 24/08/2020 13:14:58
Hi David,

thanks for your suggestion. I didn’t knew the module.

I’m still not really convinced using serial numbers is the right thing
here in general.
Sure it would be for smart phones and stuff like this, but I would
really like to hear opinions about what problems may arise in case of
just using `product.product`.

At first glance this seams to be way more simple. Especially I think
it’s intuitive for the users because in their business mindset they
don’t think of _machines_ and _instances of machines_ but just a
specific _machine_ from their list.

Our use case to me looks more like being the base machine a
`product.template` and the unique machine a `product.product`.

However I wouldn’t use all the `product.attribute` machinery  for this,
of course.

I hope to hear more opinions from the list about this.

Thanks. Regards, Peter



Am 21.08.20 um 17:02 schrieb David Beal:

> Hi Peter,

> Consider these modules

> https://github.com/OCA/sale-workflow/tree/12.0/sale_order_lot_selection [1]  https://github.com/OCA/sale-workflow/tree/12.0/sale_order_lot_generator [2]

> and in pending migration

> https://github.com/OCA/sale-workflow/pull/1144 [3]

> Note that sale_order_lot_selection in v12 and v13 are different, consider the v12 one

> Best regards

> 

> David BEAL - akretion.com [4]  Consultant

> Odoo Intégration / Développement

> Le ven. 21 août 2020 à 15:36, Peter Hahn < peter.hahn@initos.com [5] > a écrit :

> Hello,

> I have a hard time to decide which Odoo model to use for selling unique

> products.

> The products are used machines. So in general one could think of a

> generic product with manufacturer and model and a certain instance of it.

> But since these are used items, they come with a lot of customizations

> and other instance specific attributes like operation hours etc.

> So it’s more like the product == instance.

> We thought about using `product.product` for the brand/model and

> `stock.production.lot` for the instance, but after some research in the

> odoo v12 code I'm not sure if this is really the best option.

> To me it looks like `stock.production.lot` is more about tractability of

> instance of generic products **after** they have been sold, since

> `stock.production.lot` is very tightly tied to stock operations.

> We need to have product instances already during the whole CRM, Quote,

> SaleOrder process. I don’t see how to easily put `stock.production.lot`

> on `sale.order.lines`.

> The other option would be just going for `product.product` and assume

> product == product instance.

> I’m not really sure about benefits/drawbacks or maybe other/better

> approaches.

> 

> Please give me your opinions about what model is best to use as a base

> for selling unique items in odoo.

> Thanks. Regards, Peter

> 

> _______________________________________________

> Mailing-List: https://odoo-community.org/groups/contributors-15 [6]

> Post to: mailto: contributors@odoo-community.org [7]

> Unsubscribe: https://odoo-community.org/groups?unsubscribe [8]

> 

> 

> _______________________________________________

> Mailing-List: https://odoo-community.org/groups/contributors-15 [9]

> Post to: mailto:contributors@odoo-community.org

> Unsubscribe: https://odoo-community.org/groups?unsubscribe [10]

> 

> 

> 

> [1] https://github.com/OCA/sale-workflow/tree/12.0/sale_order_lot_selection

> [2] https://github.com/OCA/sale-workflow/tree/12.0/sale_order_lot_generator

> [3] https://github.com/OCA/sale-workflow/pull/1144

> [4] http://akretion.com

> [5] mailto:peter.hahn@initos.com

> [6] https://odoo-community.org/groups/contributors-15

> [7] mailto:contributors@odoo-community.org

> [8] https://odoo-community.org/groups?unsubscribe

> [9] https://odoo-community.org/groups/contributors-15

> [10] https://odoo-community.org/groups?unsubscribe

> 

Reference