=== PRIMARY KEYS ===
  back_to_back: PK(id)
  commission: PK(id)
  commission_agent: PK(id)
  commission_plan: PK(id)
  commission_plan_line: PK(id)
  currency_currency: PK(id)
  currency_currency_rate: PK(id)
  derivative_derivative: PK(id)
  derivative_match: PK(id)
  fee_fee: PK(id)
  fee_lots: PK(id)
  forex_bi: PK(id)
  forex_category: PK(id)
  forex_cover_fees: PK(id)
  forex_cover_physical_contract: PK(id)
  forex_cover_physical_sale: PK(id)
  forex_cron: PK(id)
  forex_forex: PK(id)
  lc_letter_incoming: PK(id)
  lc_letter_outgoing: PK(id)
  lc_mt700: PK(id)
  lot_accounting: PK(id)
  lot_fcr: PK(id)
  lot_lot: PK(id)
  lot_move: PK(id)
  lot_qt: PK(id)
  lot_qt_hist: PK(id)
  lot_qt_type: PK(id)
  lot_split_merge: PK(id)
  mtm_component: PK(id)
  mtm_scenario: PK(id)
  mtm_snapshot: PK(id)
  mtm_strategy: PK(id)
  open_position: PK(id)
  optional_scenario: PK(id)
  party_party: PK(id)
  pnl_bi: PK(id)
  position_bi: PK(id)
  price_area: PK(id)
  price_calendar: PK(id)
  price_calendar_line: PK(id)
  price_composite: PK(id)
  price_composition: PK(id)
  price_cron: PK(id)
  price_fixtype: PK(id)
  price_matrix: PK(id)
  price_matrix_line: PK(id)
  price_price: PK(id)
  price_price_value: PK(id)
  price_product: PK(id)
  pricing_component: PK(id)
  pricing_estimated: PK(id)
  pricing_period: PK(id)
  pricing_pricing: PK(id)
  pricing_summary: PK(id)
  pricing_trigger: PK(id)
  product_product: PK(id)
  product_template: PK(id)
  purchase_association: PK(id)
  purchase_certification: PK(id)
  purchase_component: PK(id)
  purchase_crop: PK(id)
  purchase_derivative: PK(id)
  purchase_estimated: PK(id)
  purchase_fee: PK(id)
  purchase_fee_lots: PK(id)
  purchase_line: PK(id)
  purchase_lot: PK(id)
  purchase_lot_qt: PK(id)
  purchase_period: PK(id)
  purchase_pricing: PK(id)
  purchase_purchase: PK(id)
  purchase_qt_type: PK(id)
  purchase_strategy: PK(id)
  purchase_trade_payment_term_component: PK(id)
  purchase_trigger: PK(id)
  purchase_valuation: PK(id)
  purchase_weight_basis: PK(id)
  risk_perf: PK(id)
  risk_position: PK(id)
  risk_position_var: PK(id)
  risk_var: PK(id)
  risk_var_line: PK(id)
  risk_var_values: PK(id)
  sale_derivative: PK(id)
  sale_fee: PK(id)
  sale_invoice_line: PK(id)
  sale_line: PK(id)
  sale_opportunity: PK(id)
  sale_opportunity_line: PK(id)
  sale_sale: PK(id)
  sale_strategy: PK(id)
  sale_valuation: PK(id)
  shipment_wr: PK(id)
  stock_location: PK(id)
  stock_move: PK(id)
  stock_shipment_drop: PK(id)
  stock_shipment_in: PK(id)
  stock_shipment_in_return: PK(id)
  stock_shipment_out: PK(id)
  stock_shipment_out_return: PK(id)
  trade_vessel: PK(id)
  valuation_valuation: PK(id)
  valuation_valuation_line: PK(id)

