Fix
This commit is contained in:
parent
fd618eb43e
commit
a92bc79e53
File diff suppressed because it is too large
Load Diff
9
crop.py
9
crop.py
|
@ -1122,10 +1122,12 @@ class CropActivitiesReport(Report):
|
|||
records = []
|
||||
crops = Crop.search(dom)
|
||||
for crop in crops:
|
||||
beds = []
|
||||
lots_beds = []
|
||||
for lot in crop.lots:
|
||||
beds = '-'.join(bed.bed.number for bed in lot.beds)
|
||||
lots_beds = f'{lot.lot.number} ({beds})'
|
||||
lots_beds.append((lot.lot.number, beds))
|
||||
|
||||
# lots_beds = f'{lot.lot.number} ({beds})'
|
||||
record = {
|
||||
'number': crop.number,
|
||||
'variety': crop.variety.product.name,
|
||||
|
@ -1135,7 +1137,8 @@ class CropActivitiesReport(Report):
|
|||
'activities': [],
|
||||
}
|
||||
variety_acts = {
|
||||
act.kind.id: act.time_of_realization for act in crop.variety.activities
|
||||
act.kind.id: act.time_of_realization
|
||||
for act in crop.variety.activities
|
||||
}
|
||||
add_line = True
|
||||
_days = copy.deepcopy(days)
|
||||
|
|
Loading…
Reference in New Issue