Fix typo: weighing -> weighting.

This commit is contained in:
Albert Cervera i Areny 2021-09-21 13:20:32 +02:00
parent cf93ca2a40
commit 2263416790
11 changed files with 309 additions and 309 deletions

View File

@ -5,8 +5,8 @@ from trytond.pool import Pool
from . import party
from . import plot
from . import product
from . import weighting
from . import quality
from . import weighing
def register():
@ -33,10 +33,10 @@ def register():
quality.QualityTest,
quality.QuantitativeTestLine,
quality.QualitativeTestLine,
weighing.WeighingCenter,
weighing.Weighing,
weighing.WeighingPlantation,
weighing.WeighingDo,
weighting.WeightingCenter,
weighting.Weighting,
weighting.WeightingPlantation,
weighting.WeightingDo,
module='agronomics', type_='model')
Pool.register(
module='agronomics', type_='wizard')

View File

@ -14,8 +14,8 @@ msgctxt "field:agronomics.beneficiary,percent:"
msgid "Percent"
msgstr "Percentatge"
msgctxt "field:agronomics.beneficiary,weighing:"
msgid "Weighing"
msgctxt "field:agronomics.beneficiary,weighting:"
msgid "Weighting"
msgstr "Pesada"
msgctxt "field:agronomics.certification,date:"
@ -210,124 +210,124 @@ msgctxt "field:agronomics.plantation,party:"
msgid "Party"
msgstr "Tercers"
msgctxt "field:agronomics.weighing,all_do:"
msgctxt "field:agronomics.weighting,all_do:"
msgid "All DO"
msgstr "Totes les DO"
msgctxt "field:agronomics.weighing,beneficiaries:"
msgctxt "field:agronomics.weighting,beneficiaries:"
msgid "Beneficiaries"
msgstr "Beneficiaris"
msgctxt "field:agronomics.weighing,crop:"
msgctxt "field:agronomics.weighting,crop:"
msgid "Crop"
msgstr "Collita"
msgctxt "field:agronomics.weighing,denomination_origin:"
msgctxt "field:agronomics.weighting,denomination_origin:"
msgid "Denomination of Origin"
msgstr "Denominació d'origen"
msgctxt "field:agronomics.weighing,do:"
msgctxt "field:agronomics.weighting,do:"
msgid "Denomination Origin"
msgstr "Denominació d'origen"
msgctxt "field:agronomics.weighing,ecological:"
msgctxt "field:agronomics.weighting,ecological:"
msgid "Ecological"
msgstr "Ecològic"
msgctxt "field:agronomics.weighing,net_weight:"
msgctxt "field:agronomics.weighting,net_weight:"
msgid "Net Weight"
msgstr "Pes net"
msgctxt "field:agronomics.weighing,netweight:"
msgctxt "field:agronomics.weighting,netweight:"
msgid "Net Weight"
msgstr "Pes net"
msgctxt "field:agronomics.weighing,number:"
msgctxt "field:agronomics.weighting,number:"
msgid "Number"
msgstr "Número"
msgctxt "field:agronomics.weighing,plantations:"
msgctxt "field:agronomics.weighting,plantations:"
msgid "plantations"
msgstr "Plantacions"
msgctxt "field:agronomics.weighing,product:"
msgctxt "field:agronomics.weighting,product:"
msgid "Product"
msgstr "Productes"
msgctxt "field:agronomics.weighing,product_created:"
msgctxt "field:agronomics.weighting,product_created:"
msgid "Product Created"
msgstr "Producte creat"
msgctxt "field:agronomics.weighing,purchase_contract:"
msgctxt "field:agronomics.weighting,purchase_contract:"
msgid "Purchase Contract"
msgstr "Contracte de compra"
msgctxt "field:agronomics.weighing,quality_test:"
msgctxt "field:agronomics.weighting,quality_test:"
msgid "Test"
msgstr "Test"
msgctxt "field:agronomics.weighing,state:"
msgctxt "field:agronomics.weighting,state:"
msgid "State"
msgstr "Estat"
msgctxt "field:agronomics.weighing,table:"
msgctxt "field:agronomics.weighting,table:"
msgid "Table"
msgstr "Taula"
msgctxt "field:agronomics.weighing,tara:"
msgctxt "field:agronomics.weighting,tara:"
msgid "Tara"
msgstr "Tara"
msgctxt "field:agronomics.weighing,variety:"
msgctxt "field:agronomics.weighting,variety:"
msgid "Variety"
msgstr "Varietat"
msgctxt "field:agronomics.weighing,weighing_center:"
msgid "Weighing Center"
msgctxt "field:agronomics.weighting,weighting_center:"
msgid "Weighting Center"
msgstr "Centre de pesada"
msgctxt "field:agronomics.weighing,weighing_date:"
msgctxt "field:agronomics.weighting,weighting_date:"
msgid "Date"
msgstr "Data"
msgctxt "field:agronomics.weighing,weight:"
msgctxt "field:agronomics.weighting,weight:"
msgid "Weight"
msgstr "Pes"
msgctxt "field:agronomics.weighing-agronomics.do,do:"
msgctxt "field:agronomics.weighting-agronomics.do,do:"
msgid "Denomination Origin"
msgstr "Denominació d'origen"
msgctxt "field:agronomics.weighing-agronomics.do,weighing:"
msgid "Weighing"
msgctxt "field:agronomics.weighting-agronomics.do,weighting:"
msgid "Weighting"
msgstr "Pesada"
msgctxt "field:agronomics.weighing-agronomics.plantation,Plantation:"
msgctxt "field:agronomics.weighting-agronomics.plantation,Plantation:"
msgid "Plantation"
msgstr "Plantacións"
msgctxt "field:agronomics.weighing-agronomics.plantation,plantation:"
msgctxt "field:agronomics.weighting-agronomics.plantation,plantation:"
msgid "Plantation"
msgstr "Plantacións"
msgctxt "field:agronomics.weighing-agronomics.plantation,weighing:"
msgid "Weighing"
msgctxt "field:agronomics.weighting-agronomics.plantation,weighting:"
msgid "Weighting"
msgstr "Pesada"
msgctxt "field:agronomics.weighing-agronomics.plantations,Plantation:"
msgctxt "field:agronomics.weighting-agronomics.plantations,Plantation:"
msgid "Plantation"
msgstr "Plantacións"
msgctxt "field:agronomics.weighing-agronomics.plantations,weighing:"
msgid "Weighing"
msgctxt "field:agronomics.weighting-agronomics.plantations,weighting:"
msgid "Weighting"
msgstr "Pesada"
msgctxt "field:agronomics.weighing.center,name:"
msgctxt "field:agronomics.weighting.center,name:"
msgid "Name"
msgstr "Nom"
msgctxt "field:agronomics.weighing.center,weighing_sequence:"
msgid "Weighing Sequence"
msgctxt "field:agronomics.weighting.center,weighting_sequence:"
msgid "Weighting Sequence"
msgstr "Seqüència de pesada"
msgctxt "field:party.party,parcels:"
@ -374,8 +374,8 @@ msgctxt "field:product.product,quality_sample:"
msgid "Quality Sample"
msgstr "Mostra de qualitat"
msgctxt "field:product.product,quality_weighing:"
msgid "Quality Weighing"
msgctxt "field:product.product,quality_weighting:"
msgid "Quality Weighting"
msgstr "Qualitat Pesada"
msgctxt "field:product.product,shipment_in_quality_template:"
@ -438,8 +438,8 @@ msgctxt "field:product.template,container:"
msgid "Container"
msgstr "Envàs"
msgctxt "field:product.template,quality_weighing:"
msgid "Quality Weighing"
msgctxt "field:product.template,quality_weighting:"
msgid "Quality Weighting"
msgstr "Qualitat pesada"
msgctxt "model:agronomics.beneficiary,name:"
@ -490,24 +490,24 @@ msgctxt "model:agronomics.plantation,name:"
msgid "Plantation"
msgstr "Plantació"
msgctxt "model:agronomics.weighing,name:"
msgid "Weighing"
msgctxt "model:agronomics.weighting,name:"
msgid "Weighting"
msgstr "Pesada"
msgctxt "model:agronomics.weighing-agronomics.do,name:"
msgid "Weighing - Denomination Origin"
msgctxt "model:agronomics.weighting-agronomics.do,name:"
msgid "Weighting - Denomination Origin"
msgstr "Pesada - Denominació Origen"
msgctxt "model:agronomics.weighing-agronomics.plantation,name:"
msgid "Weighing - Plantations"
msgctxt "model:agronomics.weighting-agronomics.plantation,name:"
msgid "Weighting - Plantations"
msgstr "Pesada - Plantacions"
msgctxt "model:agronomics.weighing-agronomics.plantations,name:"
msgid "Weighing - Plantations"
msgctxt "model:agronomics.weighting-agronomics.plantations,name:"
msgid "Weighting - Plantations"
msgstr "Pesada - Plantacions"
msgctxt "model:agronomics.weighing.center,name:"
msgid "Weighing Center"
msgctxt "model:agronomics.weighting.center,name:"
msgid "Weighting Center"
msgstr "Centre de pesada"
msgctxt "model:ir.action,name:act_certification_tree"
@ -550,28 +550,28 @@ msgctxt "model:ir.action,name:act_plantation_tree"
msgid "Plantation"
msgstr "Plantació"
msgctxt "model:ir.action,name:act_weighing_action"
msgid "Weighing"
msgctxt "model:ir.action,name:act_weighting_action"
msgid "Weighting"
msgstr "Pesada"
msgctxt "model:ir.action,name:act_weighing_center_action"
msgid "Weighing Center"
msgctxt "model:ir.action,name:act_weighting_center_action"
msgid "Weighting Center"
msgstr "Centre de pesada"
msgctxt "model:ir.action.act_window.domain,name:act_weighing_domain_all"
msgctxt "model:ir.action.act_window.domain,name:act_weighting_domain_all"
msgid "All"
msgstr "Tots"
msgctxt "model:ir.action.act_window.domain,name:act_weighing_domain_analysis"
msgctxt "model:ir.action.act_window.domain,name:act_weighting_domain_analysis"
msgid "In Analysis"
msgstr "En Anàlisi"
msgctxt "model:ir.action.act_window.domain,name:act_weighing_domain_draft"
msgctxt "model:ir.action.act_window.domain,name:act_weighting_domain_draft"
msgid "Draft"
msgstr "Esborrany"
msgctxt ""
"model:ir.action.act_window.domain,name:act_weighing_domain_processing"
"model:ir.action.act_window.domain,name:act_weighting_domain_processing"
msgid "Processing"
msgstr "Processos"
@ -599,32 +599,32 @@ msgstr ""
"El producte \"%(product)s\" no pot tenir més d'una collita degut al seu "
"tipus agronòmic"
msgctxt "model:ir.model.button,string:weighing_analysis_button"
msgctxt "model:ir.model.button,string:weighting_analysis_button"
msgid "Analysis"
msgstr "Anàlisi"
msgctxt "model:ir.model.button,string:weighing_cancel_button"
msgctxt "model:ir.model.button,string:weighting_cancel_button"
msgid "Cancel"
msgstr "Cancel·lat"
msgctxt "model:ir.model.button,string:weighing_done_button"
msgctxt "model:ir.model.button,string:weighting_done_button"
msgid "Done"
msgstr "Realitzat"
msgctxt "model:ir.model.button,string:weighing_draft_button"
msgctxt "model:ir.model.button,string:weighting_draft_button"
msgid "Draft"
msgstr "Esborrany"
msgctxt "model:ir.model.button,string:weighing_process_button"
msgctxt "model:ir.model.button,string:weighting_process_button"
msgid "Process"
msgstr "Processa"
msgctxt "model:ir.sequence,name:sequence_weighing"
msgid "Weighing"
msgctxt "model:ir.sequence,name:sequence_weighting"
msgid "Weighting"
msgstr "Pesada"
msgctxt "model:ir.sequence.type,name:sequence_type_weighing"
msgid "Weighing"
msgctxt "model:ir.sequence.type,name:sequence_type_weighting"
msgid "Weighting"
msgstr "Pesada"
msgctxt "model:ir.ui.menu,name:menu_agronomics"
@ -675,12 +675,12 @@ msgctxt "model:ir.ui.menu,name:menu_plantation_list"
msgid "Plantation"
msgstr "Plantació"
msgctxt "model:ir.ui.menu,name:menu_weighing_center_list"
msgid "Weighing Center"
msgctxt "model:ir.ui.menu,name:menu_weighting_center_list"
msgid "Weighting Center"
msgstr "Centre de pesada"
msgctxt "model:ir.ui.menu,name:menu_weighing_list"
msgid "Weighing"
msgctxt "model:ir.ui.menu,name:menu_weighting_list"
msgid "Weighting"
msgstr "Pesada"
msgctxt "model:product.product-agronomics.crop,name:"
@ -707,23 +707,23 @@ msgctxt "model:res.group,name:group_agronomics_admin"
msgid "Agronomics Administration"
msgstr "Administració Agronomics"
msgctxt "selection:agronomics.weighing,state:"
msgctxt "selection:agronomics.weighting,state:"
msgid "Cancelled"
msgstr "Cancel·lat"
msgctxt "selection:agronomics.weighing,state:"
msgctxt "selection:agronomics.weighting,state:"
msgid "Done"
msgstr "Realitzat"
msgctxt "selection:agronomics.weighing,state:"
msgctxt "selection:agronomics.weighting,state:"
msgid "Draft"
msgstr "Esborrany"
msgctxt "selection:agronomics.weighing,state:"
msgctxt "selection:agronomics.weighting,state:"
msgid "In Analysis"
msgstr "En anàlisis"
msgctxt "selection:agronomics.weighing,state:"
msgctxt "selection:agronomics.weighting,state:"
msgid "Processing"
msgstr "Processos"