=== FOREIGN KEY RELATIONSHIPS ===
  account_account.second_currency -> currency_currency.id  [account_account_second_currency_fkey]
  account_invoice.agent -> commission_agent.id  [account_invoice_agent_fkey]
  account_invoice.currency -> currency_currency.id  [account_invoice_currency_fkey]
  account_invoice.party -> party_party.id  [account_invoice_party_fkey]
  account_invoice_alternative_payee.party -> party_party.id  [account_invoice_alternative_payee_party_fkey]
  account_invoice_line.currency -> currency_currency.id  [account_invoice_line_currency_fkey]
  account_invoice_line.fee -> fee_fee.id  [account_invoice_line_fee_fkey]
  account_invoice_line.lot -> lot_lot.id  [account_invoice_line_lot_fkey]
  account_invoice_line.party -> party_party.id  [account_invoice_line_party_fkey]
  account_invoice_line.principal -> commission_agent.id  [account_invoice_line_principal_fkey]
  account_invoice_line.product -> product_product.id  [account_invoice_line_product_fkey]
  account_invoice_line-stock_move.stock_move -> stock_move.id  [account_invoice_line-stock_move_stock_move_fkey]
  account_invoice_payment_term_line.currency -> currency_currency.id  [account_invoice_payment_term_line_currency_fkey]
  account_landed_cost-product_product.product -> product_product.id  [account_landed_cost-product_product_product_fkey]
  account_landed_cost-stock_shipment_in.shipment -> stock_shipment_in.id  [account_landed_cost-stock_shipment_in_shipment_fkey]
  account_move_line.fee -> fee_fee.id  [account_move_line_fee_fkey]
  account_move_line.lot -> lot_lot.id  [account_move_line_lot_fkey]
  account_move_line.party -> party_party.id  [account_move_line_party_fkey]
  account_move_line.second_currency -> currency_currency.id  [account_move_line_second_currency_fkey]
  account_payment.party -> party_party.id  [account_payment_party_fkey]
  account_payment_journal.currency -> currency_currency.id  [account_payment_journal_currency_fkey]
  account_shipment_cost-stock_shipment_out.shipment -> stock_shipment_out.id  [account_shipment_cost-stock_shipment_out_shipment_fkey]
  account_shipment_cost-stock_shipment_out_return.shipment -> stock_shipment_out_return.id  [account_shipment_cost-stock_shipment_out_return_shipment_fkey]
  analytic_account_rule.party -> party_party.id  [analytic_account_rule_party_fkey]
  analytic_account_rule.product -> product_product.id  [analytic_account_rule_product_fkey]
  analytic_dimension_assignment.purchase -> purchase_purchase.id  [analytic_dimension_assignment_purchase_fkey]
  analytic_dimension_assignment.sale -> sale_sale.id  [analytic_dimension_assignment_sale_fkey]
  bank.party -> party_party.id  [bank_party_fkey]
  bank_account.currency -> currency_currency.id  [bank_account_currency_fkey]
  bank_account-party_party.owner -> party_party.id  [bank_account-party_party_owner_fkey]
  carrier.carrier_product -> product_product.id  [carrier_carrier_product_fkey]
  carrier.party -> party_party.id  [carrier_party_fkey]
  commission.agent -> commission_agent.id  [commission_agent_fkey]
  commission.invoice_line -> account_invoice_line.id  [commission_invoice_line_fkey]
  commission.product -> product_product.id  [commission_product_fkey]
  commission_agent.company -> company_company.id  [commission_agent_company_fkey]
  commission_agent.currency -> currency_currency.id  [commission_agent_currency_fkey]
  commission_agent.party -> party_party.id  [commission_agent_party_fkey]
  commission_agent.plan -> commission_plan.id  [commission_agent_plan_fkey]
  commission_agent_selection.agent -> commission_agent.id  [commission_agent_selection_agent_fkey]
  commission_agent_selection.party -> party_party.id  [commission_agent_selection_party_fkey]
  commission_plan.commission_product -> product_product.id  [commission_plan_commission_product_fkey]
  commission_plan_line.category -> product_category.id  [commission_plan_line_category_fkey]
  commission_plan_line.plan -> commission_plan.id  [commission_plan_line_plan_fkey]
  commission_plan_line.product -> product_product.id  [commission_plan_line_product_fkey]
  company_company.currency -> currency_currency.id  [company_company_currency_fkey]
  company_company.party -> party_party.id  [company_company_party_fkey]
  company_employee.party -> party_party.id  [company_employee_party_fkey]
  contract_document_type.lc_in -> lc_letter_incoming.id  [contract_document_type_lc_in_fkey]
  contract_document_type.lc_out -> lc_letter_outgoing.id  [contract_document_type_lc_out_fkey]
  contract_document_type.purchase -> purchase_purchase.id  [contract_document_type_purchase_fkey]
  contract_document_type.sale -> sale_sale.id  [contract_document_type_sale_fkey]
  currency_cron.currency -> currency_currency.id  [currency_cron_currency_fkey]
  currency_cron-currency_currency.currency -> currency_currency.id  [currency_cron-currency_currency_currency_fkey]
  currency_currency_rate.currency -> currency_currency.id  [currency_currency_rate_currency_fkey]
  currency_linked.currency -> currency_currency.id  [currency_linked_currency_fkey]
  derivative_derivative.line -> purchase_line.id  [derivative_derivative_line_fkey]
  derivative_derivative.party -> party_party.id  [derivative_derivative_party_fkey]
  derivative_derivative.price_index -> price_price.id  [derivative_derivative_price_index_fkey]
  derivative_derivative.product -> product_product.id  [derivative_derivative_product_fkey]
  derivative_derivative.purchase -> purchase_purchase.id  [derivative_derivative_purchase_fkey]
  derivative_derivative.sale -> sale_sale.id  [derivative_derivative_sale_fkey]
  derivative_derivative.sale_line -> sale_line.id  [derivative_derivative_sale_line_fkey]
  derivative_match.long_position -> derivative_derivative.id  [derivative_match_long_position_fkey]
  derivative_match.short_position -> derivative_derivative.id  [derivative_match_short_position_fkey]
  document_incoming_configuration.default_supplier -> party_party.id  [document_incoming_configuration_default_supplier_fkey]
  fee_fee.currency -> currency_currency.id  [fee_fee_currency_fkey]
  fee_fee.line -> purchase_line.id  [fee_fee_line_fkey]
  fee_fee.product -> product_product.id  [fee_fee_product_fkey]
  fee_fee.purchase -> purchase_purchase.id  [fee_fee_purchase_fkey]
  fee_fee.qt_state -> lot_qt_type.id  [fee_fee_qt_state_fkey]
  fee_fee.sale_line -> sale_line.id  [fee_fee_sale_line_fkey]
  fee_fee.shipment_in -> stock_shipment_in.id  [fee_fee_shipment_in_fkey]
  fee_fee.shipment_internal -> stock_shipment_internal.id  [fee_fee_shipment_internal_fkey]
  fee_fee.shipment_out -> stock_shipment_out.id  [fee_fee_shipment_out_fkey]
  fee_fee.supplier -> party_party.id  [fee_fee_supplier_fkey]
  fee_fee.unit -> product_uom.id  [fee_fee_unit_fkey]
  fee_lots.fee -> fee_fee.id  [fee_lots_fee_fkey]
  fee_lots.line -> purchase_line.id  [fee_lots_line_fkey]
  fee_lots.lot -> lot_lot.id  [fee_lots_lot_fkey]
  fee_lots.sale_line -> sale_line.id  [fee_lots_sale_line_fkey]
  forex_cover_fees.currency -> currency_currency.id  [forex_cover_fees_currency_fkey]
  forex_cover_fees.forex -> forex_forex.id  [forex_cover_fees_forex_fkey]
  forex_cover_physical_contract.contract -> purchase_purchase.id  [forex_cover_physical_contract_contract_fkey]
  forex_cover_physical_contract.forex -> forex_forex.id  [forex_cover_physical_contract_forex_fkey]
  forex_cover_physical_contract.unit -> product_uom.id  [forex_cover_physical_contract_unit_fkey]
  forex_cover_physical_sale.contract -> sale_sale.id  [forex_cover_physical_sale_contract_fkey]
  forex_cover_physical_sale.forex -> forex_forex.id  [forex_cover_physical_sale_forex_fkey]
  forex_cover_physical_sale.unit -> product_uom.id  [forex_cover_physical_sale_unit_fkey]
  forex_forex.bank -> bank.id  [forex_forex_bank_fkey]
  forex_forex.buy_currency -> currency_currency.id  [forex_forex_buy_currency_fkey]
  forex_forex.company -> company_company.id  [forex_forex_company_fkey]
  forex_forex.for_currency -> currency_currency.id  [forex_forex_for_currency_fkey]
  forex_forex.invoice_line -> account_invoice_line.id  [forex_forex_invoice_line_fkey]
  forex_forex.move -> account_move.id  [forex_forex_move_fkey]
  forex_forex.reason -> forex_category.id  [forex_forex_reason_fkey]
  lc_discrepancy.lc -> lc_letter_incoming.id  [lc_discrepancy_lc_fkey]
  lc_document_prepared.lc -> lc_letter_incoming.id  [lc_document_prepared_lc_fkey]
  lc_document_received.lc -> lc_letter_outgoing.id  [lc_document_received_lc_fkey]
  lc_letter-document_type.lc_in -> lc_letter_incoming.id  [lc_letter-document_type_lc_in_fkey]
  lc_letter-document_type.lc_out -> lc_letter_outgoing.id  [lc_letter-document_type_lc_out_fkey]
  lc_letter-document_type.purchase -> purchase_purchase.id  [lc_letter-document_type_purchase_fkey]
  lc_letter-document_type.sale -> sale_sale.id  [lc_letter-document_type_sale_fkey]
  lc_letter_incoming.advising_bank -> party_party.id  [lc_letter_incoming_advising_bank_fkey]
  lc_letter_incoming.applicant -> party_party.id  [lc_letter_incoming_applicant_fkey]
  lc_letter_incoming.beneficiary -> party_party.id  [lc_letter_incoming_beneficiary_fkey]
  lc_letter_incoming.company -> company_company.id  [lc_letter_incoming_company_fkey]
  lc_letter_incoming.confirming_bank -> party_party.id  [lc_letter_incoming_confirming_bank_fkey]
  lc_letter_incoming.currency -> currency_currency.id  [lc_letter_incoming_currency_fkey]
  lc_letter_incoming.final_destination -> stock_location.id  [lc_letter_incoming_final_destination_fkey]
  lc_letter_incoming.incoterm -> incoterm_incoterm.id  [lc_letter_incoming_incoterm_fkey]
  lc_letter_incoming.issuing_bank -> party_party.id  [lc_letter_incoming_issuing_bank_fkey]
  lc_letter_incoming.port_of_discharge -> stock_location.id  [lc_letter_incoming_port_of_discharge_fkey]
  lc_letter_incoming.port_of_loading -> stock_location.id  [lc_letter_incoming_port_of_loading_fkey]
  lc_letter_incoming.presentation_bank -> party_party.id  [lc_letter_incoming_presentation_bank_fkey]
  lc_letter_incoming.purchase -> purchase_purchase.id  [lc_letter_incoming_purchase_fkey]
  lc_letter_incoming.receiving_bank -> party_party.id  [lc_letter_incoming_receiving_bank_fkey]
  lc_letter_incoming.reimbursing_bank -> party_party.id  [lc_letter_incoming_reimbursing_bank_fkey]
  lc_letter_incoming.sale -> sale_sale.id  [lc_letter_incoming_sale_fkey]
  lc_letter_incoming.swift_file -> document_incoming.id  [lc_letter_incoming_swift_file_fkey]
  lc_letter_outgoing.advising_bank -> party_party.id  [lc_letter_outgoing_advising_bank_fkey]
  lc_letter_outgoing.applicant -> party_party.id  [lc_letter_outgoing_applicant_fkey]
  lc_letter_outgoing.beneficiary -> party_party.id  [lc_letter_outgoing_beneficiary_fkey]
  lc_letter_outgoing.company -> company_company.id  [lc_letter_outgoing_company_fkey]
  lc_letter_outgoing.confirming_bank -> party_party.id  [lc_letter_outgoing_confirming_bank_fkey]
  lc_letter_outgoing.currency -> currency_currency.id  [lc_letter_outgoing_currency_fkey]
  lc_letter_outgoing.final_destination -> stock_location.id  [lc_letter_outgoing_final_destination_fkey]
  lc_letter_outgoing.incoterm -> incoterm_incoterm.id  [lc_letter_outgoing_incoterm_fkey]
  lc_letter_outgoing.issuing_bank -> party_party.id  [lc_letter_outgoing_issuing_bank_fkey]
  lc_letter_outgoing.port_of_discharge -> stock_location.id  [lc_letter_outgoing_port_of_discharge_fkey]
  lc_letter_outgoing.port_of_loading -> stock_location.id  [lc_letter_outgoing_port_of_loading_fkey]
  lc_letter_outgoing.purchase -> purchase_purchase.id  [lc_letter_outgoing_purchase_fkey]
  lc_letter_outgoing.reimbursing_bank -> party_party.id  [lc_letter_outgoing_reimbursing_bank_fkey]
  lc_letter_outgoing.sale -> sale_sale.id  [lc_letter_outgoing_sale_fkey]
  lc_letter_outgoing.swift_file -> document_incoming.id  [lc_letter_outgoing_swift_file_fkey]
  lc_template-product.product -> product_product.id  [lc_template-product_product_fkey]
  lot_accounting.lot -> lot_lot.id  [lot_accounting_lot_fkey]
  lot_fcr.lot_counterparty -> party_party.id  [lot_fcr_lot_counterparty_fkey]
  lot_fcr.lot_linked -> lot_lot.id  [lot_fcr_lot_linked_fkey]
  lot_fcr.lot_origin -> country_country.id  [lot_fcr_lot_origin_fkey]
  lot_fcr.lot_product -> product_product.id  [lot_fcr_lot_product_fkey]
  lot_fcr.lot_unit -> product_uom.id  [lot_fcr_lot_unit_fkey]
  lot_fcr.lot_unit_line -> product_uom.id  [lot_fcr_lot_unit_line_fkey]
  lot_lot.dashboard -> purchase_dashboard.id  [lot_lot_dashboard_fkey]
  lot_lot.invoice_line -> account_invoice_line.id  [lot_lot_invoice_line_fkey]
  lot_lot.invoice_line_prov -> account_invoice_line.id  [lot_lot_invoice_line_prov_fkey]
  lot_lot.line -> purchase_line.id  [lot_lot_line_fkey]
  lot_lot.lot_himself -> lot_lot.id  [lot_lot_lot_himself_fkey]
  lot_lot.lot_parent -> lot_lot.id  [lot_lot_lot_parent_fkey]
  lot_lot.lot_product -> product_product.id  [lot_lot_lot_product_fkey]
  lot_lot.lot_shipment -> stock_shipment_in.id  [lot_lot_lot_shipment_fkey]
  lot_lot.lot_shipment_in -> stock_shipment_in.id  [lot_lot_lot_shipment_in_fkey]
  lot_lot.lot_shipment_internal -> stock_shipment_internal.id  [lot_lot_lot_shipment_internal_fkey]
  lot_lot.lot_shipment_out -> stock_shipment_out.id  [lot_lot_lot_shipment_out_fkey]
  lot_lot.lot_state -> lot_qt_type.id  [lot_lot_lot_state_fkey]
  lot_lot.lot_unit -> product_uom.id  [lot_lot_lot_unit_fkey]
  lot_lot.lot_unit_line -> product_uom.id  [lot_lot_lot_unit_line_fkey]
  lot_lot.move -> stock_move.id  [lot_lot_move_fkey]
  lot_lot.sale_invoice_line -> account_invoice_line.id  [lot_lot_sale_invoice_line_fkey]
  lot_lot.sale_invoice_line_prov -> account_invoice_line.id  [lot_lot_sale_invoice_line_prov_fkey]
  lot_lot.sale_line -> sale_line.id  [lot_lot_sale_line_fkey]
  lot_move.lot -> lot_lot.id  [lot_move_lot_fkey]
  lot_move.move -> stock_move.id  [lot_move_move_fkey]
  lot_qt.lot -> lot_lot.id  [lot_qt_lot_fkey]
  lot_qt.lot_move -> stock_move.id  [lot_qt_lot_move_fkey]
  lot_qt.lot_p -> lot_lot.id  [lot_qt_lot_p_fkey]
  lot_qt.lot_s -> lot_lot.id  [lot_qt_lot_s_fkey]
  lot_qt.lot_shipment -> stock_shipment_in.id  [lot_qt_lot_shipment_fkey]
  lot_qt.lot_shipment_in -> stock_shipment_in.id  [lot_qt_lot_shipment_in_fkey]
  lot_qt.lot_shipment_internal -> stock_shipment_internal.id  [lot_qt_lot_shipment_internal_fkey]
  lot_qt.lot_shipment_out -> stock_shipment_out.id  [lot_qt_lot_shipment_out_fkey]
  lot_qt.lot_unit -> product_uom.id  [lot_qt_lot_unit_fkey]
  lot_qt.quantity_type -> lot_qt_type.id  [lot_qt_quantity_type_fkey]
  lot_qt_hist.lot -> lot_lot.id  [lot_qt_hist_lot_fkey]
  lot_qt_hist.quantity_type -> lot_qt_type.id  [lot_qt_hist_quantity_type_fkey]
  lot_split_merge.reversed_by -> lot_split_merge.id  [lot_split_merge_reversed_by_fkey]
  lot_split_merge.source_lot -> lot_lot.id  [lot_split_merge_source_lot_fkey]
  lot_split_merge.target_lot -> lot_lot.id  [lot_split_merge_target_lot_fkey]
  mtm_component.currency -> currency_currency.id  [mtm_component_currency_fkey]
  mtm_component.fix_type -> price_fixtype.id  [mtm_component_fix_type_fkey]
  mtm_component.line -> purchase_line.id  [mtm_component_line_fkey]
  mtm_component.price_index -> price_price.id  [mtm_component_price_index_fkey]
  mtm_component.price_matrix -> price_matrix.id  [mtm_component_price_matrix_fkey]
  mtm_component.sale_line -> sale_line.id  [mtm_component_sale_line_fkey]
  mtm_component.strategy -> mtm_strategy.id  [mtm_component_strategy_fkey]
  mtm_scenario.calendar -> price_calendar.id  [mtm_scenario_calendar_fkey]
  mtm_snapshot.currency -> currency_currency.id  [mtm_snapshot_currency_fkey]
  mtm_snapshot.strategy -> mtm_strategy.id  [mtm_snapshot_strategy_fkey]
  mtm_strategy.currency -> currency_currency.id  [mtm_strategy_currency_fkey]
  mtm_strategy.scenario -> mtm_scenario.id  [mtm_strategy_scenario_fkey]
  open_position.client -> party_party.id  [open_position_client_fkey]
  open_position.currency -> currency_currency.id  [open_position_currency_fkey]
  open_position.curve -> price_price.id  [open_position_curve_fkey]
  open_position.line -> purchase_line.id  [open_position_line_fkey]
  open_position.product -> product_product.id  [open_position_product_fkey]
  open_position.purchase -> purchase_purchase.id  [open_position_purchase_fkey]
  open_position.sale -> sale_sale.id  [open_position_sale_fkey]
  open_position.sale_line -> sale_line.id  [open_position_sale_line_fkey]
  open_position.supplier -> party_party.id  [open_position_supplier_fkey]
  open_position.uom -> product_uom.id  [open_position_uom_fkey]
  optional_scenario.from_location -> stock_location.id  [optional_scenario_from_location_fkey]
  optional_scenario.incoterm -> incoterm_incoterm.id  [optional_scenario_incoterm_fkey]
  optional_scenario.line -> purchase_line.id  [optional_scenario_line_fkey]
  optional_scenario.to_location -> stock_location.id  [optional_scenario_to_location_fkey]
  party_acceptable_currency.currency -> currency_currency.id  [party_acceptable_currency_currency_fkey]
  party_acceptable_currency.party -> party_party.id  [party_acceptable_currency_party_fkey]
  party_address.party -> party_party.id  [party_address_party_fkey]
  party_contact_mechanism.party -> party_party.id  [party_contact_mechanism_party_fkey]
  party_execution.party -> party_party.id  [party_execution_party_fkey]
  party_execution_place.currency -> currency_currency.id  [party_execution_place_currency_fkey]
  party_execution_place.location -> stock_location.id  [party_execution_place_location_fkey]
  party_execution_sla.party -> party_party.id  [party_execution_sla_party_fkey]
  party_execution_sla.product -> product_product.id  [party_execution_sla_product_fkey]
  party_identifier.party -> party_party.id  [party_identifier_party_fkey]
  party_incoterm.party -> party_party.id  [party_incoterm_party_fkey]
  party_insurance_limit.currency -> currency_currency.id  [party_insurance_limit_currency_fkey]
  party_insurance_limit.party -> party_party.id  [party_insurance_limit_party_fkey]
  party_internal_limit.currency -> currency_currency.id  [party_internal_limit_currency_fkey]
  party_internal_limit.party -> party_party.id  [party_internal_limit_party_fkey]
  party_party.association -> purchase_association.id  [party_party_association_fkey]
  party_party.credit_currency -> currency_currency.id  [party_party_credit_currency_fkey]
  party_party.replaced_by -> party_party.id  [party_party_replaced_by_fkey]
  party_party.wb -> purchase_weight_basis.id  [party_party_wb_fkey]
  party_party-delivered_to-stock_location.location -> stock_location.id  [party_party-delivered_to-stock_location_location_fkey]
  party_party-delivered_to-stock_location.party -> party_party.id  [party_party-delivered_to-stock_location_party_fkey]
  party_party-party_category.party -> party_party.id  [party_party-party_category_party_fkey]
  party_party_account.party -> party_party.id  [party_party_account_party_fkey]
  party_party_customer_code.party -> party_party.id  [party_party_customer_code_party_fkey]
  party_party_customer_currency.customer_currency -> currency_currency.id  [party_party_customer_currency_customer_currency_fkey]
  party_party_customer_currency.party -> party_party.id  [party_party_customer_currency_party_fkey]
  party_party_lang.party -> party_party.id  [party_party_lang_party_fkey]
  party_party_location.customer_location -> stock_location.id  [party_party_location_customer_location_fkey]
  party_party_location.party -> party_party.id  [party_party_location_party_fkey]
  party_party_location.supplier_location -> stock_location.id  [party_party_location_supplier_location_fkey]
  party_party_payment_direct_debit.party -> party_party.id  [party_party_payment_direct_debit_party_fkey]
  party_party_payment_term.party -> party_party.id  [party_party_payment_term_party_fkey]
  party_party_purchase_invoice_line_standalone.party -> party_party.id  [party_party_purchase_invoice_line_standalone_party_fkey]
  party_party_reception_direct_debit.party -> party_party.id  [party_party_reception_direct_debit_party_fkey]
  party_party_sale_method.party -> party_party.id  [party_party_sale_method_party_fkey]
  party_party_supplier_currency.party -> party_party.id  [party_party_supplier_currency_party_fkey]
  party_party_supplier_currency.supplier_currency -> currency_currency.id  [party_party_supplier_currency_supplier_currency_fkey]
  party_party_supplier_lead_time.party -> party_party.id  [party_party_supplier_lead_time_party_fkey]
  party_payment_condition.party -> party_party.id  [party_payment_condition_party_fkey]
  price_calendar_line.calendar -> price_calendar.id  [price_calendar_line_calendar_fkey]
  price_composite.price -> price_price.id  [price_composite_price_fkey]
  price_composite.price_add -> price_price.id  [price_composite_price_add_fkey]
  price_composition.line -> purchase_line.id  [price_composition_line_fkey]
  price_composition.sale_line -> sale_line.id  [price_composition_sale_line_fkey]
  price_matrix.calendar -> price_calendar.id  [price_matrix_calendar_fkey]
  price_matrix.currency -> currency_currency.id  [price_matrix_currency_fkey]
  price_matrix.unit -> product_uom.id  [price_matrix_unit_fkey]
  price_matrix_line.destination -> stock_location.id  [price_matrix_line_destination_fkey]
  price_matrix_line.matrix -> price_matrix.id  [price_matrix_line_matrix_fkey]
  price_matrix_line.origin -> stock_location.id  [price_matrix_line_origin_fkey]
  price_matrix_line.product -> product_product.id  [price_matrix_line_product_fkey]
  price_matrix_line.quality -> product_category.id  [price_matrix_line_quality_fkey]
  price_price.price -> price_price.id  [price_price_price_fkey]
  price_price.price_area -> price_area.id  [price_price_price_area_fkey]
  price_price.price_calendar -> price_calendar.id  [price_price_price_calendar_fkey]
  price_price.price_currency -> currency_currency.id  [price_price_price_currency_fkey]
  price_price.price_period -> product_month.id  [price_price_price_period_fkey]
  price_price.price_type -> price_fixtype.id  [price_price_price_type_fkey]
  price_price.price_unit -> product_uom.id  [price_price_price_unit_fkey]
  price_price_value.price -> price_price.id  [price_price_value_price_fkey]
  price_product.price -> price_price.id  [price_product_price_fkey]
  price_product.product -> product_product.id  [price_product_product_fkey]
  pricing_component.calendar -> price_calendar.id  [pricing_component_calendar_fkey]
  pricing_component.fix_type -> price_fixtype.id  [pricing_component_fix_type_fkey]
  pricing_component.line -> purchase_line.id  [pricing_component_line_fkey]
  pricing_component.price_index -> price_price.id  [pricing_component_price_index_fkey]
  pricing_component.price_matrix -> price_matrix.id  [pricing_component_price_matrix_fkey]
  pricing_component.sale_line -> sale_line.id  [pricing_component_sale_line_fkey]
  pricing_component.strategy -> mtm_strategy.id  [pricing_component_strategy_fkey]
  pricing_estimated.line -> purchase_line.id  [pricing_estimated_line_fkey]
  pricing_estimated.purchase -> purchase_purchase.id  [pricing_estimated_purchase_fkey]
  pricing_estimated.sale_line -> sale_line.id  [pricing_estimated_sale_line_fkey]
  pricing_estimated.shipment_in -> stock_shipment_in.id  [pricing_estimated_shipment_in_fkey]
  pricing_estimated.shipment_internal -> stock_shipment_internal.id  [pricing_estimated_shipment_internal_fkey]
  pricing_estimated.shipment_out -> stock_shipment_out.id  [pricing_estimated_shipment_out_fkey]
  pricing_pricing.line -> purchase_line.id  [pricing_pricing_line_fkey]
  pricing_pricing.price_component -> pricing_component.id  [pricing_pricing_price_component_fkey]
  pricing_pricing.sale_line -> sale_line.id  [pricing_pricing_sale_line_fkey]
  pricing_summary.price_component -> pricing_component.id  [pricing_summary_price_component_fkey]
  pricing_trigger.application_period -> pricing_period.id  [pricing_trigger_application_period_fkey]
  pricing_trigger.component -> pricing_component.id  [pricing_trigger_component_fkey]
  pricing_trigger.pricing_period -> pricing_period.id  [pricing_trigger_pricing_period_fkey]
  product_cost_price.product -> product_product.id  [product_cost_price_product_fkey]
  product_cost_price_method.template -> product_template.id  [product_cost_price_method_template_fkey]
  product_cost_price_revision.product -> product_product.id  [product_cost_price_revision_product_fkey]
  product_cost_price_revision.template -> product_template.id  [product_cost_price_revision_template_fkey]
  product_identifier.product -> product_product.id  [product_identifier_product_fkey]
  product_image.product -> product_product.id  [product_image_product_fkey]
  product_image.template -> product_template.id  [product_image_template_fkey]
  product_lead_time.template -> product_template.id  [product_lead_time_template_fkey]
  product_list_price.template -> product_template.id  [product_list_price_template_fkey]
  product_product.template -> product_template.id  [product_product_template_fkey]
  product_product_month.product -> product_product.id  [product_product_month_product_fkey]
  product_template.account_category -> product_category.id  [product_template_account_category_fkey]
  product_template.attribute_set -> product_attribute_set.id  [product_template_attribute_set_fkey]
  product_template.default_uom -> product_uom.id  [product_template_default_uom_fkey]
  product_template.height_uom -> product_uom.id  [product_template_height_uom_fkey]
  product_template.length_uom -> product_uom.id  [product_template_length_uom_fkey]
  product_template.purchase_uom -> product_uom.id  [product_template_purchase_uom_fkey]
  product_template.sale_uom -> product_uom.id  [product_template_sale_uom_fkey]
  product_template.volume_uom -> product_uom.id  [product_template_volume_uom_fkey]
  product_template.weight_uom -> product_uom.id  [product_template_weight_uom_fkey]
  product_template.width_uom -> product_uom.id  [product_template_width_uom_fkey]
  product_template-commission_agent.agent -> commission_agent.id  [product_template-commission_agent_agent_fkey]
  product_template-commission_agent.template -> product_template.id  [product_template-commission_agent_template_fkey]
  product_template-product_category.template -> product_template.id  [product_template-product_category_template_fkey]
  project_work.party -> party_party.id  [project_work_party_fkey]
  purchase_association.party -> party_party.id  [purchase_association_party_fkey]
  purchase_component.calendar -> price_calendar.id  [purchase_component_calendar_fkey]
  purchase_component.fix_type -> price_fixtype.id  [purchase_component_fix_type_fkey]
  purchase_component.line -> purchase_line.id  [purchase_component_line_fkey]
  purchase_component.price_index -> price_price.id  [purchase_component_price_index_fkey]
  purchase_configuration_purchase_drop_location.purchase_drop_location -> stock_location.id  [974e93b742683997ddf146d80a9a19b1a228f47a592b925c7b3ac4b61790141]
  purchase_derivative.currency -> currency_currency.id  [purchase_derivative_currency_fkey]
  purchase_derivative.line -> purchase_line.id  [purchase_derivative_line_fkey]
  purchase_derivative.party -> party_party.id  [purchase_derivative_party_fkey]
  purchase_derivative.price_index -> price_price.id  [purchase_derivative_price_index_fkey]
  purchase_derivative.product -> product_product.id  [purchase_derivative_product_fkey]
  purchase_derivative.purchase -> purchase_purchase.id  [purchase_derivative_purchase_fkey]
  purchase_derivative.unit -> product_uom.id  [purchase_derivative_unit_fkey]
  purchase_estimated.line -> purchase_line.id  [purchase_estimated_line_fkey]
  purchase_fee.currency -> currency_currency.id  [purchase_fee_currency_fkey]
  purchase_fee.line -> purchase_line.id  [purchase_fee_line_fkey]
  purchase_fee.product -> product_product.id  [purchase_fee_product_fkey]
  purchase_fee.purchase -> purchase_purchase.id  [purchase_fee_purchase_fkey]
  purchase_fee.shipment_in -> stock_shipment_in.id  [purchase_fee_shipment_in_fkey]
  purchase_fee.shipment_internal -> stock_shipment_internal.id  [purchase_fee_shipment_internal_fkey]
  purchase_fee.supplier -> party_party.id  [purchase_fee_supplier_fkey]
  purchase_fee.unit -> product_uom.id  [purchase_fee_unit_fkey]
  purchase_fee_lots.fee -> purchase_fee.id  [purchase_fee_lots_fee_fkey]
  purchase_fee_lots.lot -> lot_lot.id  [purchase_fee_lots_lot_fkey]
  purchase_line.certif -> purchase_certification.id  [purchase_line_certif_fkey]
  purchase_line.company -> company_company.id  [purchase_line_company_fkey]
  purchase_line.currency_ -> currency_currency.id  [purchase_line_currency__fkey]
  purchase_line.del_period -> product_month.id  [purchase_line_del_period_fkey]
  purchase_line.fee_ -> fee_fee.id  [purchase_line_fee__fkey]
  purchase_line.linked_currency -> currency_linked.id  [purchase_line_linked_currency_fkey]
  purchase_line.linked_unit -> product_uom.id  [purchase_line_linked_unit_fkey]
  purchase_line.product -> product_product.id  [purchase_line_product_fkey]
  purchase_line.product_supplier -> purchase_product_supplier.id  [purchase_line_product_supplier_fkey]
  purchase_line.purchase -> purchase_purchase.id  [purchase_line_purchase_fkey]
  purchase_line.purchase_line -> purchase_line.id  [purchase_line_purchase_line_fkey]
  purchase_line.supplier_ -> party_party.id  [purchase_line_supplier__fkey]
  purchase_line.unit -> product_uom.id  [purchase_line_unit_fkey]
  purchase_line-account_tax.line -> purchase_line.id  [purchase_line-account_tax_line_fkey]
  purchase_line-ignored-stock_move.move -> stock_move.id  [purchase_line-ignored-stock_move_move_fkey]
  purchase_line-ignored-stock_move.purchase_line -> purchase_line.id  [purchase_line-ignored-stock_move_purchase_line_fkey]
  purchase_line-recreated-stock_move.move -> stock_move.id  [purchase_line-recreated-stock_move_move_fkey]
  purchase_line-recreated-stock_move.purchase_line -> purchase_line.id  [purchase_line-recreated-stock_move_purchase_line_fkey]
  purchase_lot.line -> purchase_line.id  [purchase_lot_line_fkey]
  purchase_lot.lot_himself -> purchase_lot.id  [purchase_lot_lot_himself_fkey]
  purchase_lot.lot_parent -> purchase_lot.id  [purchase_lot_lot_parent_fkey]
  purchase_lot.lot_product -> product_product.id  [purchase_lot_lot_product_fkey]
  purchase_lot.lot_shipment -> stock_shipment_in.id  [purchase_lot_lot_shipment_fkey]
  purchase_lot.lot_unit -> product_uom.id  [purchase_lot_lot_unit_fkey]
  purchase_lot.sale_line -> sale_line.id  [purchase_lot_sale_line_fkey]
  purchase_lot_qt.lot -> purchase_lot.id  [purchase_lot_qt_lot_fkey]
  purchase_lot_qt.quantity_type -> purchase_qt_type.id  [purchase_lot_qt_quantity_type_fkey]
  purchase_pricing.line -> purchase_line.id  [purchase_pricing_line_fkey]
  purchase_pricing.price_component -> purchase_component.id  [purchase_pricing_price_component_fkey]
  purchase_product_supplier.currency -> currency_currency.id  [purchase_product_supplier_currency_fkey]
  purchase_product_supplier.party -> party_party.id  [purchase_product_supplier_party_fkey]
  purchase_product_supplier.product -> product_product.id  [purchase_product_supplier_product_fkey]
  purchase_product_supplier.template -> product_template.id  [purchase_product_supplier_template_fkey]
  purchase_purchase.association -> purchase_association.id  [purchase_purchase_association_fkey]
  purchase_purchase.broker -> party_party.id  [purchase_purchase_broker_fkey]
  purchase_purchase.btb -> back_to_back.id  [purchase_purchase_btb_fkey]
  purchase_purchase.certif -> purchase_certification.id  [purchase_purchase_certif_fkey]
  purchase_purchase.company -> company_company.id  [purchase_purchase_company_fkey]
  purchase_purchase.confirmed_by -> company_employee.id  [purchase_purchase_confirmed_by_fkey]
  purchase_purchase.contact -> party_contact_mechanism.id  [purchase_purchase_contact_fkey]
  purchase_purchase.crop -> purchase_crop.id  [purchase_purchase_crop_fkey]
  purchase_purchase.currency -> currency_currency.id  [purchase_purchase_currency_fkey]
  purchase_purchase.customer -> party_party.id  [purchase_purchase_customer_fkey]
  purchase_purchase.delivery_address -> party_address.id  [purchase_purchase_delivery_address_fkey]
  purchase_purchase.doc_template -> doc_template.id  [purchase_purchase_doc_template_fkey]
  purchase_purchase.drop_location -> stock_location.id  [purchase_purchase_drop_location_fkey]
  purchase_purchase.from_location -> stock_location.id  [purchase_purchase_from_location_fkey]
  purchase_purchase.incoterm -> incoterm_incoterm.id  [purchase_purchase_incoterm_fkey]
  purchase_purchase.incoterm_location -> party_address.id  [purchase_purchase_incoterm_location_fkey]
  purchase_purchase.invoice_address -> party_address.id  [purchase_purchase_invoice_address_fkey]
  purchase_purchase.invoice_party -> party_party.id  [purchase_purchase_invoice_party_fkey]
  purchase_purchase.operator -> party_party.id  [purchase_purchase_operator_fkey]
  purchase_purchase.party -> party_party.id  [purchase_purchase_party_fkey]
  purchase_purchase.payment_term -> account_invoice_payment_term.id  [purchase_purchase_payment_term_fkey]
  purchase_purchase.plan -> workflow_plan.id  [purchase_purchase_plan_fkey]
  purchase_purchase.quoted_by -> company_employee.id  [purchase_purchase_quoted_by_fkey]
  purchase_purchase.shipment_in -> stock_shipment_in.id  [purchase_purchase_shipment_in_fkey]
  purchase_purchase.to_location -> stock_location.id  [purchase_purchase_to_location_fkey]
  purchase_purchase.trader -> party_party.id  [purchase_purchase_trader_fkey]
  purchase_purchase.warehouse -> stock_location.id  [purchase_purchase_warehouse_fkey]
  purchase_purchase.wb -> purchase_weight_basis.id  [purchase_purchase_wb_fkey]
  purchase_purchase-ignored-account_invoice.purchase -> purchase_purchase.id  [purchase_purchase-ignored-account_invoice_purchase_fkey]
  purchase_purchase-ignored-account_invoice_line.purchase -> purchase_purchase.id  [purchase_purchase-ignored-account_invoice_line_purchase_fkey]
  purchase_purchase-recreated-account_invoice.purchase -> purchase_purchase.id  [purchase_purchase-recreated-account_invoice_purchase_fkey]
  purchase_request.customer -> party_party.id  [purchase_request_customer_fkey]
  purchase_request.party -> party_party.id  [purchase_request_party_fkey]
  purchase_request.product -> product_product.id  [purchase_request_product_fkey]
  purchase_request.purchase_line -> purchase_line.id  [purchase_request_purchase_line_fkey]
  purchase_request.warehouse -> stock_location.id  [purchase_request_warehouse_fkey]
  purchase_strategy.line -> purchase_line.id  [purchase_strategy_line_fkey]
  purchase_strategy.strategy -> mtm_strategy.id  [purchase_strategy_strategy_fkey]
  purchase_trade_payment_term_component.line -> account_invoice_payment_term_line.id  [purchase_trade_payment_term_component_line_fkey]
  purchase_trade_payment_term_component.payment_term -> account_invoice_payment_term.id  [purchase_trade_payment_term_component_payment_term_fkey]
  purchase_trigger.application_period -> purchase_period.id  [purchase_trigger_application_period_fkey]
  purchase_trigger.component -> purchase_component.id  [purchase_trigger_component_fkey]
  purchase_trigger.pricing_period -> purchase_period.id  [purchase_trigger_pricing_period_fkey]
  purchase_valuation.counterparty -> party_party.id  [purchase_valuation_counterparty_fkey]
  purchase_valuation.currency -> currency_currency.id  [purchase_valuation_currency_fkey]
  purchase_valuation.line -> purchase_line.id  [purchase_valuation_line_fkey]
  purchase_valuation.lot -> lot_lot.id  [purchase_valuation_lot_fkey]
  purchase_valuation.product -> product_product.id  [purchase_valuation_product_fkey]
  purchase_valuation.purchase -> purchase_purchase.id  [purchase_valuation_purchase_fkey]
  purchase_valuation.unit -> product_uom.id  [purchase_valuation_unit_fkey]
  purchase_weight_basis.qt_type -> lot_qt_type.id  [purchase_weight_basis_qt_type_fkey]
  quality_control.product -> product_product.id  [quality_control_product_fkey]
  res_user.warehouse -> stock_location.id  [res_user_warehouse_fkey]
  risk_perf.line -> risk_var_line.id  [risk_perf_line_fkey]
  risk_perf.price_index -> price_price.id  [risk_perf_price_index_fkey]
  risk_position_var.position -> risk_position.id  [risk_position_var_position_fkey]
  risk_position_var.var -> risk_var.id  [risk_position_var_var_fkey]
  risk_var.party -> party_party.id  [risk_var_party_fkey]
  risk_var.product -> product_product.id  [risk_var_product_fkey]
  risk_var_line.curve -> price_price.id  [risk_var_line_curve_fkey]
  risk_var_line.var -> risk_var.id  [risk_var_line_var_fkey]
  risk_var_values.party -> party_party.id  [risk_var_values_party_fkey]
  risk_var_values.product -> product_product.id  [risk_var_values_product_fkey]
  risk_var_values.var -> risk_var.id  [risk_var_values_var_fkey]
  sale_configuration_sale_drop_location.sale_drop_location -> stock_location.id  [sale_configuration_sale_drop_location_sale_drop_location_fkey]
  sale_derivative.party -> party_party.id  [sale_derivative_party_fkey]
  sale_derivative.price_index -> price_price.id  [sale_derivative_price_index_fkey]
  sale_derivative.product -> product_product.id  [sale_derivative_product_fkey]
  sale_derivative.sale -> sale_sale.id  [sale_derivative_sale_fkey]
  sale_derivative.sale_line -> sale_line.id  [sale_derivative_sale_line_fkey]
  sale_fee.currency -> currency_currency.id  [sale_fee_currency_fkey]
  sale_fee.product -> product_product.id  [sale_fee_product_fkey]
  sale_fee.sale -> sale_sale.id  [sale_fee_sale_fkey]
  sale_fee.sale_line -> sale_line.id  [sale_fee_sale_line_fkey]
  sale_fee.shipment_in -> stock_shipment_in.id  [sale_fee_shipment_in_fkey]
  sale_fee.shipment_out -> stock_shipment_out.id  [sale_fee_shipment_out_fkey]
  sale_fee.supplier -> party_party.id  [sale_fee_supplier_fkey]
  sale_fee.unit -> product_uom.id  [sale_fee_unit_fkey]
  sale_invoice_line.invoice_address -> party_address.id  [sale_invoice_line_invoice_address_fkey]
  sale_invoice_line.invoice_party -> party_party.id  [sale_invoice_line_invoice_party_fkey]
  sale_invoice_line.sale_line -> sale_line.id  [sale_invoice_line_sale_line_fkey]
  sale_invoice_line.shipment_address -> party_address.id  [sale_invoice_line_shipment_address_fkey]
  sale_invoice_line.shipment_party -> party_party.id  [sale_invoice_line_shipment_party_fkey]
  sale_line.certif -> purchase_certification.id  [sale_line_certif_fkey]
  sale_line.del_period -> product_month.id  [sale_line_del_period_fkey]
  sale_line.fee_ -> fee_fee.id  [sale_line_fee__fkey]
  sale_line.linked_currency -> currency_linked.id  [sale_line_linked_currency_fkey]
  sale_line.linked_unit -> product_uom.id  [sale_line_linked_unit_fkey]
  sale_line.principal -> commission_agent.id  [sale_line_principal_fkey]
  sale_line.product -> product_product.id  [sale_line_product_fkey]
  sale_line.purchase_request -> purchase_request.id  [sale_line_purchase_request_fkey]
  sale_line.sale -> sale_sale.id  [sale_line_sale_fkey]
  sale_line.unit -> product_uom.id  [sale_line_unit_fkey]
  sale_line-account_tax.line -> sale_line.id  [sale_line-account_tax_line_fkey]
  sale_line-ignored-stock_move.move -> stock_move.id  [sale_line-ignored-stock_move_move_fkey]
  sale_line-ignored-stock_move.sale_line -> sale_line.id  [sale_line-ignored-stock_move_sale_line_fkey]
  sale_line-recreated-stock_move.move -> stock_move.id  [sale_line-recreated-stock_move_move_fkey]
  sale_line-recreated-stock_move.sale_line -> sale_line.id  [sale_line-recreated-stock_move_sale_line_fkey]
  sale_opportunity.address -> party_address.id  [sale_opportunity_address_fkey]
  sale_opportunity.company -> company_company.id  [sale_opportunity_company_fkey]
  sale_opportunity.contact -> party_contact_mechanism.id  [sale_opportunity_contact_fkey]
  sale_opportunity.converted_by -> company_employee.id  [sale_opportunity_converted_by_fkey]
  sale_opportunity.currency -> currency_currency.id  [sale_opportunity_currency_fkey]
  sale_opportunity.employee -> company_employee.id  [sale_opportunity_employee_fkey]
  sale_opportunity.incoterm -> incoterm_incoterm.id  [sale_opportunity_incoterm_fkey]
  sale_opportunity.incoterm_location -> party_address.id  [sale_opportunity_incoterm_location_fkey]
  sale_opportunity.party -> party_party.id  [sale_opportunity_party_fkey]
  sale_opportunity.payment_term -> account_invoice_payment_term.id  [sale_opportunity_payment_term_fkey]
  sale_opportunity_line.opportunity -> sale_opportunity.id  [sale_opportunity_line_opportunity_fkey]
  sale_opportunity_line.product -> product_product.id  [sale_opportunity_line_product_fkey]
  sale_opportunity_line.unit -> product_uom.id  [sale_opportunity_line_unit_fkey]
  sale_sale.agent -> commission_agent.id  [sale_sale_agent_fkey]
  sale_sale.association -> purchase_association.id  [sale_sale_association_fkey]
  sale_sale.broker -> party_party.id  [sale_sale_broker_fkey]
  sale_sale.btb -> back_to_back.id  [sale_sale_btb_fkey]
  sale_sale.carrier -> carrier.id  [sale_sale_carrier_fkey]
  sale_sale.certif -> purchase_certification.id  [sale_sale_certif_fkey]
  sale_sale.company -> company_company.id  [sale_sale_company_fkey]
  sale_sale.confirmed_by -> company_employee.id  [sale_sale_confirmed_by_fkey]
  sale_sale.contact -> party_contact_mechanism.id  [sale_sale_contact_fkey]
  sale_sale.crop -> purchase_crop.id  [sale_sale_crop_fkey]
  sale_sale.currency -> currency_currency.id  [sale_sale_currency_fkey]
  sale_sale.doc_template -> doc_template.id  [sale_sale_doc_template_fkey]
  sale_sale.drop_location -> stock_location.id  [sale_sale_drop_location_fkey]
  sale_sale.from_location -> stock_location.id  [sale_sale_from_location_fkey]
  sale_sale.incoterm -> incoterm_incoterm.id  [sale_sale_incoterm_fkey]
  sale_sale.incoterm_location -> party_address.id  [sale_sale_incoterm_location_fkey]
  sale_sale.invoice_address -> party_address.id  [sale_sale_invoice_address_fkey]
  sale_sale.invoice_party -> party_party.id  [sale_sale_invoice_party_fkey]
  sale_sale.operator -> party_party.id  [sale_sale_operator_fkey]
  sale_sale.party -> party_party.id  [sale_sale_party_fkey]
  sale_sale.payment_term -> account_invoice_payment_term.id  [sale_sale_payment_term_fkey]
  sale_sale.quoted_by -> company_employee.id  [sale_sale_quoted_by_fkey]
  sale_sale.shipment_address -> party_address.id  [sale_sale_shipment_address_fkey]
  sale_sale.shipment_out -> stock_shipment_out.id  [sale_sale_shipment_out_fkey]
  sale_sale.shipment_party -> party_party.id  [sale_sale_shipment_party_fkey]
  sale_sale.to_location -> stock_location.id  [sale_sale_to_location_fkey]
  sale_sale.trader -> party_party.id  [sale_sale_trader_fkey]
  sale_sale.warehouse -> stock_location.id  [sale_sale_warehouse_fkey]
  sale_sale.wb -> purchase_weight_basis.id  [sale_sale_wb_fkey]
  sale_sale.web_shop -> web_shop.id  [sale_sale_web_shop_fkey]
  sale_sale-ignored-account_invoice.sale -> sale_sale.id  [sale_sale-ignored-account_invoice_sale_fkey]
  sale_sale-recreated-account_invoice.sale -> sale_sale.id  [sale_sale-recreated-account_invoice_sale_fkey]
  sale_strategy.sale_line -> sale_line.id  [sale_strategy_sale_line_fkey]
  sale_strategy.strategy -> mtm_strategy.id  [sale_strategy_strategy_fkey]
  sale_valuation.counterparty -> party_party.id  [sale_valuation_counterparty_fkey]
  sale_valuation.currency -> currency_currency.id  [sale_valuation_currency_fkey]
  sale_valuation.product -> product_product.id  [sale_valuation_product_fkey]
  sale_valuation.sale -> sale_sale.id  [sale_valuation_sale_fkey]
  sale_valuation.sale_line -> sale_line.id  [sale_valuation_sale_line_fkey]
  sale_valuation.unit -> product_uom.id  [sale_valuation_unit_fkey]
  shipment_wr.shipment_in -> stock_shipment_in.id  [shipment_wr_shipment_in_fkey]
  shipment_wr.wr -> weight_report.id  [shipment_wr_wr_fkey]
  sof_statement.shipment -> stock_shipment_in.id  [sof_statement_shipment_fkey]
  stock_configuration_location.shipment_internal_transit -> stock_location.id  [stock_configuration_location_shipment_internal_transit_fkey]
  stock_inventory.location -> stock_location.id  [stock_inventory_location_fkey]
  stock_inventory_line.product -> product_product.id  [stock_inventory_line_product_fkey]
  stock_location.address -> party_address.id  [stock_location_address_fkey]
  stock_location.input_location -> stock_location.id  [stock_location_input_location_fkey]
  stock_location.lost_found_location -> stock_location.id  [stock_location_lost_found_location_fkey]
  stock_location.output_location -> stock_location.id  [stock_location_output_location_fkey]
  stock_location.parent -> stock_location.id  [stock_location_parent_fkey]
  stock_location.picking_location -> stock_location.id  [stock_location_picking_location_fkey]
  stock_location.storage_location -> stock_location.id  [stock_location_storage_location_fkey]
  stock_location.supplier_return_location -> stock_location.id  [stock_location_supplier_return_location_fkey]
  stock_location_lead_time.warehouse_from -> stock_location.id  [stock_location_lead_time_warehouse_from_fkey]
  stock_location_lead_time.warehouse_to -> stock_location.id  [stock_location_lead_time_warehouse_to_fkey]
  stock_location_waste.location -> stock_location.id  [stock_location_waste_location_fkey]
  stock_location_waste.warehouse -> stock_location.id  [stock_location_waste_warehouse_fkey]
  stock_move.company -> company_company.id  [stock_move_company_fkey]
  stock_move.currency -> currency_currency.id  [stock_move_currency_fkey]
  stock_move.from_location -> stock_location.id  [stock_move_from_location_fkey]
  stock_move.lot -> lot_lot.id  [stock_move_lot_fkey]
  stock_move.origin_drop -> stock_move.id  [stock_move_origin_drop_fkey]
  stock_move.package -> stock_package.id  [stock_move_package_fkey]
  stock_move.product -> product_product.id  [stock_move_product_fkey]
  stock_move.to_location -> stock_location.id  [stock_move_to_location_fkey]
  stock_move.unit -> product_uom.id  [stock_move_unit_fkey]
  stock_period_cache.location -> stock_location.id  [stock_period_cache_location_fkey]
  stock_period_cache.product -> product_product.id  [stock_period_cache_product_fkey]
  stock_shipment_container.shipment -> stock_shipment_in.id  [stock_shipment_container_shipment_fkey]
  stock_shipment_cost_sale.currency -> currency_currency.id  [stock_shipment_cost_sale_currency_fkey]
  stock_shipment_cost_sale.sale -> sale_sale.id  [stock_shipment_cost_sale_sale_fkey]
  stock_shipment_drop.company -> company_company.id  [stock_shipment_drop_company_fkey]
  stock_shipment_drop.contact_address -> party_address.id  [stock_shipment_drop_contact_address_fkey]
  stock_shipment_drop.customer -> party_party.id  [stock_shipment_drop_customer_fkey]
  stock_shipment_drop.delivery_address -> party_address.id  [stock_shipment_drop_delivery_address_fkey]
  stock_shipment_drop.supplier -> party_party.id  [stock_shipment_drop_supplier_fkey]
  stock_shipment_in.agent -> party_party.id  [stock_shipment_in_agent_fkey]
  stock_shipment_in.carrier -> carrier.id  [stock_shipment_in_carrier_fkey]
  stock_shipment_in.carrier_ -> party_party.id  [stock_shipment_in_carrier__fkey]
  stock_shipment_in.company -> company_company.id  [stock_shipment_in_company_fkey]
  stock_shipment_in.contact_address -> party_address.id  [stock_shipment_in_contact_address_fkey]
  stock_shipment_in.controller -> party_party.id  [stock_shipment_in_controller_fkey]
  stock_shipment_in.cost_currency -> currency_currency.id  [stock_shipment_in_cost_currency_fkey]
  stock_shipment_in.dashboard -> purchase_dashboard.id  [stock_shipment_in_dashboard_fkey]
  stock_shipment_in.done_by -> company_employee.id  [stock_shipment_in_done_by_fkey]
  stock_shipment_in.from_location -> stock_location.id  [stock_shipment_in_from_location_fkey]
  stock_shipment_in.himself -> stock_shipment_in.id  [stock_shipment_in_himself_fkey]
  stock_shipment_in.incoterm -> incoterm_incoterm.id  [stock_shipment_in_incoterm_fkey]
  stock_shipment_in.incoterm_location -> party_address.id  [stock_shipment_in_incoterm_location_fkey]
  stock_shipment_in.received_by -> company_employee.id  [stock_shipment_in_received_by_fkey]
  stock_shipment_in.started_by -> company_employee.id  [stock_shipment_in_started_by_fkey]
  stock_shipment_in.supplier -> party_party.id  [stock_shipment_in_supplier_fkey]
  stock_shipment_in.to_location -> stock_location.id  [stock_shipment_in_to_location_fkey]
  stock_shipment_in.vessel -> trade_vessel.id  [stock_shipment_in_vessel_fkey]
  stock_shipment_in.vessel_type -> stock_vessel_type.id  [stock_shipment_in_vessel_type_fkey]
  stock_shipment_in.warehouse -> stock_location.id  [stock_shipment_in_warehouse_fkey]
  stock_shipment_in.warehouse_input -> stock_location.id  [stock_shipment_in_warehouse_input_fkey]
  stock_shipment_in.warehouse_storage -> stock_location.id  [stock_shipment_in_warehouse_storage_fkey]
  stock_shipment_in_return.assigned_by -> company_employee.id  [stock_shipment_in_return_assigned_by_fkey]
  stock_shipment_in_return.carrier -> carrier.id  [stock_shipment_in_return_carrier_fkey]
  stock_shipment_in_return.company -> company_company.id  [stock_shipment_in_return_company_fkey]
  stock_shipment_in_return.delivery_address -> party_address.id  [stock_shipment_in_return_delivery_address_fkey]
  stock_shipment_in_return.done_by -> company_employee.id  [stock_shipment_in_return_done_by_fkey]
  stock_shipment_in_return.from_location -> stock_location.id  [stock_shipment_in_return_from_location_fkey]
  stock_shipment_in_return.incoterm -> incoterm_incoterm.id  [stock_shipment_in_return_incoterm_fkey]
  stock_shipment_in_return.incoterm_location -> party_address.id  [stock_shipment_in_return_incoterm_location_fkey]
  stock_shipment_in_return.supplier -> party_party.id  [stock_shipment_in_return_supplier_fkey]
  stock_shipment_in_return.to_location -> stock_location.id  [stock_shipment_in_return_to_location_fkey]
  stock_shipment_internal.from_location -> stock_location.id  [stock_shipment_internal_from_location_fkey]
  stock_shipment_internal.to_location -> stock_location.id  [stock_shipment_internal_to_location_fkey]
  stock_shipment_out.carrier -> carrier.id  [stock_shipment_out_carrier_fkey]
  stock_shipment_out.company -> company_company.id  [stock_shipment_out_company_fkey]
  stock_shipment_out.cost_currency -> currency_currency.id  [stock_shipment_out_cost_currency_fkey]
  stock_shipment_out.cost_invoice_line -> account_invoice_line.id  [stock_shipment_out_cost_invoice_line_fkey]
  stock_shipment_out.cost_sale_currency -> currency_currency.id  [stock_shipment_out_cost_sale_currency_fkey]
  stock_shipment_out.customer -> party_party.id  [stock_shipment_out_customer_fkey]
  stock_shipment_out.delivery_address -> party_address.id  [stock_shipment_out_delivery_address_fkey]
  stock_shipment_out.done_by -> company_employee.id  [stock_shipment_out_done_by_fkey]
  stock_shipment_out.from_location -> stock_location.id  [stock_shipment_out_from_location_fkey]
  stock_shipment_out.incoterm -> incoterm_incoterm.id  [stock_shipment_out_incoterm_fkey]
  stock_shipment_out.incoterm_location -> party_address.id  [stock_shipment_out_incoterm_location_fkey]
  stock_shipment_out.packed_by -> company_employee.id  [stock_shipment_out_packed_by_fkey]
  stock_shipment_out.picked_by -> company_employee.id  [stock_shipment_out_picked_by_fkey]
  stock_shipment_out.to_location -> stock_location.id  [stock_shipment_out_to_location_fkey]
  stock_shipment_out.vessel -> trade_vessel.id  [stock_shipment_out_vessel_fkey]
  stock_shipment_out.warehouse -> stock_location.id  [stock_shipment_out_warehouse_fkey]
  stock_shipment_out.warehouse_output -> stock_location.id  [stock_shipment_out_warehouse_output_fkey]
  stock_shipment_out.warehouse_storage -> stock_location.id  [stock_shipment_out_warehouse_storage_fkey]
  stock_shipment_out_return.carrier -> carrier.id  [stock_shipment_out_return_carrier_fkey]
  stock_shipment_out_return.company -> company_company.id  [stock_shipment_out_return_company_fkey]
  stock_shipment_out_return.contact_address -> party_address.id  [stock_shipment_out_return_contact_address_fkey]
  stock_shipment_out_return.cost_currency -> currency_currency.id  [stock_shipment_out_return_cost_currency_fkey]
  stock_shipment_out_return.customer -> party_party.id  [stock_shipment_out_return_customer_fkey]
  stock_shipment_out_return.done_by -> company_employee.id  [stock_shipment_out_return_done_by_fkey]
  stock_shipment_out_return.incoterm -> incoterm_incoterm.id  [stock_shipment_out_return_incoterm_fkey]
  stock_shipment_out_return.incoterm_location -> party_address.id  [stock_shipment_out_return_incoterm_location_fkey]
  stock_shipment_out_return.received_by -> company_employee.id  [stock_shipment_out_return_received_by_fkey]
  stock_shipment_out_return.warehouse -> stock_location.id  [stock_shipment_out_return_warehouse_fkey]
  stock_shipment_out_return.warehouse_input -> stock_location.id  [stock_shipment_out_return_warehouse_input_fkey]
  stock_shipment_out_return.warehouse_storage -> stock_location.id  [stock_shipment_out_return_warehouse_storage_fkey]
  trade_vessel.vessel_type -> stock_vessel_type.id  [trade_vessel_vessel_type_fkey]
  valuation_valuation.counterparty -> party_party.id  [valuation_valuation_counterparty_fkey]
  valuation_valuation.currency -> currency_currency.id  [valuation_valuation_currency_fkey]
  valuation_valuation.line -> purchase_line.id  [valuation_valuation_line_fkey]
  valuation_valuation.lot -> lot_lot.id  [valuation_valuation_lot_fkey]
  valuation_valuation.product -> product_product.id  [valuation_valuation_product_fkey]
  valuation_valuation.purchase -> purchase_purchase.id  [valuation_valuation_purchase_fkey]
  valuation_valuation.sale -> sale_sale.id  [valuation_valuation_sale_fkey]
  valuation_valuation.sale_line -> sale_line.id  [valuation_valuation_sale_line_fkey]
  valuation_valuation.strategy -> mtm_strategy.id  [valuation_valuation_strategy_fkey]
  valuation_valuation.unit -> product_uom.id  [valuation_valuation_unit_fkey]
  valuation_valuation_line.counterparty -> party_party.id  [valuation_valuation_line_counterparty_fkey]
  valuation_valuation_line.currency -> currency_currency.id  [valuation_valuation_line_currency_fkey]
  valuation_valuation_line.line -> purchase_line.id  [valuation_valuation_line_line_fkey]
  valuation_valuation_line.lot -> lot_lot.id  [valuation_valuation_line_lot_fkey]
  valuation_valuation_line.product -> product_product.id  [valuation_valuation_line_product_fkey]
  valuation_valuation_line.purchase -> purchase_purchase.id  [valuation_valuation_line_purchase_fkey]
  valuation_valuation_line.sale -> sale_sale.id  [valuation_valuation_line_sale_fkey]
  valuation_valuation_line.sale_line -> sale_line.id  [valuation_valuation_line_sale_line_fkey]
  valuation_valuation_line.strategy -> mtm_strategy.id  [valuation_valuation_line_strategy_fkey]
  valuation_valuation_line.unit -> product_uom.id  [valuation_valuation_line_unit_fkey]
  web_shop.currency -> currency_currency.id  [web_shop_currency_fkey]
  web_shop.guest_party -> party_party.id  [web_shop_guest_party_fkey]
  web_shop-product_product.product -> product_product.id  [web_shop-product_product_product_fkey]
  web_shop-stock_location.warehouse -> stock_location.id  [web_shop-stock_location_warehouse_fkey]
  web_user.party -> party_party.id  [web_user_party_fkey]
  web_user-party_party_secondary.party -> party_party.id  [web_user-party_party_secondary_party_fkey]
  weight_report.buyer -> party_party.id  [weight_report_buyer_fkey]
  weight_report.carrier -> party_party.id  [weight_report_carrier_fkey]
  weight_report.port_destination -> stock_location.id  [weight_report_port_destination_fkey]
  weight_report.port_loading -> stock_location.id  [weight_report_port_loading_fkey]
  weight_report.seller -> party_party.id  [weight_report_seller_fkey]
  weight_report.vessel -> trade_vessel.id  [weight_report_vessel_fkey]
  workflow_plan.from_location -> stock_location.id  [workflow_plan_from_location_fkey]
  workflow_plan.purchase -> purchase_purchase.id  [workflow_plan_purchase_fkey]
  workflow_plan.to_location -> stock_location.id  [workflow_plan_to_location_fkey]

