优化翻译、排序、权限问题
This commit is contained in:
@@ -229,7 +229,7 @@ class SfLocation(models.Model):
|
||||
class SfShelf(models.Model):
|
||||
_name = 'sf.shelf'
|
||||
_description = '货架'
|
||||
_order = 'name'
|
||||
_order = 'create_date desc'
|
||||
|
||||
name = fields.Char('货架名称', required=True, size=20)
|
||||
barcode = fields.Char('编码', copy=False, size=15, required=True)
|
||||
@@ -310,7 +310,7 @@ class SfShelf(models.Model):
|
||||
class ShelfLocation(models.Model):
|
||||
_name = 'sf.shelf.location'
|
||||
_description = '货位'
|
||||
_order = 'name, id'
|
||||
_order = 'create_date desc'
|
||||
|
||||
# current_location_id = fields.Many2one('sf.shelf.location', string='当前位置')
|
||||
# # 目的位置
|
||||
|
||||
Reference in New Issue
Block a user