summaryrefslogtreecommitdiff
path: root/fixco_custom/views/upload_ginee.xml
diff options
context:
space:
mode:
Diffstat (limited to 'fixco_custom/views/upload_ginee.xml')
-rw-r--r--fixco_custom/views/upload_ginee.xml10
1 files changed, 6 insertions, 4 deletions
diff --git a/fixco_custom/views/upload_ginee.xml b/fixco_custom/views/upload_ginee.xml
index ec8aae4..de99c3d 100644
--- a/fixco_custom/views/upload_ginee.xml
+++ b/fixco_custom/views/upload_ginee.xml
@@ -9,6 +9,7 @@
<field name="number"/>
<field name="date_upload"/>
<field name="user_id"/>
+ <field name="upload_type"/>
</tree>
</field>
</record>
@@ -19,10 +20,10 @@
<field name="arch" type="xml">
<form string="Upload Ginee">
<header>
- <button name="action_import_excel" string="Import Excel" type="object" class="oe_highlight"/>
- <button name="action_get_order_id" string="Get Order ID" type="object" class="oe_highlight"/>
- <button name="action_create_detail_order" string="Create Detail Order" type="object" class="oe_highlight"/>
- <button name="action_get_order_id_and_create_detail_order" string="Get Order ID And Create Detail Order" type="object" class="oe_highlight"/>
+ <button name="action_import_excel" string="Import Excel" type="object" class="oe_highlight" attrs="{'invisible': [('number', '=', False)]}"/>
+ <button name="action_get_order_id" string="Get Order ID" type="object" class="oe_highlight" attrs="{'invisible': [('number', '=', False)]}"/>
+ <button name="action_create_detail_order" string="Create Detail Order" type="object" class="oe_highlight" attrs="{'invisible': [('number', '=', False)]}"/>
+ <button name="action_get_order_id_and_create_detail_order" string="Get Order ID And Create Detail Order" type="object" class="oe_highlight" attrs="{'invisible': [('number', '=', False)]}"/>
<field name="number" widget="field_no_edit" options="{'no_open': True}"/>
<field name="date_upload"/>
<field name="user_id" widget="field_no_edit" options="{'no_open': True}"/>
@@ -31,6 +32,7 @@
<group>
<field name="excel_file" filename="filename"/>
<field name="filename" invisible="1"/>
+ <field name="upload_type" required="1"/>
</group>
<field name="ginee_lines">
<tree editable="bottom">