Revert "Fix typo: weighing -> weighting."

This reverts commit 0074b3ded7.
This commit is contained in:
Albert Cervera i Areny 2021-09-21 16:20:56 +02:00
parent 7887e93a31
commit 1f92a3ff39
11 changed files with 309 additions and 309 deletions

View file

@ -5,7 +5,7 @@ from trytond.pool import Pool
from . import party
from . import plot
from . import product
from . import weighting
from . import weighing
from . import quality
@ -30,10 +30,10 @@ def register():
product.ProductEcological,
product.ProductVariety,
product.Template,
weighting.WeightingCenter,
weighting.Weighting,
weighting.WeightingPlantation,
weighting.WeightingDo,
weighing.WeighingCenter,
weighing.Weighing,
weighing.WeighingPlantation,
weighing.WeighingDo,
quality.QualityTest,
quality.QuantitativeTestLine,
quality.QualitativeTestLine,

View file

@ -14,8 +14,8 @@ msgctxt "field:agronomics.beneficiary,percent:"
msgid "Percent"
msgstr "Percentatge"
msgctxt "field:agronomics.beneficiary,weighting:"
msgid "Weighting"
msgctxt "field:agronomics.beneficiary,weighing:"
msgid "Weighing"
msgstr "Pesada"
msgctxt "field:agronomics.certification,date:"
@ -210,124 +210,124 @@ msgctxt "field:agronomics.plantation,party:"
msgid "Party"
msgstr "Tercers"
msgctxt "field:agronomics.weighting,all_do:"
msgctxt "field:agronomics.weighing,all_do:"
msgid "All DO"
msgstr "Totes les DO"
msgctxt "field:agronomics.weighting,beneficiaries:"
msgctxt "field:agronomics.weighing,beneficiaries:"
msgid "Beneficiaries"
msgstr "Beneficiaris"
msgctxt "field:agronomics.weighting,crop:"
msgctxt "field:agronomics.weighing,crop:"
msgid "Crop"
msgstr "Collita"
msgctxt "field:agronomics.weighting,denomination_origin:"
msgctxt "field:agronomics.weighing,denomination_origin:"
msgid "Denomination of Origin"
msgstr "Denominació d'origen"
msgctxt "field:agronomics.weighting,do:"
msgctxt "field:agronomics.weighing,do:"
msgid "Denomination Origin"
msgstr "Denominació d'origen"
msgctxt "field:agronomics.weighting,ecological:"
msgctxt "field:agronomics.weighing,ecological:"
msgid "Ecological"
msgstr "Ecològic"
msgctxt "field:agronomics.weighting,net_weight:"
msgctxt "field:agronomics.weighing,net_weight:"
msgid "Net Weight"
msgstr "Pes net"
msgctxt "field:agronomics.weighting,netweight:"
msgctxt "field:agronomics.weighing,netweight:"
msgid "Net Weight"
msgstr "Pes net"
msgctxt "field:agronomics.weighting,number:"
msgctxt "field:agronomics.weighing,number:"
msgid "Number"
msgstr "Número"
msgctxt "field:agronomics.weighting,plantations:"
msgctxt "field:agronomics.weighing,plantations:"
msgid "plantations"
msgstr "Plantacions"
msgctxt "field:agronomics.weighting,product:"
msgctxt "field:agronomics.weighing,product:"
msgid "Product"
msgstr "Productes"
msgctxt "field:agronomics.weighting,product_created:"
msgctxt "field:agronomics.weighing,product_created:"
msgid "Product Created"
msgstr "Producte creat"
msgctxt "field:agronomics.weighting,purchase_contract:"
msgctxt "field:agronomics.weighing,purchase_contract:"
msgid "Purchase Contract"
msgstr "Contracte de compra"
msgctxt "field:agronomics.weighting,quality_test:"
msgctxt "field:agronomics.weighing,quality_test:"
msgid "Test"
msgstr "Test"
msgctxt "field:agronomics.weighting,state:"
msgctxt "field:agronomics.weighing,state:"
msgid "State"
msgstr "Estat"
msgctxt "field:agronomics.weighting,table:"
msgctxt "field:agronomics.weighing,table:"
msgid "Table"
msgstr "Taula"
msgctxt "field:agronomics.weighting,tara:"
msgctxt "field:agronomics.weighing,tara:"
msgid "Tara"
msgstr "Tara"
msgctxt "field:agronomics.weighting,variety:"
msgctxt "field:agronomics.weighing,variety:"
msgid "Variety"
msgstr "Varietat"
msgctxt "field:agronomics.weighting,weighting_center:"
msgid "Weighting Center"
msgctxt "field:agronomics.weighing,weighing_center:"
msgid "Weighing Center"
msgstr "Centre de pesada"
msgctxt "field:agronomics.weighting,weighting_date:"
msgctxt "field:agronomics.weighing,weighing_date:"
msgid "Date"
msgstr "Data"
msgctxt "field:agronomics.weighting,weight:"
msgctxt "field:agronomics.weighing,weight:"
msgid "Weight"
msgstr "Pes"
msgctxt "field:agronomics.weighting-agronomics.do,do:"
msgctxt "field:agronomics.weighing-agronomics.do,do:"
msgid "Denomination Origin"
msgstr "Denominació d'origen"
msgctxt "field:agronomics.weighting-agronomics.do,weighting:"
msgid "Weighting"
msgctxt "field:agronomics.weighing-agronomics.do,weighing:"
msgid "Weighing"
msgstr "Pesada"
msgctxt "field:agronomics.weighting-agronomics.plantation,Plantation:"
msgctxt "field:agronomics.weighing-agronomics.plantation,Plantation:"
msgid "Plantation"
msgstr "Plantacións"
msgctxt "field:agronomics.weighting-agronomics.plantation,plantation:"
msgctxt "field:agronomics.weighing-agronomics.plantation,plantation:"
msgid "Plantation"
msgstr "Plantacións"
msgctxt "field:agronomics.weighting-agronomics.plantation,weighting:"
msgid "Weighting"
msgctxt "field:agronomics.weighing-agronomics.plantation,weighing:"
msgid "Weighing"
msgstr "Pesada"
msgctxt "field:agronomics.weighting-agronomics.plantations,Plantation:"
msgctxt "field:agronomics.weighing-agronomics.plantations,Plantation:"
msgid "Plantation"
msgstr "Plantacións"
msgctxt "field:agronomics.weighting-agronomics.plantations,weighting:"
msgid "Weighting"
msgctxt "field:agronomics.weighing-agronomics.plantations,weighing:"
msgid "Weighing"
msgstr "Pesada"
msgctxt "field:agronomics.weighting.center,name:"
msgctxt "field:agronomics.weighing.center,name:"
msgid "Name"
msgstr "Nom"
msgctxt "field:agronomics.weighting.center,weighting_sequence:"
msgid "Weighting Sequence"
msgctxt "field:agronomics.weighing.center,weighing_sequence:"
msgid "Weighing 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_weighting:"
msgid "Quality Weighting"
msgctxt "field:product.product,quality_weighing:"
msgid "Quality Weighing"
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_weighting:"
msgid "Quality Weighting"
msgctxt "field:product.template,quality_weighing:"
msgid "Quality Weighing"
msgstr "Qualitat pesada"
msgctxt "model:agronomics.beneficiary,name:"
@ -490,24 +490,24 @@ msgctxt "model:agronomics.plantation,name:"
msgid "Plantation"
msgstr "Plantació"
msgctxt "model:agronomics.weighting,name:"
msgid "Weighting"
msgctxt "model:agronomics.weighing,name:"
msgid "Weighing"
msgstr "Pesada"
msgctxt "model:agronomics.weighting-agronomics.do,name:"
msgid "Weighting - Denomination Origin"
msgctxt "model:agronomics.weighing-agronomics.do,name:"
msgid "Weighing - Denomination Origin"
msgstr "Pesada - Denominació Origen"
msgctxt "model:agronomics.weighting-agronomics.plantation,name:"
msgid "Weighting - Plantations"
msgctxt "model:agronomics.weighing-agronomics.plantation,name:"
msgid "Weighing - Plantations"
msgstr "Pesada - Plantacions"
msgctxt "model:agronomics.weighting-agronomics.plantations,name:"
msgid "Weighting - Plantations"
msgctxt "model:agronomics.weighing-agronomics.plantations,name:"
msgid "Weighing - Plantations"
msgstr "Pesada - Plantacions"
msgctxt "model:agronomics.weighting.center,name:"
msgid "Weighting Center"
msgctxt "model:agronomics.weighing.center,name:"
msgid "Weighing 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_weighting_action"
msgid "Weighting"
msgctxt "model:ir.action,name:act_weighing_action"
msgid "Weighing"
msgstr "Pesada"
msgctxt "model:ir.action,name:act_weighting_center_action"
msgid "Weighting Center"
msgctxt "model:ir.action,name:act_weighing_center_action"
msgid "Weighing Center"
msgstr "Centre de pesada"
msgctxt "model:ir.action.act_window.domain,name:act_weighting_domain_all"
msgctxt "model:ir.action.act_window.domain,name:act_weighing_domain_all"
msgid "All"
msgstr "Tots"
msgctxt "model:ir.action.act_window.domain,name:act_weighting_domain_analysis"
msgctxt "model:ir.action.act_window.domain,name:act_weighing_domain_analysis"
msgid "In Analysis"
msgstr "En Anàlisi"
msgctxt "model:ir.action.act_window.domain,name:act_weighting_domain_draft"
msgctxt "model:ir.action.act_window.domain,name:act_weighing_domain_draft"
msgid "Draft"
msgstr "Esborrany"
msgctxt ""
"model:ir.action.act_window.domain,name:act_weighting_domain_processing"
"model:ir.action.act_window.domain,name:act_weighing_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:weighting_analysis_button"
msgctxt "model:ir.model.button,string:weighing_analysis_button"
msgid "Analysis"
msgstr "Anàlisi"
msgctxt "model:ir.model.button,string:weighting_cancel_button"
msgctxt "model:ir.model.button,string:weighing_cancel_button"
msgid "Cancel"
msgstr "Cancel·lat"
msgctxt "model:ir.model.button,string:weighting_done_button"
msgctxt "model:ir.model.button,string:weighing_done_button"
msgid "Done"
msgstr "Realitzat"
msgctxt "model:ir.model.button,string:weighting_draft_button"
msgctxt "model:ir.model.button,string:weighing_draft_button"
msgid "Draft"
msgstr "Esborrany"
msgctxt "model:ir.model.button,string:weighting_process_button"
msgctxt "model:ir.model.button,string:weighing_process_button"
msgid "Process"
msgstr "Processa"
msgctxt "model:ir.sequence,name:sequence_weighting"
msgid "Weighting"
msgctxt "model:ir.sequence,name:sequence_weighing"
msgid "Weighing"
msgstr "Pesada"
msgctxt "model:ir.sequence.type,name:sequence_type_weighting"
msgid "Weighting"
msgctxt "model:ir.sequence.type,name:sequence_type_weighing"
msgid "Weighing"
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_weighting_center_list"
msgid "Weighting Center"
msgctxt "model:ir.ui.menu,name:menu_weighing_center_list"
msgid "Weighing Center"
msgstr "Centre de pesada"
msgctxt "model:ir.ui.menu,name:menu_weighting_list"
msgid "Weighting"
msgctxt "model:ir.ui.menu,name:menu_weighing_list"
msgid "Weighing"
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.weighting,state:"
msgctxt "selection:agronomics.weighing,state:"
msgid "Cancelled"
msgstr "Cancel·lat"
msgctxt "selection:agronomics.weighting,state:"
msgctxt "selection:agronomics.weighing,state:"
msgid "Done"
msgstr "Realitzat"
msgctxt "selection:agronomics.weighting,state:"
msgctxt "selection:agronomics.weighing,state:"
msgid "Draft"
msgstr "Esborrany"
msgctxt "selection:agronomics.weighting,state:"
msgctxt "selection:agronomics.weighing,state:"
msgid "In Analysis"
msgstr "En anàlisis"
msgctxt "selection:agronomics.weighting,state:"
msgctxt "selection:agronomics.weighing,state:"
msgid "Processing"
msgstr "Processos"

