This question has been flagged

Hi All,

Currently i am running into the issue that i don't know how to get the 'duplicate' function enabled in the tree view of the product_template model in Odoo 11. I know it is available in the product form view. 

I hope someone can lead me into the right direction or how i can make my own copy function from the tree view.

I already tried to add the following action, but it won't show in the action menu:

<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<record id="action_duplicate_product" model="ir.actions.act_window">
<field name="name">Duplicate</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">product.template</field>
<field name="view_mode">tree,form</field>
<field name="view_type">form</field>
<field name="target">new</field>
<field name="context">{'default_product_tmpl_id': active_id}</field>
</record>
</odoo>

Kind regards.

 

Avatar
Discard