[IMP] delivery_hibou: Added new field for commercial_partner_id and improved domain to show Shipping Accounts accordingly

This commit is contained in:
Kaylie Kipe
2021-10-12 14:19:40 -07:00
parent 33b7dbf91e
commit 8f5fad4e3e
2 changed files with 3 additions and 1 deletions

View File

@@ -11,6 +11,7 @@ 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.')
commercial_partner_id = fields.Many2one('res.partner', related='partner_id.commercial_partner_id')
@api.depends('move_lines.priority', 'carrier_id')
def _compute_priority(self):