Rename platation to plantation

This commit is contained in:
Raimon Esteve 2022-03-17 15:58:39 +01:00
parent 7c86a3ea91
commit 5f240e74db
3 changed files with 8 additions and 8 deletions

View File

@ -68,8 +68,8 @@ class Plantation(ModelSQL, ModelView):
enclosures = fields.One2Many('agronomics.enclosure', 'plantation',
"Enclosure")
parcels = fields.One2Many('agronomics.parcel', 'plantation', "Parcel")
platation_year = fields.Integer("Platation Year")
platation_owner = fields.Many2One('party.party', "Platation Owner")
plantation_year = fields.Integer("Plantation Year")
plantation_owner = fields.Many2One('party.party', "Plantation Owner")
def get_rec_name(self, name):
if self.code:

View File

@ -3,10 +3,10 @@
<field name="code"/>
<label name="party"/>
<field name="party"/>
<label name="platation_year"/>
<field name="platation_year"/>
<label name="platation_owner"/>
<field name="platation_owner"/>
<label name="plantation_year"/>
<field name="plantation_year"/>
<label name="plantation_owner"/>
<field name="plantation_owner"/>
<notebook>
<page name="parcels">
<field name="parcels" widget="many2many"/>

View File

@ -1,6 +1,6 @@
<tree>
<field name="code"/>
<field name="party"/>
<field name="platation_year" tree_invisible="1"/>
<field name="platation_owner" tree_invisible="1"/>
<field name="plantation_year" tree_invisible="1"/>
<field name="plantation_owner" tree_invisible="1"/>
</tree>