forked from erp-dev/erp
feat: log formatted
This commit is contained in:
@@ -389,6 +389,7 @@ class PrintingJobAdmin(admin.ModelAdmin):
|
||||
'unit': obj.unit,
|
||||
'size': obj.size,
|
||||
'pieces': obj.pieces,
|
||||
'sub_id': obj.sub_id,
|
||||
'description': obj.description,
|
||||
}
|
||||
created_obj = PrintingJobService.create_printing_job(data, request.user)
|
||||
@@ -404,6 +405,7 @@ class PrintingJobAdmin(admin.ModelAdmin):
|
||||
'unit': obj.unit,
|
||||
'size': obj.size,
|
||||
'pieces': obj.pieces,
|
||||
'sub_id': obj.sub_id,
|
||||
'description': obj.description,
|
||||
}
|
||||
success, message, updated_obj = PrintingJobService.update_printing_job(
|
||||
|
||||
16
printing/migrations/0039_printingjob_sub_id.py
Normal file
16
printing/migrations/0039_printingjob_sub_id.py
Normal file
@@ -0,0 +1,16 @@
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('printing', '0038_printingorderexternalsnapshotsyncaudit'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='printingjob',
|
||||
name='sub_id',
|
||||
field=models.IntegerField(blank=True, null=True, verbose_name='子编号'),
|
||||
),
|
||||
]
|
||||
@@ -482,6 +482,11 @@ class PrintingJob(ModelBase):
|
||||
verbose_name='克隆来源任务ID',
|
||||
help_text='前端克隆概念:记录本任务由哪个任务复制而来(无外键约束)',
|
||||
)
|
||||
sub_id = models.IntegerField(
|
||||
null=True,
|
||||
blank=True,
|
||||
verbose_name='子编号',
|
||||
)
|
||||
business_object = models.OneToOneField(
|
||||
stateflow_models.BusinessObject,
|
||||
on_delete=models.SET_NULL,
|
||||
|
||||
Reference in New Issue
Block a user