45 lines
1.8 KiB
XML
45 lines
1.8 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<record id="product_product_tree_view" model="ir.ui.view">
|
|
<field name="name">product.product.tree.inherit.companies</field>
|
|
<field name="model">product.product</field>
|
|
<field name="inherit_id" ref="product.product_product_tree_view"/>
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//field[@name='company_id']" position="attributes">
|
|
<attribute name="invisible">1</attribute>
|
|
</xpath>
|
|
<xpath expr="//field[@name='company_id']" position="after">
|
|
<field
|
|
name="company_ids"
|
|
options="{'no_create': True}"
|
|
groups="base.group_multi_company"
|
|
optional="hide"
|
|
widget="many2many_tags"
|
|
/>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="action_product_variant_bulk_upload" model="ir.actions.act_window">
|
|
<field name="name">Bulk Upload Images</field>
|
|
<field name="res_model">product.variant.bulk.upload.wizard</field>
|
|
<field name="view_mode">form</field>
|
|
<field name="target">new</field>
|
|
</record>
|
|
|
|
<record id="action_product_upload_images" model="ir.actions.server">
|
|
<field name="name">Upload images</field>
|
|
<field name="model_id" ref="product.model_product_product"/>
|
|
<field name="binding_model_id" ref="product.model_product_product"/>
|
|
<field name="state">code</field>
|
|
<field name="code">
|
|
action = {
|
|
"type": "ir.actions.act_window",
|
|
"res_model": "product.variant.bulk.upload.wizard",
|
|
"view_mode": "form",
|
|
"target": "new",
|
|
"context": {"active_ids": records.ids},
|
|
}
|
|
</field>
|
|
</record>
|
|
</odoo>
|