mirror of
https://github.com/zhtyyx/ioe.git
synced 2026-06-03 21:02:59 +08:00
1) SaleItemForm.clean 中 product.price * 0.5 是 Decimal * float,会抛
TypeError,导致添加/编辑销售单商品时崩溃。改用 Decimal('0.5')/Decimal('2')。
2) 备份/恢复写 LogEntry 时用 content_type_id=0,0 号 ContentType 不存在,
违反外键约束抛 IntegrityError;且该调用在 try 内,失败会连带删掉刚生成的
备份目录。改为 content_type_id=None(该字段可空)。
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
||
|---|---|---|
| .. | ||
| __init__.py | ||
| batch.py | ||
| inventory_check_forms.py | ||
| inventory_forms.py | ||
| member_forms.py | ||
| product_forms.py | ||
| report_forms.py | ||
| sales_forms.py | ||
| system_forms.py | ||