diff options
| author | Mqdd <ahmadmiqdad27@gmail.com> | 2025-11-20 13:46:51 +0700 |
|---|---|---|
| committer | Mqdd <ahmadmiqdad27@gmail.com> | 2025-11-20 13:46:51 +0700 |
| commit | 8c2a2f3c767f40af23d6ae749d604f55acf6c924 (patch) | |
| tree | 0cc0f660b37a7678527a87ead694a4bf4482e672 | |
| parent | 7d90c2ae207338da07833a30324f1b07ece30e35 (diff) | |
<Miqdad> export to excel
| -rw-r--r-- | indoteknik_custom/views/sourcing.xml | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/indoteknik_custom/views/sourcing.xml b/indoteknik_custom/views/sourcing.xml index e5d239cb..ac952ae3 100644 --- a/indoteknik_custom/views/sourcing.xml +++ b/indoteknik_custom/views/sourcing.xml @@ -76,6 +76,32 @@ </field> </record> +<record id="view_sjo_line_export_excel_wizard_form" model="ir.ui.view"> + <field name="name">sjo.line.export.excel.wizard.form</field> + <field name="model">sourcing.job.order.line.export.wizard</field> + <field name="arch" type="xml"> + <form string="Export SJO Line"> + <group> + <field name="order_id"/> + </group> + <footer> + <button name="action_export" type="object" string="Export Excel" class="btn-primary"/> + <button string="Cancel" class="btn-secondary" special="cancel"/> + </footer> + <separator string="Download File"/> + <field name="filename" invisible="1"/> + <field name="file" filename="filename"/> + </form> + </field> +</record> + +<record id="action_sjo_line_export_excel_wizard" model="ir.actions.act_window"> + <field name="name">Export SJO Excel</field> + <field name="res_model">sourcing.job.order.line.export.wizard</field> + <field name="view_mode">form</field> + <field name="target">new</field> +</record> + <record id="view_wizard_export_sjo_to_so_form" model="ir.ui.view"> <field name="name">wizard.export.sjo.to.so.form</field> @@ -104,6 +130,8 @@ <form string="Sourcing Job Order"> <header> <button name="%(action_sjo_line_import_excel_wizard)d" string="Import Excel" type="action" class="btn-secondary" icon="fa-upload" context="{'default_order_id': active_id}"/> +<button name="%(indoteknik_custom.action_sjo_line_export_excel_wizard)d" string="Export Excel" type="action" icon="fa-download" context="{'default_order_id': active_id}" class="btn-secondary"/> + <button name="action_take" string="Take" |
