Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1988 Представления

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!


Аватар
Отменить
Related Posts Ответы Просмотры Активность
1
окт. 22
5138
1
мая 22
3122
2
мар. 22
4048
1
янв. 16
7187
4
нояб. 24
13145