Minor cosmetic changes.
This commit is contained in:
parent
d9ea007021
commit
26fea9fc4d
1
plot.py
1
plot.py
|
@ -19,6 +19,7 @@ class Enclosure(ModelSQL, ModelView):
|
|||
surface_sigpac = fields.Numeric('Surface Sigpac')
|
||||
plantation = fields.Many2One('agronomics.plantation', 'Plantation')
|
||||
|
||||
|
||||
class Crop(ModelSQL, ModelView):
|
||||
"Crop"
|
||||
__name__ = 'agronomics.crop'
|
||||
|
|
|
@ -99,8 +99,7 @@ class Product(metaclass=PoolMeta):
|
|||
if len(product.vintages) > 1:
|
||||
raise UserError(gettext('agronomics.msg_vintage_limit',
|
||||
product=product.rec_name))
|
||||
if (product.agronomic_type in
|
||||
['grape']):
|
||||
if product.agronomic_type == 'grape':
|
||||
if len(product.varieties) > 1:
|
||||
raise UserError(gettext('agronomics.msg_variety_limit',
|
||||
product=product.rec_name))
|
||||
|
|
Loading…
Reference in New Issue