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.
 
 
 
 
 

40 lines
1.7 KiB

<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<!--Tree view of Amazon Bucket lists-->
<record id="amazon_bucket_view_tree" model="ir.ui.view">
<field name="name">amazon.bucket.view.tree</field>
<field name="model">amazon.bucket</field>
<field name="arch" type="xml">
<tree>
<field name="bucket_name"/>
</tree>
</field>
</record>
<!--Form View of Amazon Bucket-->
<record id="amazon_bucket_view_form" model="ir.ui.view">
<field name="name">amazon.bucket.view.form</field>
<field name="model">amazon.bucket</field>
<field name="arch" type="xml">
<form>
<header>
<button name="action_s3bucket" string="Create Bucket" type="object" class="oe_highlight"/>
<button name="action_s3bucket_push" string="Push To Bucket" type="object" class="oe_highlight"/>
<field name="state" widget="statusbar"/>
</header>
<sheet>
<group>
<field name="bucket_name"/>
<field name="file_path" attrs="{'invisible': [('state', 'in', ('create_bucket'))]}"/>
<field name="s3_uri" attrs="{'invisible': [('state', 'in', ('create_bucket', 'push_bucket'))]}"/>
</group>
</sheet>
</form>
</field>
</record>
<!--Window action amazon bucket creation-->
<record id="action_amazon_bucket" model="ir.actions.act_window">
<field name="name">Bucket</field>
<field name="res_model">amazon.bucket</field>
<field name="view_mode">tree,form</field>
</record>
</odoo>