diff options
| author | Stephan Christianus <stephanchrst@gmail.com> | 2022-10-24 10:08:41 +0000 |
|---|---|---|
| committer | Stephan Christianus <stephanchrst@gmail.com> | 2022-10-24 10:08:41 +0000 |
| commit | e80ad39476fcd60583e166032fe526b77a73323a (patch) | |
| tree | 310eaa29f5982767e6685c2ca263f24fba72645e /indoteknik_custom/models/stock_picking.py | |
| parent | 1934b5ca55840deb2a4369ef6ab0affd86e2ba8f (diff) | |
| parent | da1ba5223456e4c39d11a5af67968dda6d569c6b (diff) | |
Merged in development (pull request #10)
Development
Diffstat (limited to 'indoteknik_custom/models/stock_picking.py')
| -rw-r--r-- | indoteknik_custom/models/stock_picking.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/indoteknik_custom/models/stock_picking.py b/indoteknik_custom/models/stock_picking.py index 70e9b68a..c1a3f12d 100644 --- a/indoteknik_custom/models/stock_picking.py +++ b/indoteknik_custom/models/stock_picking.py @@ -14,6 +14,10 @@ class StockPicking(models.Model): summary_qty_operation = fields.Float('Total Qty Operation', compute='_compute_summary_qty') count_line_detail = fields.Float('Total Item Detail', compute='_compute_summary_qty') count_line_operation = fields.Float('Total Item Operation', compute='_compute_summary_qty') + real_shipping_id = fields.Many2one( + 'res.partner', string='Real Delivery Address', required=True, + domain="['|', ('company_id', '=', False), ('company_id', '=', company_id)]", + help="Dipakai untuk alamat tempel") # Delivery Order driver_departure_date = fields.Datetime( @@ -48,6 +52,11 @@ class StockPicking(models.Model): ('approved', 'Approved'), ], string='Approval Status', readonly=True, copy=False, index=True, tracking=3) + def action_assign(self): + res = super(StockPicking, self).action_assign() + self.real_shipping_id = self.sale_id.real_shipping_id + return res + def ask_approval(self): if self.env.user.is_accounting: raise UserError("Bisa langsung Validate") |
