main #7

Merged
admin merged 620 commits from main into dev 2026-03-29 13:03:25 +00:00
Showing only changes of commit 23d9d88492 - Show all commits

View File

@@ -3385,7 +3385,7 @@ class ContractDetail(ModelView):
if lqt and lqt.lot_p and getattr(lqt.lot_p.line.purchase, 'crop', None):
return lqt.lot_p.line.purchase.crop.id
if lqt and lqt.lot_s and getattr(lqt.lot_s.sale_line.sale, 'crop', None):
return lqt.lot_s.line.sale.crop.id
return lqt.lot_s.sale_line.sale.crop.id
@classmethod
def default_currency(cls):