shipcloud: Mark some fields 'readonly' if UI shouldn't write them

This commit is contained in:
Harald Welte 2021-03-15 21:17:54 +01:00
parent 8a448e41e2
commit 85aae33280
1 changed files with 2 additions and 2 deletions

View File

@ -10,8 +10,8 @@ class SMCShippingShipcloud(models.Model):
# extend stock.picking with fields related to shipcloud
class SMCStockPickingShipclodu(models.Model):
_inherit = 'stock.picking'
sc_shipment_id = fields.Char(string='shipcloud shipment ID')
sc_tracking_url = fields.Char(string='shipcloud tracking URL')
sc_shipment_id = fields.Char(string='shipcloud shipment ID', readonly=True)
sc_tracking_url = fields.Char(string='shipcloud tracking URL', readonly=True)
sc_content_desc = fields.Char(string='Description of Contents')