From 48ef146c442fa6ad74842f30ca38f4cd9bf3bc0f Mon Sep 17 00:00:00 2001 From: sinergia Date: Fri, 31 Mar 2023 11:31:18 -0500 Subject: [PATCH] model of products --- __init__.py | 3 ++- product.xml | 20 ++++++++++---------- tryton.cfg | 2 ++ 3 files changed, 14 insertions(+), 11 deletions(-) diff --git a/__init__.py b/__init__.py index 7c47d4a..0d8c6cb 100644 --- a/__init__.py +++ b/__init__.py @@ -2,13 +2,14 @@ # this repository contains the full copyright notices and license terms. from trytond.pool import Pool -from . import party, product, maintenance +from . import party, product, configuration, maintenance __all__ = ['register'] def register(): Pool.register( + configuration.Configuration, party.Address, party.Party, product.Template, diff --git a/product.xml b/product.xml index 01705a0..224bd16 100644 --- a/product.xml +++ b/product.xml @@ -13,15 +13,15 @@ template_tree - - - - - - - - - - + + optical_equipment.product_pattern + form + pattern_form + + + optical_equipment.product_pattern + tree + pattern_tree + diff --git a/tryton.cfg b/tryton.cfg index 46e57ca..8eefe0f 100644 --- a/tryton.cfg +++ b/tryton.cfg @@ -8,6 +8,8 @@ depends: product_image product_measurements xml: + configuration.xml + equipment.xml party.xml uom.xml product.xml