add references on party
This commit is contained in:
parent
96f5d99022
commit
ae639420cf
|
@ -2,10 +2,13 @@
|
|||
# The COPYRIGHT file at the top level of this repository contains
|
||||
# the full copyright notices and license terms.
|
||||
from trytond.pool import Pool
|
||||
from . import party
|
||||
from . import plot
|
||||
|
||||
|
||||
def register():
|
||||
Pool.register(
|
||||
party.Party,
|
||||
plot.Enclosure,
|
||||
plot.Crop,
|
||||
plot.DenominationOrigin,
|
||||
|
|
10
locale/ca.po
10
locale/ca.po
|
@ -123,7 +123,7 @@ msgid "Irrigation"
|
|||
msgstr "Irrigació"
|
||||
|
||||
msgctxt "field:agronomics.parcel,max_production:"
|
||||
msgid "Max. Production"
|
||||
msgid "Max Production"
|
||||
msgstr "Producció Màxima"
|
||||
|
||||
msgctxt "field:agronomics.parcel,plant_number:"
|
||||
|
@ -190,6 +190,14 @@ msgctxt "field:agronomics.plantation,party:"
|
|||
msgid "Party"
|
||||
msgstr "Tercers"
|
||||
|
||||
msgctxt "field:party.party,parcels:"
|
||||
msgid "Parcels"
|
||||
msgstr "Parceles"
|
||||
|
||||
msgctxt "field:party.party,plantations:"
|
||||
msgid "Plantation"
|
||||
msgstr "Plantacións"
|
||||
|
||||
msgctxt "model:agronomics.beneficiary,name:"
|
||||
msgid "Beneficiaries"
|
||||
msgstr "Beneficiaris"
|
||||
|
|
10
locale/es.po
10
locale/es.po
|
@ -123,7 +123,7 @@ msgid "Irrigation"
|
|||
msgstr "Irrigación"
|
||||
|
||||
msgctxt "field:agronomics.parcel,max_production:"
|
||||
msgid "Max. Production"
|
||||
msgid "Max Production"
|
||||
msgstr "Producción Máxima"
|
||||
|
||||
msgctxt "field:agronomics.parcel,plant_number:"
|
||||
|
@ -190,6 +190,14 @@ msgctxt "field:agronomics.plantation,party:"
|
|||
msgid "Party"
|
||||
msgstr "Terceros"
|
||||
|
||||
msgctxt "field:party.party,parcels:"
|
||||
msgid "Parcels"
|
||||
msgstr "Parcelas"
|
||||
|
||||
msgctxt "field:party.party,plantations:"
|
||||
msgid "Plantation"
|
||||
msgstr "Plantaciónes"
|
||||
|
||||
msgctxt "model:agronomics.beneficiary,name:"
|
||||
msgid "Beneficiaries"
|
||||
msgstr "Beneficiarios"
|
||||
|
|
|
@ -0,0 +1,11 @@
|
|||
# The COPYRIGHT file at the top level of this repository contains the full
|
||||
# copyright notices and license terms.
|
||||
from trytond.model import fields
|
||||
from trytond.pool import PoolMeta
|
||||
|
||||
class Party(metaclass=PoolMeta):
|
||||
__name__ = 'party.party'
|
||||
|
||||
plantations = fields.One2Many('agronomics.plantation', 'party',
|
||||
'Plantation')
|
||||
parcels = fields.One2Many('agronomics.parcel', 'producer', 'Parcels')
|
|
@ -0,0 +1,12 @@
|
|||
<?xml version="1.0"?>
|
||||
<!-- This file is part party_comment module for Tryton.
|
||||
The COPYRIGHT file at the top level of this repository contains the full copyright notices and license terms. -->
|
||||
<tryton>
|
||||
<data>
|
||||
<record model="ir.ui.view" id="party_view_form">
|
||||
<field name="model">party.party</field>
|
||||
<field name="inherit" ref="party.party_view_form"/>
|
||||
<field name="name">party_form</field>
|
||||
</record>
|
||||
</data>
|
||||
</tryton>
|
|
@ -6,4 +6,5 @@ depends:
|
|||
product_classification_taxonomic
|
||||
xml:
|
||||
plot.xml
|
||||
party.xml
|
||||
message.xml
|
||||
|
|
|
@ -3,10 +3,10 @@
|
|||
<field name="crop"/>
|
||||
<label name="plantation"/>
|
||||
<field name="plantation"/>
|
||||
<label name="variety"/>
|
||||
<field name="variety"/>
|
||||
<label name="species"/>
|
||||
<field name="species"/>
|
||||
<label name="variety"/>
|
||||
<field name="variety"/>
|
||||
<label name="ecological"/>
|
||||
<field name="ecological"/>
|
||||
<label name="table"/>
|
||||
|
|
|
@ -0,0 +1,14 @@
|
|||
<?xml version="1.0"?>
|
||||
<!-- This file is part of party_comment module for Tryton.
|
||||
The COPYRIGHT file at the top level of this repository contains the full
|
||||
copyright notices and license types. -->
|
||||
<data>
|
||||
<xpath expr="/form/notebook" position="inside">
|
||||
<page name="plantations">
|
||||
<field name="plantations" colspan="6"/>
|
||||
</page>
|
||||
<page name="parcels">
|
||||
<field name="parcels" colspan="6"/>
|
||||
</page>
|
||||
</xpath>
|
||||
</data>
|
Loading…
Reference in New Issue