diff options
| author | Azka Nathan <darizkyfaz@gmail.com> | 2026-01-28 15:27:31 +0700 |
|---|---|---|
| committer | Azka Nathan <darizkyfaz@gmail.com> | 2026-01-28 15:27:31 +0700 |
| commit | e9b9be0af8edef9b3ae26143c1783870e099d262 (patch) | |
| tree | 79b0e90f2e7b9f5bc9f43aa9aab4ef5b4f84852c /fixco_custom/models/stock_picking.py | |
| parent | 7fd85b36543e6f1cc9e55a90bbee2743ca129d5f (diff) | |
| parent | 87abb539133d4f97c8a9cb9708a472c00a64e069 (diff) | |
Merge branch 'main' of bitbucket.org:altafixco/fixco-addons
pull
Diffstat (limited to 'fixco_custom/models/stock_picking.py')
| -rwxr-xr-x | fixco_custom/models/stock_picking.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/fixco_custom/models/stock_picking.py b/fixco_custom/models/stock_picking.py index 56bb913..04d9504 100755 --- a/fixco_custom/models/stock_picking.py +++ b/fixco_custom/models/stock_picking.py @@ -67,6 +67,12 @@ class StockPicking(models.Model): type_sku = fields.Selection([('single', 'Single SKU'), ('multi', 'Multi SKU')], string='Type SKU') list_product = fields.Char(string='List Product') is_dispatched = fields.Boolean(string='Is Dispatched', default=False, compute='_compute_is_dispatched', readonly=True) + date_canceled = fields.Datetime(string='Date Canceled', tracking=True) + + def action_cancel(self): + for picking in self: + picking.date_canceled = fields.Datetime.now() + return super(StockPicking, self).action_cancel() def check_qty_bundling_product(self): for line in self.move_ids_without_package: |
