summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models/sale_order.py
diff options
context:
space:
mode:
authorFIN-IT_AndriFP <it@fixcomart.co.id>2025-10-25 13:01:34 +0700
committerFIN-IT_AndriFP <it@fixcomart.co.id>2025-10-25 13:01:34 +0700
commit526fe78f8cc9ccfad7a8d8664216c2afea55d1bd (patch)
tree516284f2948cc53360013f1db81d916af2bfa64e /indoteknik_custom/models/sale_order.py
parente7264cf6995755f3a55e0d1eb9059354a56c552f (diff)
parentbbacaaa7fc8526a2831f9cdd890e25fb68f410ff (diff)
Merge branch 'odoo-backup' of https://bitbucket.org/altafixco/indoteknik-addons into pum-v3
Diffstat (limited to 'indoteknik_custom/models/sale_order.py')
-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')