[IMP] delivery_hibou: automatic signature required fields and calculations based on value.

This commit is contained in:
Jared Kipe
2021-10-25 10:08:37 -07:00
parent 5f00d694e0
commit 5ac761a035
6 changed files with 42 additions and 4 deletions

View File

@@ -34,6 +34,12 @@ class StockPicking(models.Model):
('no', 'No'),
], string='Require Insurance', default='auto',
help='If your carrier supports it, auto should be calculated off of the "Automatic Insurance Value" field.')
require_signature = fields.Selection([
('auto', 'Automatic'),
('yes', 'Yes'),
('no', 'No'),
], string='Require Signature', default='auto',
help='If your carrier supports it, auto should be calculated off of the "Automatic Signature Required Value" field.')
package_carrier_tracking_ref = fields.Char(string='Package Tracking Numbers', compute='_compute_package_carrier_tracking_ref')
@api.depends('package_ids.carrier_tracking_ref')