diff options
| author | Azka Nathan <darizkyfaz@gmail.com> | 2025-06-26 11:20:25 +0700 |
|---|---|---|
| committer | Azka Nathan <darizkyfaz@gmail.com> | 2025-06-26 11:20:25 +0700 |
| commit | 87f6bc09d6fe91526116301375efc544f31be625 (patch) | |
| tree | ff6fb5cb6c321ac1b89ac0ad20f8a83947bde8a6 /fixco_custom/views | |
| parent | c086f5e20505edbcc1d7769562393fb2e7e4b5c6 (diff) | |
upload_type and validation import excel
Diffstat (limited to 'fixco_custom/views')
| -rwxr-xr-x | fixco_custom/views/detail_order.xml | 4 | ||||
| -rw-r--r-- | fixco_custom/views/upload_ginee.xml | 10 |
2 files changed, 8 insertions, 6 deletions
diff --git a/fixco_custom/views/detail_order.xml b/fixco_custom/views/detail_order.xml index beb6d5c..586e10d 100755 --- a/fixco_custom/views/detail_order.xml +++ b/fixco_custom/views/detail_order.xml @@ -27,12 +27,12 @@ <button name="execute_queue" string="Create Detail Order" type="object" - attrs="{'invisible': [('detail_order', '!=', False)]}" + attrs="{'invisible': [('detail_order', '=', False)]}" /> <button name="execute_queue_detail" string="Create SO" type="object" - attrs="{'invisible': [('sale_id', '!=', False)]}" + attrs="{'invisible': [('sale_id', '=', False)]}" /> </header> <sheet> 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"> |