View File

@ -14,8 +14,8 @@ msgctxt "field:agronomics.beneficiary,percent:"
msgid "Percent"
msgstr "Porcentaje"
msgctxt "field:agronomics.beneficiary,weighing:"
msgid "Weighing"
msgctxt "field:agronomics.beneficiary,weighting:"
msgid "Weighting"
msgstr "Pesada"
msgctxt "field:agronomics.certification,date:"
@ -210,124 +210,124 @@ msgctxt "field:agronomics.plantation,party:"
msgid "Party"
msgstr "Terceros"
msgctxt "field:agronomics.weighing,all_do:"
msgctxt "field:agronomics.weighting,all_do:"
msgid "All DO"
msgstr "Todos los DO"
msgctxt "field:agronomics.weighing,beneficiaries:"
msgctxt "field:agronomics.weighting,beneficiaries:"
msgid "Beneficiaries"
msgstr "Beneficiarios"
msgctxt "field:agronomics.weighing,crop:"
msgctxt "field:agronomics.weighting,crop:"
msgid "Crop"
msgstr "Cosecha"
msgctxt "field:agronomics.weighing,denomination_origin:"
msgctxt "field:agronomics.weighting,denomination_origin:"
msgid "Denomination of Origin"
msgstr "Denominación de origen"
msgctxt "field:agronomics.weighing,do:"
msgctxt "field:agronomics.weighting,do:"
msgid "Denomination Origin"
msgstr "Denominación de origen"
msgctxt "field:agronomics.weighing,ecological:"
msgctxt "field:agronomics.weighting,ecological:"
msgid "Ecological"
msgstr "Ecológico"
msgctxt "field:agronomics.weighing,net_weight:"
msgctxt "field:agronomics.weighting,net_weight:"
msgid "Net Weight"
msgstr "Peso neto"
msgctxt "field:agronomics.weighing,netweight:"
msgctxt "field:agronomics.weighting,netweight:"
msgid "Net Weight"
msgstr "Peso neto"
msgctxt "field:agronomics.weighing,number:"
msgctxt "field:agronomics.weighting,number:"
msgid "Number"
msgstr "Número"
msgctxt "field:agronomics.weighing,plantations:"
msgctxt "field:agronomics.weighting,plantations:"
msgid "plantations"
msgstr "Plantación"
msgctxt "field:agronomics.weighing,product:"
msgctxt "field:agronomics.weighting,product:"
msgid "Product"
msgstr "Productos"
msgctxt "field:agronomics.weighing,product_created:"
msgctxt "field:agronomics.weighting,product_created:"
msgid "Product Created"
msgstr ""
msgctxt "field:agronomics.weighing,purchase_contract:"
msgctxt "field:agronomics.weighting,purchase_contract:"
msgid "Purchase Contract"
msgstr "Contrato de compra"
msgctxt "field:agronomics.weighing,quality_test:"
msgctxt "field:agronomics.weighting,quality_test:"
msgid "Test"
msgstr "Test"
msgctxt "field:agronomics.weighing,state:"
msgctxt "field:agronomics.weighting,state:"
msgid "State"
msgstr "Estado"
msgctxt "field:agronomics.weighing,table:"
msgctxt "field:agronomics.weighting,table:"
msgid "Table"
msgstr "Mesa"
msgctxt "field:agronomics.weighing,tara:"
msgctxt "field:agronomics.weighting,tara:"
msgid "Tara"
msgstr "Tara"
msgctxt "field:agronomics.weighing,variety:"
msgctxt "field:agronomics.weighting,variety:"
msgid "Variety"
msgstr "Variedad"
msgctxt "field:agronomics.weighing,weighing_center:"
msgid "Weighing Center"
msgctxt "field:agronomics.weighting,weighting_center:"
msgid "Weighting Center"
msgstr "Centro de pesada"
msgctxt "field:agronomics.weighing,weighing_date:"
msgctxt "field:agronomics.weighting,weighting_date:"
msgid "Date"
msgstr "Fecha"
msgctxt "field:agronomics.weighing,weight:"
msgctxt "field:agronomics.weighting,weight:"
msgid "Weight"
msgstr "Peso"
msgctxt "field:agronomics.weighing-agronomics.do,do:"
msgctxt "field:agronomics.weighting-agronomics.do,do:"
msgid "Denomination Origin"
msgstr "Denominación de origen"
msgctxt "field:agronomics.weighing-agronomics.do,weighing:"
msgid "Weighing"
msgctxt "field:agronomics.weighting-agronomics.do,weighting:"
msgid "Weighting"
msgstr "Pesada"
msgctxt "field:agronomics.weighing-agronomics.plantation,Plantation:"
msgctxt "field:agronomics.weighting-agronomics.plantation,Plantation:"
msgid "Plantation"
msgstr "Plantaciónes"
msgctxt "field:agronomics.weighing-agronomics.plantation,plantation:"
msgctxt "field:agronomics.weighting-agronomics.plantation,plantation:"
msgid "Plantation"
msgstr "Plantaciónes"
msgctxt "field:agronomics.weighing-agronomics.plantation,weighing:"
msgid "Weighing"
msgctxt "field:agronomics.weighting-agronomics.plantation,weighting:"
msgid "Weighting"
msgstr "Pesada"
msgctxt "field:agronomics.weighing-agronomics.plantations,Plantation:"
msgctxt "field:agronomics.weighting-agronomics.plantations,Plantation:"
msgid "Plantation"
msgstr "Plantaciónes"
msgctxt "field:agronomics.weighing-agronomics.plantations,weighing:"
msgid "Weighing"
msgctxt "field:agronomics.weighting-agronomics.plantations,weighting:"
msgid "Weighting"
msgstr "Pesada"
msgctxt "field:agronomics.weighing.center,name:"
msgctxt "field:agronomics.weighting.center,name:"
msgid "Name"
msgstr "Nombre"
msgctxt "field:agronomics.weighing.center,weighing_sequence:"
msgid "Weighing Sequence"
msgctxt "field:agronomics.weighting.center,weighting_sequence:"
msgid "Weighting Sequence"
msgstr "Secuencia"
msgctxt "field:party.party,parcels:"
@ -374,8 +374,8 @@ msgctxt "field:product.product,quality_sample:"
msgid "Quality Sample"
msgstr "Muestra de calidad"
msgctxt "field:product.product,quality_weighing:"
msgid "Quality Weighing"
msgctxt "field:product.product,quality_weighting:"
msgid "Quality Weighting"
msgstr "Calidad pesada"
msgctxt "field:product.product,shipment_in_quality_template:"
@ -438,8 +438,8 @@ msgctxt "field:product.template,container:"
msgid "Container"
msgstr "Envase"
msgctxt "field:product.template,quality_weighing:"
msgid "Quality Weighing"
msgctxt "field:product.template,quality_weighting:"
msgid "Quality Weighting"
msgstr "Calidad pesada"
msgctxt "model:agronomics.beneficiary,name:"
@ -490,24 +490,24 @@ msgctxt "model:agronomics.plantation,name:"
msgid "Plantation"
msgstr "Plantación"
msgctxt "model:agronomics.weighing,name:"
msgid "Weighing"
msgctxt "model:agronomics.weighting,name:"
msgid "Weighting"
msgstr "Pesada"
msgctxt "model:agronomics.weighing-agronomics.do,name:"
msgid "Weighing - Denomination Origin"
msgctxt "model:agronomics.weighting-agronomics.do,name:"
msgid "Weighting - Denomination Origin"
msgstr "Pesada - Denominación de origen"
msgctxt "model:agronomics.weighing-agronomics.plantation,name:"
msgid "Weighing - Plantations"
msgctxt "model:agronomics.weighting-agronomics.plantation,name:"
msgid "Weighting - Plantations"
msgstr "Pesada - Plantación"
msgctxt "model:agronomics.weighing-agronomics.plantations,name:"
msgid "Weighing - Plantations"
msgctxt "model:agronomics.weighting-agronomics.plantations,name:"
msgid "Weighting - Plantations"
msgstr "Pesada - Plantación"
msgctxt "model:agronomics.weighing.center,name:"
msgid "Weighing Center"
msgctxt "model:agronomics.weighting.center,name:"
msgid "Weighting Center"
msgstr "Centro de pesada"
msgctxt "model:ir.action,name:act_certification_tree"
@ -550,28 +550,28 @@ msgctxt "model:ir.action,name:act_plantation_tree"
msgid "Plantation"
msgstr "Plantación"
msgctxt "model:ir.action,name:act_weighing_action"
msgid "Weighing"
msgctxt "model:ir.action,name:act_weighting_action"
msgid "Weighting"
msgstr "Pesada"
msgctxt "model:ir.action,name:act_weighing_center_action"
msgid "Weighing Center"
msgctxt "model:ir.action,name:act_weighting_center_action"
msgid "Weighting Center"
msgstr "Centro de pesada"
msgctxt "model:ir.action.act_window.domain,name:act_weighing_domain_all"
msgctxt "model:ir.action.act_window.domain,name:act_weighting_domain_all"
msgid "All"
msgstr "Todos"
msgctxt "model:ir.action.act_window.domain,name:act_weighing_domain_analysis"
msgctxt "model:ir.action.act_window.domain,name:act_weighting_domain_analysis"
msgid "In Analysis"
msgstr ""
msgctxt "model:ir.action.act_window.domain,name:act_weighing_domain_draft"
msgctxt "model:ir.action.act_window.domain,name:act_weighting_domain_draft"
msgid "Draft"
msgstr "Esborany"
msgctxt ""
"model:ir.action.act_window.domain,name:act_weighing_domain_processing"
"model:ir.action.act_window.domain,name:act_weighting_domain_processing"
msgid "Processing"
msgstr "Procesos"
@ -599,32 +599,32 @@ msgstr ""
"El producto \"%(product)s\" no puede tener más de una cosecha debido a su "
"Tipo Agronómico"
msgctxt "model:ir.model.button,string:weighing_analysis_button"
msgctxt "model:ir.model.button,string:weighting_analysis_button"
msgid "Analysis"
msgstr "Análisis"
msgctxt "model:ir.model.button,string:weighing_cancel_button"
msgctxt "model:ir.model.button,string:weighting_cancel_button"
msgid "Cancel"
msgstr "Cancel·lar"
msgctxt "model:ir.model.button,string:weighing_done_button"
msgctxt "model:ir.model.button,string:weighting_done_button"
msgid "Done"
msgstr "Realizado"
msgctxt "model:ir.model.button,string:weighing_draft_button"
msgctxt "model:ir.model.button,string:weighting_draft_button"
msgid "Draft"
msgstr "Esborany"
msgctxt "model:ir.model.button,string:weighing_process_button"
msgctxt "model:ir.model.button,string:weighting_process_button"
msgid "Process"
msgstr "Procesar"
msgctxt "model:ir.sequence,name:sequence_weighing"
msgid "Weighing"
msgctxt "model:ir.sequence,name:sequence_weighting"
msgid "Weighting"
msgstr "Pesada"
msgctxt "model:ir.sequence.type,name:sequence_type_weighing"
msgid "Weighing"
msgctxt "model:ir.sequence.type,name:sequence_type_weighting"
msgid "Weighting"
msgstr "Pesada"
msgctxt "model:ir.ui.menu,name:menu_agronomics"
@ -675,12 +675,12 @@ msgctxt "model:ir.ui.menu,name:menu_plantation_list"
msgid "Plantation"
msgstr "Plantación"
msgctxt "model:ir.ui.menu,name:menu_weighing_center_list"
msgid "Weighing Center"
msgctxt "model:ir.ui.menu,name:menu_weighting_center_list"
msgid "Weighting Center"
msgstr "Centro de pesada"
msgctxt "model:ir.ui.menu,name:menu_weighing_list"
msgid "Weighing"
msgctxt "model:ir.ui.menu,name:menu_weighting_list"
msgid "Weighting"
msgstr "Pesada"
msgctxt "model:product.product-agronomics.crop,name:"
@ -707,23 +707,23 @@ msgctxt "model:res.group,name:group_agronomics_admin"
msgid "Agronomics Administration"
msgstr "Agronomics Administración"
msgctxt "selection:agronomics.weighing,state:"
msgctxt "selection:agronomics.weighting,state:"
msgid "Cancelled"
msgstr "Cancelado"
msgctxt "selection:agronomics.weighing,state:"
msgctxt "selection:agronomics.weighting,state:"
msgid "Done"
msgstr "Realizado"
msgctxt "selection:agronomics.weighing,state:"
msgctxt "selection:agronomics.weighting,state:"
msgid "Draft"
msgstr "Esborany"
msgctxt "selection:agronomics.weighing,state:"
msgctxt "selection:agronomics.weighting,state:"
msgid "In Analysis"
msgstr "En Análisis"
msgctxt "selection:agronomics.weighing,state:"
msgctxt "selection:agronomics.weighting,state:"
msgid "Processing"
msgstr "Procesos"

