Fix class docstrings.
This commit is contained in:
parent
638927e1ea
commit
d9ea007021
22
plot.py
22
plot.py
|
@ -6,7 +6,7 @@ from trytond.i18n import gettext
|
||||||
from trytond.exceptions import UserError
|
from trytond.exceptions import UserError
|
||||||
|
|
||||||
class Enclosure(ModelSQL, ModelView):
|
class Enclosure(ModelSQL, ModelView):
|
||||||
""" Enclosure """
|
"Enclosure"
|
||||||
__name__ = 'agronomics.enclosure'
|
__name__ = 'agronomics.enclosure'
|
||||||
|
|
||||||
aggregate_sigpac = fields.Numeric('Aggragate Sigpac')
|
aggregate_sigpac = fields.Numeric('Aggragate Sigpac')
|
||||||
|
@ -20,7 +20,7 @@ class Enclosure(ModelSQL, ModelView):
|
||||||
plantation = fields.Many2One('agronomics.plantation', 'Plantation')
|
plantation = fields.Many2One('agronomics.plantation', 'Plantation')
|
||||||
|
|
||||||
class Crop(ModelSQL, ModelView):
|
class Crop(ModelSQL, ModelView):
|
||||||
""" Crop """
|
"Crop"
|
||||||
__name__ = 'agronomics.crop'
|
__name__ = 'agronomics.crop'
|
||||||
|
|
||||||
code = fields.Char('Code', required=True)
|
code = fields.Char('Code', required=True)
|
||||||
|
@ -30,14 +30,14 @@ class Crop(ModelSQL, ModelView):
|
||||||
|
|
||||||
|
|
||||||
class DenominationOrigin(ModelSQL, ModelView):
|
class DenominationOrigin(ModelSQL, ModelView):
|
||||||
""" Denomination Of Origin """
|
"Denomination of Origin"
|
||||||
__name__ = 'agronomics.denomination_of_origin'
|
__name__ = 'agronomics.denomination_of_origin'
|
||||||
|
|
||||||
name = fields.Char('Name', required=True)
|
name = fields.Char('Name', required=True)
|
||||||
|
|
||||||
|
|
||||||
class MaxProductionAllowed(ModelSQL, ModelView):
|
class MaxProductionAllowed(ModelSQL, ModelView):
|
||||||
""" Max Production Allowed """
|
"Max Production Allowed"
|
||||||
__name__ = 'agronomics.max.production.allowed'
|
__name__ = 'agronomics.max.production.allowed'
|
||||||
|
|
||||||
crop = fields.Many2One('agronomics.crop', 'Crop', required=True)
|
crop = fields.Many2One('agronomics.crop', 'Crop', required=True)
|
||||||
|
@ -51,13 +51,14 @@ class MaxProductionAllowed(ModelSQL, ModelView):
|
||||||
|
|
||||||
|
|
||||||
class Irrigation(ModelSQL, ModelView):
|
class Irrigation(ModelSQL, ModelView):
|
||||||
""" Irrigation """
|
"Irrigation"
|
||||||
__name__ = 'agronomics.irrigation'
|
__name__ = 'agronomics.irrigation'
|
||||||
|
|
||||||
name = fields.Char('Name', required=True)
|
name = fields.Char('Name', required=True)
|
||||||
|
|
||||||
|
|
||||||
class Plantation(ModelSQL, ModelView):
|
class Plantation(ModelSQL, ModelView):
|
||||||
""" Plantation """
|
"Plantation"
|
||||||
__name__ = 'agronomics.plantation'
|
__name__ = 'agronomics.plantation'
|
||||||
|
|
||||||
code = fields.Char('Code', required=True)
|
code = fields.Char('Code', required=True)
|
||||||
|
@ -73,14 +74,14 @@ class Plantation(ModelSQL, ModelView):
|
||||||
|
|
||||||
|
|
||||||
class Ecological(ModelSQL, ModelView):
|
class Ecological(ModelSQL, ModelView):
|
||||||
""" Ecological """
|
"Ecological"
|
||||||
__name__ = 'agronomics.ecological'
|
__name__ = 'agronomics.ecological'
|
||||||
|
|
||||||
name = fields.Char('Name', required=True)
|
name = fields.Char('Name', required=True)
|
||||||
|
|
||||||
|
|
||||||
class Parcel(ModelSQL, ModelView):
|
class Parcel(ModelSQL, ModelView):
|
||||||
""" Parcel """
|
"Parcel"
|
||||||
__name__ = 'agronomics.parcel'
|
__name__ = 'agronomics.parcel'
|
||||||
|
|
||||||
plantation = fields.Many2One('agronomics.plantation', 'Plantation',
|
plantation = fields.Many2One('agronomics.plantation', 'Plantation',
|
||||||
|
@ -135,8 +136,9 @@ class Parcel(ModelSQL, ModelView):
|
||||||
return round(float(min([x.max_production for x in max_production])
|
return round(float(min([x.max_production for x in max_production])
|
||||||
)*self.surface, 2)
|
)*self.surface, 2)
|
||||||
|
|
||||||
|
|
||||||
class ParcelDo(ModelSQL):
|
class ParcelDo(ModelSQL):
|
||||||
'Parcel - Denomination Origin'
|
"Parcel - Denomination Origin"
|
||||||
__name__ = 'agronomics.parcel-agronomics.do'
|
__name__ = 'agronomics.parcel-agronomics.do'
|
||||||
|
|
||||||
parcel = fields.Many2One('agronomics.parcel', 'Parcel')
|
parcel = fields.Many2One('agronomics.parcel', 'Parcel')
|
||||||
|
@ -145,7 +147,7 @@ class ParcelDo(ModelSQL):
|
||||||
|
|
||||||
|
|
||||||
class Beneficiaries(ModelSQL, ModelView):
|
class Beneficiaries(ModelSQL, ModelView):
|
||||||
""" Beneficiaries """
|
"Beneficiaries"
|
||||||
__name__ = 'agronomics.beneficiary'
|
__name__ = 'agronomics.beneficiary'
|
||||||
|
|
||||||
party = fields.Many2One('party.party', 'Beneficiary', required=True)
|
party = fields.Many2One('party.party', 'Beneficiary', required=True)
|
||||||
|
|
Loading…
Reference in New Issue