summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xindoteknik_custom/models/sale_order.py29
1 files changed, 15 insertions, 14 deletions
diff --git a/indoteknik_custom/models/sale_order.py b/indoteknik_custom/models/sale_order.py
index a5e2f7c4..5c8f34c6 100755
--- a/indoteknik_custom/models/sale_order.py
+++ b/indoteknik_custom/models/sale_order.py
@@ -399,20 +399,21 @@ class SaleOrder(models.Model):
)
def action_open_partial_delivery_wizard(self):
- self.ensure_one()
- pickings = self.picking_ids.filtered(lambda p: p.state not in ['done', 'cancel'] and p.name and 'BU/PICK/' in p.name)
- return {
- 'type': 'ir.actions.act_window',
- 'name': 'Partial Delivery',
- 'res_model': 'partial.delivery.wizard',
- 'view_mode': 'form',
- 'target': 'new',
- 'context': {
- 'default_sale_id': self.id,
- # kasih langsung list of int biar ga ribet di wizard
- 'default_picking_ids': pickings.ids,
- }
- }
+ raise UserError("Fitur ini sedang dalam pengembangan")
+ # self.ensure_one()
+ # pickings = self.picking_ids.filtered(lambda p: p.state not in ['done', 'cancel'] and p.name and 'BU/PICK/' in p.name)
+ # return {
+ # 'type': 'ir.actions.act_window',
+ # 'name': 'Partial Delivery',
+ # 'res_model': 'partial.delivery.wizard',
+ # 'view_mode': 'form',
+ # 'target': 'new',
+ # 'context': {
+ # 'default_sale_id': self.id,
+ # # kasih langsung list of int biar ga ribet di wizard
+ # 'default_picking_ids': pickings.ids,
+ # }
+ # }
@api.depends('partner_id.is_cbd_locked')