diff options
| author | it-fixcomart <it@fixcomart.co.id> | 2025-07-31 15:53:21 +0700 |
|---|---|---|
| committer | it-fixcomart <it@fixcomart.co.id> | 2025-07-31 15:53:21 +0700 |
| commit | a7cfaa803835caca360474749dbeeda0057d7220 (patch) | |
| tree | efaf6f7aec195c59878174b72df3beeca32bc236 | |
| parent | dddfd3846d37e24c5b52cc98bbe889bd4a958775 (diff) | |
| parent | 4e39c1abf88e2a6a716c681e8184f2031e7612c1 (diff) | |
<hafid> repeat order
| -rw-r--r-- | indoteknik_custom/models/stock_picking.py | 4 | ||||
| -rw-r--r-- | indoteknik_custom/models/tukar_guling.py | 2 | ||||
| -rw-r--r-- | indoteknik_custom/models/tukar_guling_po.py | 2 | ||||
| -rw-r--r-- | indoteknik_custom/views/purchasing_job.xml | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/indoteknik_custom/models/stock_picking.py b/indoteknik_custom/models/stock_picking.py index 825368de..92ca6e39 100644 --- a/indoteknik_custom/models/stock_picking.py +++ b/indoteknik_custom/models/stock_picking.py @@ -1386,9 +1386,9 @@ class StockPicking(models.Model): self.automatic_reserve_product() if self.tukar_guling_id: - self.tukar_guling_id.update_state() + self.tukar_guling_id.update_doc_state() elif self.tukar_guling_po_id: - self.tukar_guling_po_id.update_state() + self.tukar_guling_po_id.update_doc_state() return res diff --git a/indoteknik_custom/models/tukar_guling.py b/indoteknik_custom/models/tukar_guling.py index 5411b17c..3f81393a 100644 --- a/indoteknik_custom/models/tukar_guling.py +++ b/indoteknik_custom/models/tukar_guling.py @@ -462,7 +462,7 @@ class TukarGuling(models.Model): raise UserError("Submit hanya bisa dilakukan dari Draft.") self.state = 'approval_sales' - def update_state(self): + def update_doc_state(self): # OUT tukar guling if self.operations.picking_type_id.id == 29 and self.return_type == 'tukar_guling': total_out = self.env['stock.picking'].search_count([ diff --git a/indoteknik_custom/models/tukar_guling_po.py b/indoteknik_custom/models/tukar_guling_po.py index 23ca1923..92d8c9a6 100644 --- a/indoteknik_custom/models/tukar_guling_po.py +++ b/indoteknik_custom/models/tukar_guling_po.py @@ -419,7 +419,7 @@ class TukarGulingPO(models.Model): else: raise UserError("Status ini tidak bisa di-approve.") - def update_stae(self): + def update_doc_state(self): # bu input rev po if self.operations.picking_type_id.id == 28 and self.return_type == 'revisi_po': prt = self.env['stock.picking'].search([ diff --git a/indoteknik_custom/views/purchasing_job.xml b/indoteknik_custom/views/purchasing_job.xml index e3866d84..2466e7be 100644 --- a/indoteknik_custom/views/purchasing_job.xml +++ b/indoteknik_custom/views/purchasing_job.xml @@ -17,7 +17,7 @@ <field name="status_apo" invisible="1"/> <field name="action"/> <field name="note"/> - <field name="date_po"/> + <field name="date_po" optional="hide"/> <field name="so_number"/> <field name="check_pj" invisible="1"/> <button name="action_open_job_detail" |
