You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
1.3 KiB
29 lines
1.3 KiB
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<!-- Added a server action in the model product template-->
|
|
<record id="action_product_template_dalle" model="ir.actions.server">
|
|
<field name="name">Generate Image Using Dall-E</field>
|
|
<field name="model_id" ref="product.model_product_template"/>
|
|
<field name="binding_model_id"
|
|
ref="product.model_product_template"/>
|
|
<field name="binding_view_types">list,form</field>
|
|
<field name="state">code</field>
|
|
<field name="code">action =records.action_open_image_prompt_wizard()
|
|
</field>
|
|
</record>
|
|
|
|
<!--Added smart button in the product.template form-->
|
|
<record id="product_template_only_form_view" model="ir.ui.view">
|
|
<field name="name">product.template.view.form.inherit.openai.product.images</field>
|
|
<field name="inherit_id" ref="product.product_template_only_form_view"/>
|
|
<field name="model">product.template</field>
|
|
<field name="arch" type="xml">
|
|
<div name="button_box" position="inside">
|
|
<button name="get_dall_e_image" type="object"
|
|
class="oe_stat_button" icon="fa-id-card-o"
|
|
string="Dall E Image">
|
|
</button>
|
|
</div>
|
|
</field>
|
|
</record>
|
|
</odoo>
|
|
|