View File

@ -155,4 +155,4 @@ class Beneficiaries(ModelSQL, ModelView):
party = fields.Many2One('party.party', 'Beneficiary', required=True)
percent = fields.Float('Percent', digits=(16, 2), required=True)
parcel = fields.Many2One('agronomics.parcel', 'Parcel')
weighing = fields.Many2One('agronomics.weighing', 'Weighing')
weighting = fields.Many2One('agronomics.weighting', 'Weighting')

View File

@ -53,7 +53,7 @@ class Template(metaclass=PoolMeta):
}, depends=['agronomic_type']), 'get_capacity',
searcher='search_capacity')
quality_weighing = fields.Many2One('quality.template', 'Quality Weighing')
quality_weighting = fields.Many2One('quality.template', 'Quality Weighting')
def get_capacity(self, name):
if self.container:

View File

@ -6,8 +6,8 @@
<field name="container"/>
<label name="capacity"/>
<field name="capacity"/>
<label name="quality_weighing"/>
<field name="quality_weighing"/>
<label name="quality_weighting"/>
<field name="quality_weighting"/>
</xpath>
</data>

View File

@ -1,6 +1,6 @@
<form>
<label name="name"/>
<field name="name"/>
<label name="weighing_sequence"/>
<field name="weighing_sequence"/>
<label name="weighting_sequence"/>
<field name="weighting_sequence"/>
</form>