View file

@ -14,8 +14,8 @@ msgctxt "field:agronomics.beneficiary,percent:"
msgid "Percent"
msgstr "Porcentaje"
msgctxt "field:agronomics.beneficiary,weighting:"
msgid "Weighting"
msgctxt "field:agronomics.beneficiary,weighing:"
msgid "Weighing"
msgstr "Pesada"
msgctxt "field:agronomics.certification,date:"
@ -210,124 +210,124 @@ msgctxt "field:agronomics.plantation,party:"
msgid "Party"
msgstr "Terceros"
msgctxt "field:agronomics.weighting,all_do:"
msgctxt "field:agronomics.weighing,all_do:"
msgid "All DO"
msgstr "Todos los DO"
msgctxt "field:agronomics.weighting,beneficiaries:"
msgctxt "field:agronomics.weighing,beneficiaries:"
msgid "Beneficiaries"
msgstr "Beneficiarios"
msgctxt "field:agronomics.weighting,crop:"
msgctxt "field:agronomics.weighing,crop:"
msgid "Crop"
msgstr "Cosecha"
msgctxt "field:agronomics.weighting,denomination_origin:"
msgctxt "field:agronomics.weighing,denomination_origin:"
msgid "Denomination of Origin"
msgstr "Denominación de origen"
msgctxt "field:agronomics.weighting,do:"
msgctxt "field:agronomics.weighing,do:"
msgid "Denomination Origin"
msgstr "Denominación de origen"
msgctxt "field:agronomics.weighting,ecological:"
msgctxt "field:agronomics.weighing,ecological:"
msgid "Ecological"
msgstr "Ecológico"
msgctxt "field:agronomics.weighting,net_weight:"
msgctxt "field:agronomics.weighing,net_weight:"
msgid "Net Weight"
msgstr "Peso neto"
msgctxt "field:agronomics.weighting,netweight:"
msgctxt "field:agronomics.weighing,netweight:"
msgid "Net Weight"
msgstr "Peso neto"
msgctxt "field:agronomics.weighting,number:"
msgctxt "field:agronomics.weighing,number:"
msgid "Number"
msgstr "Número"
msgctxt "field:agronomics.weighting,plantations:"
msgctxt "field:agronomics.weighing,plantations:"
msgid "plantations"
msgstr "Plantación"
msgctxt "field:agronomics.weighting,product:"
msgctxt "field:agronomics.weighing,product:"
msgid "Product"
msgstr "Productos"
msgctxt "field:agronomics.weighting,product_created:"
msgctxt "field:agronomics.weighing,product_created:"
msgid "Product Created"
msgstr ""
msgctxt "field:agronomics.weighting,purchase_contract:"
msgctxt "field:agronomics.weighing,purchase_contract:"
msgid "Purchase Contract"
msgstr "Contrato de compra"
msgctxt "field:agronomics.weighting,quality_test:"
msgctxt "field:agronomics.weighing,quality_test:"
msgid "Test"
msgstr "Test"
msgctxt "field:agronomics.weighting,state:"
msgctxt "field:agronomics.weighing,state:"
msgid "State"
msgstr "Estado"
msgctxt "field:agronomics.weighting,table:"
msgctxt "field:agronomics.weighing,table:"
msgid "Table"
msgstr "Mesa"
msgctxt "field:agronomics.weighting,tara:"
msgctxt "field:agronomics.weighing,tara:"
msgid "Tara"
msgstr "Tara"
msgctxt "field:agronomics.weighting,variety:"
msgctxt "field:agronomics.weighing,variety:"
msgid "Variety"
msgstr "Variedad"
msgctxt "field:agronomics.weighting,weighting_center:"
msgid "Weighting Center"
msgctxt "field:agronomics.weighing,weighing_center:"
msgid "Weighing Center"
msgstr "Centro de pesada"
msgctxt "field:agronomics.weighting,weighting_date:"
msgctxt "field:agronomics.weighing,weighing_date:"
msgid "Date"
msgstr "Fecha"
msgctxt "field:agronomics.weighting,weight:"
msgctxt "field:agronomics.weighing,weight:"
msgid "Weight"
msgstr "Peso"
msgctxt "field:agronomics.weighting-agronomics.do,do:"
msgctxt "field:agronomics.weighing-agronomics.do,do:"
msgid "Denomination Origin"
msgstr "Denominación de origen"
msgctxt "field:agronomics.weighting-agronomics.do,weighting:"
msgid "Weighting"
msgctxt "field:agronomics.weighing-agronomics.do,weighing:"
msgid "Weighing"
msgstr "Pesada"
msgctxt "field:agronomics.weighting-agronomics.plantation,Plantation:"
msgctxt "field:agronomics.weighing-agronomics.plantation,Plantation:"
msgid "Plantation"
msgstr "Plantaciónes"
msgctxt "field:agronomics.weighting-agronomics.plantation,plantation:"
msgctxt "field:agronomics.weighing-agronomics.plantation,plantation:"
msgid "Plantation"
msgstr "Plantaciónes"
msgctxt "field:agronomics.weighting-agronomics.plantation,weighting:"
msgid "Weighting"
msgctxt "field:agronomics.weighing-agronomics.plantation,weighing:"
msgid "Weighing"
msgstr "Pesada"
msgctxt "field:agronomics.weighting-agronomics.plantations,Plantation:"
msgctxt "field:agronomics.weighing-agronomics.plantations,Plantation:"
msgid "Plantation"
msgstr "Plantaciónes"
msgctxt "field:agronomics.weighting-agronomics.plantations,weighting:"
msgid "Weighting"
msgctxt "field:agronomics.weighing-agronomics.plantations,weighing:"
msgid "Weighing"
msgstr "Pesada"
msgctxt "field:agronomics.weighting.center,name:"
msgctxt "field:agronomics.weighing.center,name:"
msgid "Name"
msgstr "Nombre"
msgctxt "field:agronomics.weighting.center,weighting_sequence:"
msgid "Weighting Sequence"
msgctxt "field:agronomics.weighing.center,weighing_sequence:"
msgid "Weighing 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_weighting:"
msgid "Quality Weighting"
msgctxt "field:product.product,quality_weighing:"
msgid "Quality Weighing"
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_weighting:"
msgid "Quality Weighting"
msgctxt "field:product.template,quality_weighing:"
msgid "Quality Weighing"
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.weighting,name:"
msgid "Weighting"
msgctxt "model:agronomics.weighing,name:"
msgid "Weighing"
msgstr "Pesada"
msgctxt "model:agronomics.weighting-agronomics.do,name:"
msgid "Weighting - Denomination Origin"
msgctxt "model:agronomics.weighing-agronomics.do,name:"
msgid "Weighing - Denomination Origin"
msgstr "Pesada - Denominación de origen"
msgctxt "model:agronomics.weighting-agronomics.plantation,name:"
msgid "Weighting - Plantations"
msgctxt "model:agronomics.weighing-agronomics.plantation,name:"
msgid "Weighing - Plantations"
msgstr "Pesada - Plantación"
msgctxt "model:agronomics.weighting-agronomics.plantations,name:"
msgid "Weighting - Plantations"
msgctxt "model:agronomics.weighing-agronomics.plantations,name:"
msgid "Weighing - Plantations"
msgstr "Pesada - Plantación"
msgctxt "model:agronomics.weighting.center,name:"
msgid "Weighting Center"
msgctxt "model:agronomics.weighing.center,name:"
msgid "Weighing 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_weighting_action"
msgid "Weighting"
msgctxt "model:ir.action,name:act_weighing_action"
msgid "Weighing"
msgstr "Pesada"
msgctxt "model:ir.action,name:act_weighting_center_action"
msgid "Weighting Center"
msgctxt "model:ir.action,name:act_weighing_center_action"
msgid "Weighing Center"
msgstr "Centro de pesada"
msgctxt "model:ir.action.act_window.domain,name:act_weighting_domain_all"
msgctxt "model:ir.action.act_window.domain,name:act_weighing_domain_all"
msgid "All"
msgstr "Todos"
msgctxt "model:ir.action.act_window.domain,name:act_weighting_domain_analysis"
msgctxt "model:ir.action.act_window.domain,name:act_weighing_domain_analysis"
msgid "In Analysis"
msgstr ""
msgctxt "model:ir.action.act_window.domain,name:act_weighting_domain_draft"
msgctxt "model:ir.action.act_window.domain,name:act_weighing_domain_draft"
msgid "Draft"
msgstr "Esborany"
msgctxt ""
"model:ir.action.act_window.domain,name:act_weighting_domain_processing"
"model:ir.action.act_window.domain,name:act_weighing_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:weighting_analysis_button"
msgctxt "model:ir.model.button,string:weighing_analysis_button"
msgid "Analysis"
msgstr "Análisis"
msgctxt "model:ir.model.button,string:weighting_cancel_button"
msgctxt "model:ir.model.button,string:weighing_cancel_button"
msgid "Cancel"
msgstr "Cancel·lar"
msgctxt "model:ir.model.button,string:weighting_done_button"
msgctxt "model:ir.model.button,string:weighing_done_button"
msgid "Done"
msgstr "Realizado"
msgctxt "model:ir.model.button,string:weighting_draft_button"
msgctxt "model:ir.model.button,string:weighing_draft_button"
msgid "Draft"
msgstr "Esborany"
msgctxt "model:ir.model.button,string:weighting_process_button"
msgctxt "model:ir.model.button,string:weighing_process_button"
msgid "Process"
msgstr "Procesar"
msgctxt "model:ir.sequence,name:sequence_weighting"
msgid "Weighting"
msgctxt "model:ir.sequence,name:sequence_weighing"
msgid "Weighing"
msgstr "Pesada"
msgctxt "model:ir.sequence.type,name:sequence_type_weighting"
msgid "Weighting"
msgctxt "model:ir.sequence.type,name:sequence_type_weighing"
msgid "Weighing"
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_weighting_center_list"
msgid "Weighting Center"
msgctxt "model:ir.ui.menu,name:menu_weighing_center_list"
msgid "Weighing Center"
msgstr "Centro de pesada"
msgctxt "model:ir.ui.menu,name:menu_weighting_list"
msgid "Weighting"
msgctxt "model:ir.ui.menu,name:menu_weighing_list"
msgid "Weighing"
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.weighting,state:"
msgctxt "selection:agronomics.weighing,state:"
msgid "Cancelled"
msgstr "Cancelado"
msgctxt "selection:agronomics.weighting,state:"
msgctxt "selection:agronomics.weighing,state:"
msgid "Done"
msgstr "Realizado"
msgctxt "selection:agronomics.weighting,state:"
msgctxt "selection:agronomics.weighing,state:"
msgid "Draft"
msgstr "Esborany"
msgctxt "selection:agronomics.weighting,state:"
msgctxt "selection:agronomics.weighing,state:"
msgid "In Analysis"
msgstr "En Análisis"
msgctxt "selection:agronomics.weighting,state:"
msgctxt "selection:agronomics.weighing,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')
weighting = fields.Many2One('agronomics.weighting', 'Weighting')
weighing = fields.Many2One('agronomics.weighing', 'Weighing')

View file

@ -53,7 +53,7 @@ class Template(metaclass=PoolMeta):
}, depends=['agronomic_type']), 'get_capacity',
searcher='search_capacity')
quality_weighting = fields.Many2One('quality.template', 'Quality Weighting')
quality_weighing = fields.Many2One('quality.template', 'Quality Weighing')
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_weighting"/>
<field name="quality_weighting"/>
<label name="quality_weighing"/>
<field name="quality_weighing"/>
</xpath>
</data>

View file

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

View file

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

View file

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

View file

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