changes
This commit is contained in:
@@ -33,6 +33,11 @@ class FpProcessNode(models.Model):
|
||||
_parent_name = 'parent_id'
|
||||
_order = 'parent_path, sequence, id'
|
||||
_rec_name = 'display_name'
|
||||
# Search by both name and code in m2o autocomplete pickers (e.g. the
|
||||
# Process / Recipe field on the direct-order wizard line). Without
|
||||
# this, typing the recipe code (e.g. "ENP-STEEL-BASIC") didn't match
|
||||
# because display_name composes from `name` alone for recipe roots.
|
||||
_rec_names_search = ['name', 'code']
|
||||
|
||||
# ---- Identity & hierarchy ------------------------------------------------
|
||||
|
||||
|
||||
Reference in New Issue
Block a user