同步数据库
This commit is contained in:
parent
f02e5504f5
commit
fcac1d1d78
|
@ -35,5 +35,3 @@ class Employee(CommonAModel):
|
|||
|
||||
def __str__(self):
|
||||
return self.name
|
||||
|
||||
|
||||
|
|
|
@ -0,0 +1,25 @@
|
|||
# Generated by Django 3.2.9 on 2022-01-13 01:32
|
||||
|
||||
from django.db import migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('inm', '0024_auto_20211227_0948'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RemoveField(
|
||||
model_name='iproduct',
|
||||
name='is_mtested',
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='iproduct',
|
||||
name='is_mtestok',
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='iproduct',
|
||||
name='remark_mtest',
|
||||
),
|
||||
]
|
|
@ -166,7 +166,7 @@ class IProductViewSet(ListModelMixin, GenericViewSet):
|
|||
半成品库存表
|
||||
"""
|
||||
perms_map = {'*': '*'}
|
||||
queryset = IProduct.objects.select_related('material', 'warehouse', 'wproduct__subproduction_plan__production_plan__order').filter(is_saled=False)
|
||||
queryset = IProduct.objects.select_related('material', 'warehouse', 'wproduct__subproduction_plan__production_plan__order')
|
||||
serializer_class = IProductListSerializer
|
||||
filterset_class = IProductFilterSet
|
||||
search_fields = []
|
||||
|
|
|
@ -0,0 +1,34 @@
|
|||
# Generated by Django 3.2.9 on 2022-01-13 01:32
|
||||
|
||||
from django.db import migrations, models
|
||||
import django.db.models.deletion
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('wpm', '0045_auto_20220107_0917'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='wproduct',
|
||||
name='last_test_result',
|
||||
field=models.BooleanField(blank=True, null=True, verbose_name='最后一次检验结果'),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='operationmaterial',
|
||||
name='operation',
|
||||
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='om_operation', to='wpm.operation', verbose_name='关联的生产操作'),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='wproduct',
|
||||
name='child',
|
||||
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='wproduct_child', to='wpm.wproduct'),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='wproductflow',
|
||||
name='child',
|
||||
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='wproduct_child', to='wpm.wproductflow'),
|
||||
),
|
||||
]
|
|
@ -107,6 +107,7 @@ class WProduct(CommonAModel):
|
|||
is_mtested = models.BooleanField('是否军检', default=False)
|
||||
is_mtestok = models.BooleanField('是否军检合格', null=True, blank=True)
|
||||
remark_mtest = models.TextField('军检备注', null=True, blank=True)
|
||||
last_test_result = models.BooleanField('最后一次检验结果', null=True, blank=True)
|
||||
|
||||
@property
|
||||
def last_process_test(self):
|
||||
|
|
Loading…
Reference in New Issue