summaryrefslogtreecommitdiff
path: root/indoteknik_custom/views/sourcing.xml
diff options
context:
space:
mode:
authorHafidBuroiroh <hafidburoiroh09@gmail.com>2026-03-11 20:08:23 +0700
committerHafidBuroiroh <hafidburoiroh09@gmail.com>2026-03-11 20:08:23 +0700
commit4a200ee4e0caf44e78273215b12c3655655f4273 (patch)
tree8b3ace9f421088fc6e32bc38dafd4877792ee275 /indoteknik_custom/views/sourcing.xml
parentf58fe20f96995228651a5a1a09c8c17a23e13838 (diff)
<hafid> naekin sorcing job
Diffstat (limited to 'indoteknik_custom/views/sourcing.xml')
-rw-r--r--indoteknik_custom/views/sourcing.xml46
1 files changed, 30 insertions, 16 deletions
diff --git a/indoteknik_custom/views/sourcing.xml b/indoteknik_custom/views/sourcing.xml
index 006817cf..cd1de5a4 100644
--- a/indoteknik_custom/views/sourcing.xml
+++ b/indoteknik_custom/views/sourcing.xml
@@ -102,12 +102,6 @@
groups="indoteknik_custom.group_role_merchandiser"
attrs="{'invisible': [('state', 'in', ['cancel', 'done'])]}"/>
- <button name="action_open_export_wizard"
- type="object"
- string="Input to SO"
- class="btn-primary"
- attrs="{'invisible':['|', ('state','not in',('done','partial')), ('so_id', '=', False)]}"/>
-
<field name="state" widget="statusbar"
statusbar_visible="draft,taken,partial,done,cancel" attrs="{'invisible': [('state', '!=', 'cancel')]}"/>
@@ -144,7 +138,7 @@
<field name="eta_sales"/>
<field name="eta_complete" readonly="1"/>
<field name="has_price_in_lines" invisible="1"/>
- <field name="so_id" readonly="1"/>
+ <field name="so_id"/>
</group>
<group>
<field name="create_uid" readonly="1" widget="many2one_avatar_user"/>
@@ -178,15 +172,26 @@
</tree>
<form string="Product Line">
<group>
+ <field name="brand" required="1"/>
+ <small style="margin-top:-1.4rem; display:block;">*Masukkan merek produk. Jika tidak diketahui, dapat diisi dengan "No Brand".</small>
+
+ <field name="product_name" required="1"/>
+ <small style="margin-top:-1.4rem; display:block;">*Isi nama produk secara jelas untuk mempermudah proses identifikasi saat sourcing.</small>
- <field name="brand" placeholder="Jika tidak mengetahui Brandnya isi saja *No Brand" required="1"/>
- <field name="product_name"/>
<field name="descriptions" required="1"/>
+
<field name="quantity"/>
+ <small style="margin-top:-1.4rem; display:block;">*Jumlah unit produk yang dibutuhkan.</small>
+
<field name="note"/>
+ <small style="margin-top:-1.4rem; display:block;">*Catatan tambahan yang dapat membantu proses sourcing.</small>
+
<field name="budget"/>
- <field name="attachment_type"/>
+ <small style="margin-top:-1.4rem; display:block;">*Perkiraan atau batas anggaran harga yang diharapkan.</small>
+ <field name="attachment_type"/>
+ <small style="margin-top:-1.4rem; display:block;">*Lampiran referensi seperti gambar produk, katalog, atau dokumen spesifikasi yang mendukung proses sourcing.</small>
+
<field name="product_attachment_pdf"
filename="product_attachment_filename"
attrs="{'invisible':[('attachment_type','!=','pdf')]}"/>
@@ -613,10 +618,10 @@
<separator string="Sales Input"/>
<field name="create_uid" widget="many2one_avatar_user" readonly="1"/>
<field name="show_salesperson" widget="many2one_avatar_user" readonly="1"/>
- <field name="so_id" readonly="1"/>
+ <field name="so_id"/>
<field name="so_state" widget="badge" readonly="1"
decoration-success="so_state == 'sale'"
- decoration-warning="so_state == 'draft'"
+ decoration-info="so_state == 'draft'"
decoration-danger="so_state == 'cancel'"/>
<field name="brand" readonly="1"/>
<field name="product_name" readonly="1"/>
@@ -674,7 +679,12 @@
<field name="res_model">sourcing.job.order.line</field>
<field name="view_mode">tree,form</field>
<field name="search_view_id" ref="view_sourcing_job_order_line_search"/>
- <field name="context">{'search_default_untaken': 1, 'search_default_my_job': 1}</field>
+ <field name="context">{
+ 'search_default_untaken': 1,
+ 'search_default_my_job': 1,
+ 'order': "CASE state WHEN 'draft' THEN 1 WHEN 'sourcing' THEN 2 WHEN 'sent' THEN 3 WHEN 'approve' THEN 4 WHEN 'cancel' THEN 5 END, id desc"
+ }
+ </field>
<field name="groups_id" eval="[(4, ref('indoteknik_custom.group_role_merchandiser'))]"/>
</record>
@@ -731,9 +741,14 @@
decoration-warning="state in ('sourcing','sent')"
decoration-success="state == 'approve'"
decoration-danger="state == 'cancel'">
-
- <field name="so_id"/>
<field name="order_id"/>
+ <field name="md_person_ids" widget="many2one_avatar_user" readonly="1"/>
+ <field name="so_id"/>
+ <field name="show_salesperson" widget="many2one_avatar_user"/>
+ <field name="so_state" widget="badge"
+ decoration-success="so_state == 'sale'"
+ decoration-info="so_state == 'draft'"
+ decoration-danger="so_state == 'cancel'"/>
<field name="code"/>
<field name="brand"/>
<field name="product_name"/>
@@ -741,7 +756,6 @@
<field name="price"/>
<field name="vendor_id"/>
<field name="subtotal"/>
- <field name="show_salesperson" widget="many2one_avatar_user"/>
<field name="state"
widget="badge"