Ir al contenido
Menú
Se marcó esta pregunta
1742 Vistas

Odoo version: 15 Community Edition

I use a model inherited from hr.employee to account issuing/withdrawal of some material assets to/from employees. I've been using a tree view embedded to one hr.employee page to be able to add/remove assets.

Now I need to extend the functionality so that users are able to specify date and reason of issuing/withdrawal. For this purpose it would be nice to open a wizard with necessary fields on Create/Delete button click and add/delete record(s) only once all required fields  of the wizard are filled. Eventually the sequence I'm talking about should look as follow:

- Create/Delete button pressed

- The wizard appears and all fields are filled

- Confirm button in the wizard pressed

- Data from wizard's fields are saved into the separate model (let's call it asset.history)

- Record(s) from hr.employee model added/deleted respectively


I spent hours tinkering with this and it looks like Odoo doesn't provide any turnkey solution to make my scenario possible.

I would appreciate any thoughts, advice or experience you could share in this regard. 

Thanks a lot!


Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
1
oct 22
4647
1
may 22
2776
2
mar 22
3645
1
ene 16
6833
4
nov 24
12076