mirror of
https://github.com/NaN-tic/trytond-agronomics.git
synced 2023-12-14 05:33:01 +01:00
Rename platation to plantation
This commit is contained in:
parent
7c86a3ea91
commit
5f240e74db
4
plot.py
4
plot.py
|
@ -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:
|
||||
|
|
|
@ -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"/>
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue