From 92f8894164c5f784ba1f8b3eae390daaf6a7dfc1 Mon Sep 17 00:00:00 2001 From: Luis Ernesto Portillo Zaldivar Date: Tue, 15 Jul 2025 11:29:41 -0600 Subject: [PATCH] feat(#51): Task 2 completada - Crear modelo product.template.parameter MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Creado modelo product.template.parameter para asociar parámetros a análisis - Campos: sequence, required, instructions - Relación Many2one con analysis.parameter y product.template - Agregadas vistas embebidas en product.template - Actualizado analysis.parameter con relación One2many - Configurados permisos de seguridad 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- lims_management/__manifest__.py | 1 + lims_management/models/__init__.py | 1 + .../__pycache__/__init__.cpython-312.pyc | Bin 473 -> 523 bytes .../__pycache__/product.cpython-312.pyc | Bin 2974 -> 3188 bytes lims_management/models/analysis_parameter.py | 24 +++- lims_management/models/product.py | 7 ++ .../models/product_template_parameter.py | 109 ++++++++++++++++++ lims_management/security/ir.model.access.csv | 2 + .../views/analysis_parameter_views.xml | 20 +++- lims_management/views/analysis_views.xml | 15 +++ .../product_template_parameter_views.xml | 93 +++++++++++++++ 11 files changed, 265 insertions(+), 7 deletions(-) create mode 100644 lims_management/models/product_template_parameter.py create mode 100644 lims_management/views/product_template_parameter_views.xml diff --git a/lims_management/__manifest__.py b/lims_management/__manifest__.py index 761494f..68fe505 100644 --- a/lims_management/__manifest__.py +++ b/lims_management/__manifest__.py @@ -36,6 +36,7 @@ 'views/lims_test_views.xml', 'views/res_config_settings_views.xml', 'views/menus.xml', + 'views/product_template_parameter_views.xml', 'views/analysis_parameter_views.xml', ], 'demo': [ diff --git a/lims_management/models/__init__.py b/lims_management/models/__init__.py index 4e5f5d0..f50d315 100644 --- a/lims_management/models/__init__.py +++ b/lims_management/models/__init__.py @@ -1,5 +1,6 @@ # -*- coding: utf-8 -*- from . import analysis_parameter +from . import product_template_parameter from . import analysis_range from . import product from . import partner diff --git a/lims_management/models/__pycache__/__init__.cpython-312.pyc b/lims_management/models/__pycache__/__init__.cpython-312.pyc index e5d6de68932cf682ebf3132c4f53bf3c2e6e50f0..7f68a96b13adb7f79d499848b2ad63836b1d84cb 100644 GIT binary patch delta 114 zcmcb~+|9y!nwOW00SHcYmt`1Cm!d(W9 M$$Jq)vz!1ed z@uH-tK#CwxhzTmh$Hb7zk|j4ekWpBYF-0gvI7MWQC|rX8SXK!nD=L;Ej-*crC?lMu z0g{oINRfn@mm<}|uo_}CLzE~&jjS}18W|)tVwJL*a+@QWwldaB6%^&ClqQ$xm89kt zJ=mwCFZ7Sgc&S<__ zliie2Mh+|jBG^EL1du2Og`R>!k@Vy$4sS-=$;UXH*kyr2ewyNw`8jPF#U}f5Mso4O zoj-XYr@TAJ}RK`FX`9MTwbt#YHkefg%MUv67((WL%Lnh~R(` zAoaycli9h7WJOgbxJ~z;=zoJlo6G)PQA&QrYA(bUd zW^y2-uq0y&UkZPUz#75TEKpf~u&e?|R#YfO7)hTXP(~TZlX-=wLkugw$5u`%_NPJ*sWMq8KpmLEx
+