View File

@ -1,10 +1,10 @@
<form>
<label name="number"/>
<field name="number"/>
<label name="weighing_date"/>
<field name="weighing_date"/>
<label name="weighing_center"/>
<field name="weighing_center"/>
<label name="weighting_date"/>
<field name="weighting_date"/>
<label name="weighting_center"/>
<field name="weighting_center"/>
<label name="crop"/>
<field name="crop"/>
<label name="purchase_contract"/>

View File

@ -1,7 +1,7 @@
<tree>
<field name="number"/>
<field name="weighing_date"/>
<field name="weighing_center"/>
<field name="weighting_date"/>
<field name="weighting_center"/>
<field name="crop"/>
<field name="product"/>
<field name="variety"/>

View File

@ -8,32 +8,32 @@ from trytond.exceptions import UserError
from trytond.transaction import Transaction
from datetime import datetime
class WeighingCenter(ModelSQL, ModelView):
""" Weighing Center """
__name__ = 'agronomics.weighing.center'
class WeightingCenter(ModelSQL, ModelView):
""" Weighting Center """
__name__ = 'agronomics.weighting.center'
name = fields.Char('Name', required=True)
weighing_sequence = fields.Many2One('ir.sequence', 'Weighing Sequence',
weighting_sequence = fields.Many2One('ir.sequence', 'Weighting Sequence',
domain=[
('sequence_type', '=', Id('agronomics', 'sequence_type_weighing'))
('sequence_type', '=', Id('agronomics', 'sequence_type_weighting'))
])
READONLY = ['processing', 'in_analysis', 'done', 'cancelled']
READONLY2 = ['draft', 'in_analysis', 'done', 'cancelled']
class Weighing(Workflow, ModelSQL, ModelView):
""" Weighing """
__name__ = 'agronomics.weighing'
class Weighting(Workflow, ModelSQL, ModelView):
""" Weighting """
__name__ = 'agronomics.weighting'
_rec_name = 'number'
number = fields.Char('Number', readonly=True, select=True)
weighing_date = fields.Date('Date', states={
weighting_date = fields.Date('Date', states={
'readonly': Eval('state').in_(READONLY),
'required': True
}, depends=['state'])
weighing_center = fields.Many2One('agronomics.weighing.center',
'Weighing Center', states={
weighting_center = fields.Many2One('agronomics.weighting.center',
'Weighting Center', states={
'readonly': Eval('state').in_(READONLY),
'required': True
}, depends=['state'])
@ -76,18 +76,18 @@ class Weighing(Workflow, ModelSQL, ModelView):
'readonly': Eval('state').in_(READONLY2),
'required': Eval('state') == 'in_analysis',
})
beneficiaries = fields.One2Many('agronomics.beneficiary', 'weighing',
beneficiaries = fields.One2Many('agronomics.beneficiary', 'weighting',
'Beneficiaries', states={
'readonly': Eval('state').in_(READONLY2),
'required': Eval('state') == 'in_analysis',
})
denomination_origin = fields.Many2Many('agronomics.weighing-agronomics.do',
'weighing', 'do', 'Denomination of Origin', states={
denomination_origin = fields.Many2Many('agronomics.weighting-agronomics.do',
'weighting', 'do', 'Denomination of Origin', states={
'readonly': Eval('state').in_(READONLY2),
'required': Eval('state') == 'in_analysis',
})
plantations = fields.Many2Many('agronomics.weighing-agronomics.plantation',
'weighing', 'plantation', 'plantations', states={
plantations = fields.Many2Many('agronomics.weighting-agronomics.plantation',
'weighting', 'plantation', 'plantations', states={
'readonly': Eval('state').in_(READONLY),
'required': Eval('state') == 'process',
}, size=4)
@ -106,9 +106,9 @@ class Weighing(Workflow, ModelSQL, ModelView):
@classmethod
def __setup__(cls):
super(Weighing, cls).__setup__()
super(Weighting, cls).__setup__()
cls._order = [
('weighing_date', 'DESC NULLS FIRST'),
('weighting_date', 'DESC NULLS FIRST'),
('id', 'DESC'),
]
cls._transitions |= set((
@ -146,7 +146,7 @@ class Weighing(Workflow, ModelSQL, ModelView):
})
@staticmethod
def default_weighing_date():
def default_weighting_date():
Date = Pool().get('ir.date')
return Date.today()
@ -157,11 +157,11 @@ class Weighing(Workflow, ModelSQL, ModelView):
def get_all_do(self, name):
return ",".join([x.name for x in self.denomination_origin])
@fields.depends('weighing_date')
@fields.depends('weighting_date')
def on_change_with_crop(self):
Crop = Pool().get('agronomics.crop')
crop = Crop.search([('start_date', '<=', self.weighing_date),
('end_date', '>=', self.weighing_date)], limit=1)
crop = Crop.search([('start_date', '<=', self.weighting_date),
('end_date', '>=', self.weighting_date)], limit=1)
if not crop:
return
return crop[0].id
@ -249,31 +249,31 @@ class Weighing(Workflow, ModelSQL, ModelView):
@classmethod
@Workflow.transition('in_analysis')
def analysis(cls, weighings):
def analysis(cls, weightings):
pool = Pool()
Product = pool.get('product.product')
default_product_values = Product.default_get(Product._fields.keys(),
with_rec_name=False)
product = Product(**default_product_values)
for weighing in weighings:
product.template = weighing.product
product.denominations_of_origin = weighing.denomination_origin
product.ecologicals = [weighing.ecological]
product.varieties = [weighing.variety.id]
product.vintages = [weighing.crop.id]
weighing.product_created = product
weighing.quality_test = weighing.create_quality_test()
for weighting in weightings:
product.template = weighting.product
product.denominations_of_origin = weighting.denomination_origin
product.ecologicals = [weighting.ecological]
product.varieties = [weighting.variety.id]
product.vintages = [weighting.crop.id]
weighting.product_created = product
weighting.quality_test = weighting.create_quality_test()
cls.save(weighings)
cls.save(weightings)
def create_quality_test(self):
pool = Pool()
QualityTest = pool.get('quality.test')
with Transaction().set_context(_check_access=False):
if not (self.product and self.product.quality_weighing):
if not (self.product and self.product.quality_weighting):
return
template = self.product.quality_weighing
template = self.product.quality_weighting
test = QualityTest(
test_date=datetime.now(),
templates=[template],
@ -284,32 +284,32 @@ class Weighing(Workflow, ModelSQL, ModelView):
@classmethod
@Workflow.transition('draft')
def draft(cls, weighings):
def draft(cls, weightings):
pass
@classmethod
@Workflow.transition('done')
def done(cls, weighings):
def done(cls, weightings):
pass
@classmethod
@Workflow.transition('processing')
def process(cls, weighings):
def process(cls, weightings):
Beneficiary = Pool().get('agronomics.beneficiary')
to_save = []
for weighing in weighings:
if weighing.beneficiaries:
Beneficiary.delete([x for x in weighing.beneficiaries])
for weighting in weightings:
if weighting.beneficiaries:
Beneficiary.delete([x for x in weighting.beneficiaries])
parcel = weighing.get_parcel()
parcel = weighting.get_parcel()
if not parcel:
continue
for ben in parcel.beneficiaries:
b = Beneficiary()
b.party = ben.party
b.weighing = weighing
b.weighting = weighting
b.percent = ben.percent
to_save.append(b)
@ -318,47 +318,47 @@ class Weighing(Workflow, ModelSQL, ModelView):
@classmethod
@Workflow.transition('cancel')
def cancel(cls, weighings):
def cancel(cls, weightings):
pass
@classmethod
def set_number(cls, weighing_center):
WeighingCenter = Pool().get('agronomics.weighing.center')
weighing_center = WeighingCenter(weighing_center)
return (weighing_center.weighing_sequence and
weighing_center.weighing_sequence.get())
def set_number(cls, weighting_center):
WeightingCenter = Pool().get('agronomics.weighting.center')
weighting_center = WeightingCenter(weighting_center)
return (weighting_center.weighting_sequence and
weighting_center.weighting_sequence.get())
@classmethod
def create(cls, vlist):
vlist = [v.copy() for v in vlist]
for values in vlist:
if not values.get('number'):
values['number'] = cls.set_number(values.get('weighing_center'))
values['number'] = cls.set_number(values.get('weighting_center'))
return super().create(vlist)
@classmethod
def copy(cls, weighings, default=None):
def copy(cls, weightings, default=None):
if default is None:
default = {}
else:
default = default.copy()
default.setdefault('beneficiaries', None)
return super().copy(weighings, default=default)
return super().copy(weightings, default=default)
class WeighingDo(ModelSQL):
'Weighing - Denomination Origin'
__name__ = 'agronomics.weighing-agronomics.do'
class WeightingDo(ModelSQL):
'Weighting - Denomination Origin'
__name__ = 'agronomics.weighting-agronomics.do'
weighing = fields.Many2One('agronomics.weighing', 'Weighing')
weighting = fields.Many2One('agronomics.weighting', 'Weighting')
do = fields.Many2One('agronomics.denomination_of_origin',
'Denomination Origin')
class WeighingPlantation(ModelSQL):
'Weighing - Plantations'
__name__ = 'agronomics.weighing-agronomics.plantation'
class WeightingPlantation(ModelSQL):
'Weighting - Plantations'
__name__ = 'agronomics.weighting-agronomics.plantation'
weighing = fields.Many2One('agronomics.weighing', 'Weighing')
weighting = fields.Many2One('agronomics.weighting', 'Weighting')
plantation = fields.Many2One('agronomics.plantation',
'Plantation')

View File

@ -1,200 +1,200 @@
<tryton>
<data>
<!-- Weighing Center -->
<!-- Weighting Center -->
<record model="ir.ui.view" id="weighing_center_view_form">
<field name="model">agronomics.weighing.center</field>
<record model="ir.ui.view" id="weighting_center_view_form">
<field name="model">agronomics.weighting.center</field>
<field name="type">form</field>
<field name="name">weighing_center_form</field>
<field name="name">weighting_center_form</field>
</record>
<record model="ir.ui.view" id="weighing_center_view_tree">
<field name="model">agronomics.weighing.center</field>
<record model="ir.ui.view" id="weighting_center_view_tree">
<field name="model">agronomics.weighting.center</field>
<field name="type">tree</field>
<field name="priority" eval="20"/>
<field name="name">weighing_center_list</field>
<field name="name">weighting_center_list</field>
</record>
<record model="ir.action.act_window" id="act_weighing_center_action">
<field name="name">Weighing Center</field>
<field name="res_model">agronomics.weighing.center</field>
<record model="ir.action.act_window" id="act_weighting_center_action">
<field name="name">Weighting Center</field>
<field name="res_model">agronomics.weighting.center</field>
</record>
<record model="ir.action.act_window.view" id="act_weighing_center_tree_view1">
<record model="ir.action.act_window.view" id="act_weighting_center_tree_view1">
<field name="sequence" eval="10"/>
<field name="view" ref="weighing_center_view_tree"/>
<field name="act_window" ref="act_weighing_center_action"/>
<field name="view" ref="weighting_center_view_tree"/>
<field name="act_window" ref="act_weighting_center_action"/>
</record>
<record model="ir.action.act_window.view" id="act_weighing_center_tree_view2">
<record model="ir.action.act_window.view" id="act_weighting_center_tree_view2">
<field name="sequence" eval="20"/>
<field name="view" ref="weighing_center_view_form"/>
<field name="act_window" ref="act_weighing_center_action"/>
<field name="view" ref="weighting_center_view_form"/>
<field name="act_window" ref="act_weighting_center_action"/>
</record>
<menuitem parent="menu_configuration" sequence="1"
action="act_weighing_center_action" id="menu_weighing_center_list"/>
action="act_weighting_center_action" id="menu_weighting_center_list"/>
<record model="ir.ui.menu-res.group"
id="menu_weighing_center_list_group_agronomics">
<field name="menu" ref="menu_weighing_center_list"/>
id="menu_weighting_center_list_group_agronomics">
<field name="menu" ref="menu_weighting_center_list"/>
<field name="group" ref="group_agronomics"/>
</record>
<record model="ir.ui.menu-res.group"
id="menu_weighing_center_list_group_agronomics_admin">
<field name="menu" ref="menu_weighing_center_list"/>
id="menu_weighting_center_list_group_agronomics_admin">
<field name="menu" ref="menu_weighting_center_list"/>
<field name="group" ref="group_agronomics_admin"/>
</record>
<!-- Weighing -->
<!-- Weighting -->
<record model="ir.ui.view" id="weighing_view_form">
<field name="model">agronomics.weighing</field>
<record model="ir.ui.view" id="weighting_view_form">
<field name="model">agronomics.weighting</field>
<field name="type">form</field>
<field name="name">weighing_form</field>
<field name="name">weighting_form</field>
</record>
<record model="ir.ui.view" id="weighing_view_tree">
<field name="model">agronomics.weighing</field>
<record model="ir.ui.view" id="weighting_view_tree">
<field name="model">agronomics.weighting</field>
<field name="type">tree</field>
<field name="priority" eval="20"/>
<field name="name">weighing_list</field>
<field name="name">weighting_list</field>
</record>
<record model="ir.action.act_window" id="act_weighing_action">
<field name="name">Weighing</field>
<field name="res_model">agronomics.weighing</field>
<record model="ir.action.act_window" id="act_weighting_action">
<field name="name">Weighting</field>
<field name="res_model">agronomics.weighting</field>
</record>
<record model="ir.action.act_window.view" id="act_weighing_tree_view1">
<record model="ir.action.act_window.view" id="act_weighting_tree_view1">
<field name="sequence" eval="10"/>
<field name="view" ref="weighing_view_tree"/>
<field name="act_window" ref="act_weighing_action"/>
<field name="view" ref="weighting_view_tree"/>
<field name="act_window" ref="act_weighting_action"/>
</record>
<record model="ir.action.act_window.view" id="act_weighing_tree_view2">
<record model="ir.action.act_window.view" id="act_weighting_tree_view2">
<field name="sequence" eval="20"/>
<field name="view" ref="weighing_view_form"/>
<field name="act_window" ref="act_weighing_action"/>
<field name="view" ref="weighting_view_form"/>
<field name="act_window" ref="act_weighting_action"/>
</record>
<record model="ir.action.act_window.domain" id="act_weighing_domain_draft">
<record model="ir.action.act_window.domain" id="act_weighting_domain_draft">
<field name="name">Draft</field>
<field name="sequence" eval="10"/>
<field name="domain"
eval="[('state', '=', 'draft')]"
pyson="1"/>
<field name="act_window" ref="act_weighing_action"/>
<field name="act_window" ref="act_weighting_action"/>
</record>
<record model="ir.action.act_window.domain" id="act_weighing_domain_processing">
<record model="ir.action.act_window.domain" id="act_weighting_domain_processing">
<field name="name">Processing</field>
<field name="sequence" eval="10"/>
<field name="domain"
eval="[('state', '=', 'processing')]"
pyson="1"/>
<field name="act_window" ref="act_weighing_action"/>
<field name="act_window" ref="act_weighting_action"/>
</record>
<record model="ir.action.act_window.domain" id="act_weighing_domain_analysis">
<record model="ir.action.act_window.domain" id="act_weighting_domain_analysis">
<field name="name">In Analysis</field>
<field name="sequence" eval="10"/>
<field name="domain"
eval="[('state', '=', 'in_analysis')]"
pyson="1"/>
<field name="act_window" ref="act_weighing_action"/>
<field name="act_window" ref="act_weighting_action"/>
</record>
<record model="ir.action.act_window.domain" id="act_weighing_domain_all">
<record model="ir.action.act_window.domain" id="act_weighting_domain_all">
<field name="name">All</field>
<field name="sequence" eval="10"/>
<field name="domain"/>
<field name="act_window" ref="act_weighing_action"/>
<field name="act_window" ref="act_weighting_action"/>
</record>
<menuitem parent="menu_agronomics" sequence="1"
action="act_weighing_action" id="menu_weighing_list"/>
action="act_weighting_action" id="menu_weighting_list"/>
<record model="ir.ui.menu-res.group"
id="menu_weighing_list_group_agronomics">
<field name="menu" ref="menu_weighing_list"/>
id="menu_weighting_list_group_agronomics">
<field name="menu" ref="menu_weighting_list"/>
<field name="group" ref="group_agronomics"/>
</record>
<record model="ir.ui.menu-res.group"
id="menu_weighing_list_group_agronomics_admin">
<field name="menu" ref="menu_weighing_list"/>
id="menu_weighting_list_group_agronomics_admin">
<field name="menu" ref="menu_weighting_list"/>
<field name="group" ref="group_agronomics_admin"/>
</record>
<record model="ir.sequence.type" id="sequence_type_weighing">
<field name="name">Weighing</field>
<record model="ir.sequence.type" id="sequence_type_weighting">
<field name="name">Weighting</field>
</record>
<record model="ir.sequence.type-res.group"
id="sequence_type_weighing_group_admin">
<field name="sequence_type" ref="sequence_type_weighing"/>
id="sequence_type_weighting_group_admin">
<field name="sequence_type" ref="sequence_type_weighting"/>
<field name="group" ref="res.group_admin"/>
</record>
<record model="ir.sequence.type-res.group"
id="sequence_type_weighing_group_sale_admin">
<field name="sequence_type" ref="sequence_type_weighing"/>
id="sequence_type_weighting_group_sale_admin">
<field name="sequence_type" ref="sequence_type_weighting"/>
<field name="group" ref="group_agronomics_admin"/>
</record>
<record model="ir.sequence" id="sequence_weighing">
<field name="name">Weighing</field>
<field name="sequence_type" ref="sequence_type_weighing"/>
<record model="ir.sequence" id="sequence_weighting">
<field name="name">Weighting</field>
<field name="sequence_type" ref="sequence_type_weighting"/>
</record>
<record model="ir.model.button" id="weighing_draft_button">
<record model="ir.model.button" id="weighting_draft_button">
<field name="name">draft</field>
<field name="string">Draft</field>
<field name="model" search="[('model', '=', 'agronomics.weighing')]"/>
<field name="model" search="[('model', '=', 'agronomics.weighting')]"/>
</record>
<record model="ir.model.button-res.group" id="weighing_draft_button_group_agronomics">
<field name="button" ref="weighing_draft_button"/>
<record model="ir.model.button-res.group" id="weighting_draft_button_group_agronomics">
<field name="button" ref="weighting_draft_button"/>
<field name="group" ref="group_agronomics"/>
</record>
<record model="ir.model.button" id="weighing_process_button">
<record model="ir.model.button" id="weighting_process_button">
<field name="name">process</field>
<field name="string">Process</field>
<field name="model" search="[('model', '=', 'agronomics.weighing')]"/>
<field name="model" search="[('model', '=', 'agronomics.weighting')]"/>
</record>
<record model="ir.model.button-res.group" id="weighing_process_button_group_agronomics">
<field name="button" ref="weighing_process_button"/>
<record model="ir.model.button-res.group" id="weighting_process_button_group_agronomics">
<field name="button" ref="weighting_process_button"/>
<field name="group" ref="group_agronomics"/>
</record>
<record model="ir.model.button" id="weighing_analysis_button">
<record model="ir.model.button" id="weighting_analysis_button">
<field name="name">analysis</field>
<field name="string">Analysis</field>
<field name="model" search="[('model', '=', 'agronomics.weighing')]"/>
<field name="model" search="[('model', '=', 'agronomics.weighting')]"/>
</record>
<record model="ir.model.button-res.group" id="weighing_analysis_button_group_agronomics">
<field name="button" ref="weighing_analysis_button"/>
<record model="ir.model.button-res.group" id="weighting_analysis_button_group_agronomics">
<field name="button" ref="weighting_analysis_button"/>
<field name="group" ref="group_agronomics"/>
</record>
<record model="ir.model.button" id="weighing_cancel_button">
<record model="ir.model.button" id="weighting_cancel_button">
<field name="name">cancel</field>
<field name="string">Cancel</field>
<field name="model" search="[('model', '=', 'agronomics.weighing')]"/>
<field name="model" search="[('model', '=', 'agronomics.weighting')]"/>
</record>
<record model="ir.model.button-res.group" id="weighing_cancel_button_group_agronomics">
<field name="button" ref="weighing_cancel_button"/>
<record model="ir.model.button-res.group" id="weighting_cancel_button_group_agronomics">
<field name="button" ref="weighting_cancel_button"/>
<field name="group" ref="group_agronomics"/>
</record>
<record model="ir.model.button" id="weighing_done_button">
<record model="ir.model.button" id="weighting_done_button">
<field name="name">done</field>
<field name="string">Done</field>
<field name="model" search="[('model', '=', 'agronomics.weighing')]"/>
<field name="model" search="[('model', '=', 'agronomics.weighting')]"/>
</record>
<record model="ir.model.button-res.group" id="weighing_done_button_group_agronomics">
<field name="button" ref="weighing_done_button"/>
<record model="ir.model.button-res.group" id="weighting_done_button_group_agronomics">
<field name="button" ref="weighting_done_button"/>
<field name="group" ref="group_agronomics"/>
</record>