Browse Source

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

master
Harald Welte 7 months ago
parent
commit
85aae33280
  1. 4
      models/shipcloud_shipping_service.py

4
models/shipcloud_shipping_service.py

@ -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')

Loading…
Cancel
Save