From 488fb15498eea3599aaef7abd3c11a65d82428fb Mon Sep 17 00:00:00 2001 From: laurentbarontini Date: Thu, 21 May 2026 19:29:01 +0200 Subject: [PATCH] Import prices --- modules/purchase_trade/__init__.py | 103 +++++++++++++++-------------- 1 file changed, 53 insertions(+), 50 deletions(-) diff --git a/modules/purchase_trade/__init__.py b/modules/purchase_trade/__init__.py index 50245c0..071a8ca 100755 --- a/modules/purchase_trade/__init__.py +++ b/modules/purchase_trade/__init__.py @@ -3,10 +3,10 @@ from trytond.pool import Pool -from . import ( - account, - configuration, - purchase, +from . import ( + account, + configuration, + purchase, sale, global_reporting, stock, @@ -55,15 +55,18 @@ def register(): incoming.ImportSwift, lc.LCMT700, lc.LCMessage, - lc.CreateLCStart, - global_reporting.GRConfiguration, - configuration.Configuration, - module='purchase_trade', type_='model') + lc.CreateLCStart, + global_reporting.GRConfiguration, + configuration.Configuration, + pricing.ImportPricesStart, + pricing.ImportPricesResult, + module='purchase_trade', type_='model') Pool.register( incoming.ImportSwift, incoming.PrepareDocuments, incoming.AnalyzeConditions, lc.CreateLCWizard, + pricing.ImportPrices, module='purchase_trade', type_='wizard' ) Pool.register( @@ -107,13 +110,13 @@ def register(): purchase.FeeLots, valuation.Valuation, valuation.ValuationLine, - valuation.ValuationDyn, - valuation.ValuationReport, - valuation.ValuationReportContext, - valuation.ValuationProcessDimension, - valuation.ValuationProcessStart, - valuation.ValuationProcessResult, - derivative.Derivative, + valuation.ValuationDyn, + valuation.ValuationReport, + valuation.ValuationReportContext, + valuation.ValuationProcessDimension, + valuation.ValuationProcessStart, + valuation.ValuationProcessResult, + derivative.Derivative, derivative.DerivativeMatch, derivative.MatchWizardStart, derivative.DerivativeReport, @@ -190,15 +193,15 @@ def register(): dimension.AnalyticDimensionAssignment, weight_report.WeightReport, module='purchase', type_='model') - Pool.register( - account.PhysicalTradeIFRS, - module='purchase_trade', type_='model') - Pool.register( - configuration.AccountConfiguration, - configuration.AccountConfigurationDefaultAccount, - invoice.InvoicePaddingReport, - invoice.InvoicePaddingContext, - module='purchase_trade', type_='model') + Pool.register( + account.PhysicalTradeIFRS, + module='purchase_trade', type_='model') + Pool.register( + configuration.AccountConfiguration, + configuration.AccountConfigurationDefaultAccount, + invoice.InvoicePaddingReport, + invoice.InvoicePaddingContext, + module='purchase_trade', type_='model') Pool.register( invoice.Invoice, invoice.InvoiceLine, @@ -248,12 +251,12 @@ def register(): sale.AnalyticDimensionAssignment, sale.PriceComposition, module='sale', type_='model') - Pool.register( - lot.LotShipping, - lot.LotMatching, - lot.LotGoMatching, - #lot.LotMatchingUnit, - lot.LotWeighing, + Pool.register( + lot.LotShipping, + lot.LotMatching, + lot.LotGoMatching, + #lot.LotMatchingUnit, + lot.LotWeighing, lot.CreateContracts, lot.LotUnmatch, lot.LotUnship, @@ -270,24 +273,24 @@ def register(): purchase.InvoicePayment, stock.ImportSoFWizard, dashboard.BotWizard, - dashboard.DashboardLoader, - forex.ForexReport, - purchase.PnlReport, - purchase.PositionReport, - valuation.ValuationProcess, - derivative.DerivativeMatchWizard, - module='purchase', type_='wizard') - Pool.register( - sale.SaleCreatePurchase, - sale.SaleAllocationsWizard, - module='sale', type_='wizard') - Pool.register( - invoice.InvoiceReport, - invoice.SaleReport, - invoice.PurchaseReport, - stock.ShipmentShippingReport, - stock.ShipmentInsuranceReport, - stock.ShipmentCOOReport, - stock.ShipmentPackingListReport, - module='purchase_trade', type_='report') + dashboard.DashboardLoader, + forex.ForexReport, + purchase.PnlReport, + purchase.PositionReport, + valuation.ValuationProcess, + derivative.DerivativeMatchWizard, + module='purchase', type_='wizard') + Pool.register( + sale.SaleCreatePurchase, + sale.SaleAllocationsWizard, + module='sale', type_='wizard') + Pool.register( + invoice.InvoiceReport, + invoice.SaleReport, + invoice.PurchaseReport, + stock.ShipmentShippingReport, + stock.ShipmentInsuranceReport, + stock.ShipmentCOOReport, + stock.ShipmentPackingListReport, + module='purchase_trade', type_='report')