Skip to Content
Menu
This question has been flagged
1 Reply
3922 Views

Hi

filling the alternative product field is simple. However when one needs to do this for a large series of products it is non productive and prone to errors.

I am thinking of an action button/menu item which could do the task:

select 2 or 3 or more products (if it makes sense for the operations) from a product (filtered) tree view.

Then select the "filling button" which will automatically fill the alternative product field with each other product from the selected list.

Is there an app already available for this? I did not find one thru searching within this forum

In case NOT, how to implement it?


Avatar
Discard
Best Answer

you can define an action for product template and select multiple product and do the trigger action from action button container. this action should return a wizard to fill your details and update it with a button. To create such action buttons i can give you an example.

<act_window id="change_password_wizard_action"
name="Change Password"
src_model="res.users"
res_model="change.password.wizard"
view_type="form" view_mode="form"
key2="client_action_multi" target="new"
groups="base.group_erp_manager"/>

This is an action button to change the password. A wizard feed new value and update it. To make multiple reocrds, just give the attribute multi="True"

Avatar
Discard
Author

@Hilar AK thanks for the example; I need to go further with the button filling each of the product.product alternative_product field with the names of the 2 or 3 others found in the selection list. As I am not a developper can you show me how to develop that part of the code?

Related Posts Replies Views Activity
1
May 21
5505
5
Aug 16
4626
1
Jul 15
6808
0
Oct 24
113
2
Sep 24
232