=== ROW COUNTS ===
  back_to_back                                                     0
  commission                                                       0
  commission_agent                                                 0
  commission_plan                                                  2
  commission_plan_line                                             1
  currency_currency                                                4
  currency_currency_rate                                          29
  curve_perf                                                     695
  derivative_derivative                                            5
  derivative_match                                                 0
  fee_fee                                                        436
  fee_lots                                                       493
  forex_bi                                                         1
  forex_category                                                   2
  forex_cover_fees                                                 0
  forex_cover_physical_contract                                    0
  forex_cover_physical_sale                                        0
  forex_cron                                                       0
  forex_forex                                                      0
  lc_letter_incoming                                               0
  lc_letter_outgoing                                               0
  lc_mt700                                                         1
  lot_accounting                                                   1
  lot_fcr                                                         18
  lot_lot                                                        512
  lot_move                                                        92
  lot_qt                                                         426
  lot_qt_hist                                                    603
  lot_qt_type                                                      5
  lot_split_merge                                                  0
  mtm_component                                                    6
  mtm_scenario                                                     2
  mtm_snapshot                                                     0
  mtm_strategy                                                     2
  open_position                                                  145
  optional_scenario                                                0
  party_party                                                    386
  pnl_bi                                                           1
  position_bi                                                      1
  price_area                                                       4
  price_calendar                                                   4
  price_calendar_line                                             36
  price_composite                                                  0
  price_composition                                                0
  price_cron                                                       0
  price_fixtype                                                    5
  price_matrix                                                     1
  price_matrix_line                                                2
  price_price                                                     69
  price_price_value                                            3,269
  price_product                                                    2
  pricing_component                                               61
  pricing_estimated                                              468
  pricing_period                                                   3
  pricing_pricing                                                  5
  pricing_summary                                                  0
  pricing_trigger                                                 57
  product_product                                                 57
  product_template                                                57
  purchase_association                                             4
  purchase_certification                                           2
  purchase_component                                               3
  purchase_crop                                                    6
  purchase_derivative                                              6
  purchase_estimated                                               7
  purchase_fee                                                     0
  purchase_fee_lots                                                0
  purchase_line                                                  106
  purchase_lot                                                     0
  purchase_lot_qt                                                  0
  purchase_period                                                  4
  purchase_pricing                                                66
  purchase_purchase                                              106
  purchase_qt_type                                                 0
  purchase_strategy                                                1
  purchase_trade_payment_term_component                            0
  purchase_trigger                                                 3
  purchase_valuation                                             103
  purchase_weight_basis                                            3
  risk_perf                                                    1,397
  risk_position                                                    0
  risk_position_var                                                0
  risk_var                                                         1
  risk_var_line                                                    2
  risk_var_values                                                  0
  sale_derivative                                                  0
  sale_fee                                                         0
  sale_invoice_line                                                0
  sale_line                                                      126
  sale_opportunity                                                 0
  sale_opportunity_line                                            0
  sale_sale                                                      126
  sale_strategy                                                    0
  sale_valuation                                                   0
  shipment_wr                                                      0
  stock_location                                                  82
  stock_move                                                      92
  stock_shipment_drop                                              0
  stock_shipment_in                                               69
  stock_shipment_in_return                                         0
  stock_shipment_out                                               0
  stock_shipment_out_return                                        0
  trade_vessel                                                   776
  valuation_valuation                                          1,375
  valuation_valuation_line                                       865