203 lines
7.2 KiB
Python
203 lines
7.2 KiB
Python
# -*- coding: utf-8 -*-
|
|
|
|
|
|
class Config(object):
|
|
def __init__(self):
|
|
self.dump_file = 'odoo_backup.dump'
|
|
|
|
self.module_name = None
|
|
self.lang = 'de_DE' # de_DE, en_US
|
|
self.default_sales_tax = '20% MwSt.'
|
|
self.default_supplier_tax = '20% VSt.'
|
|
self.price_decimals = 2 # Nachkommastellen Preis
|
|
self.uom_decimals = 3 # Nachkommastellen Mengeneinheiten
|
|
|
|
self.load_languages = ['en_US']
|
|
|
|
self.mail_server = {
|
|
'name': 'test',
|
|
'sequence': 0,
|
|
'smtp_host': 'smtp.1und1.de',
|
|
'smtp_port': '465',
|
|
'smtp_encryption': 'ssl',
|
|
'smtp_user': 'test',
|
|
'smtp_pass': 'test',
|
|
}
|
|
|
|
# Anzahl der Schritte beim Ausliefern
|
|
# [ship_only] Direkt vom Lager liefern
|
|
# [pick_ship] Liefere vor Auslieferung zuerst in Versandlager (Pick + Ship)
|
|
# [pick_pack_ship] Verpacken Sie die Produkte an einer Pack-Station bevor Sie den Versand vornehmen
|
|
self.delivery_steps = 'ship_only'
|
|
|
|
# Aktive Steuern
|
|
self.valid_taxes = [
|
|
'20% MwSt.',
|
|
'10% MwSt.',
|
|
'0% MwSt.',
|
|
'0% Rev. Chg.',
|
|
'0% Drittland'
|
|
]
|
|
|
|
# Aktive Steuerzuordnungen
|
|
self.valid_fiscal_positions = [
|
|
'IG-Ausland',
|
|
'Drittland'
|
|
]
|
|
|
|
self.settings = {
|
|
# Einstellungen Allgemein
|
|
'auth_signup_reset_passwort': True,
|
|
'group_multi_company': True,
|
|
|
|
# Einstellungen Verkauf
|
|
'group_product_variant': False, # Produkte können mehrere Attribute haben, die Varianten definieren
|
|
'group_uom': True, # Verwende Mengeneinheiten
|
|
'group_discount_per_so_line': True, # Rabatt auf Verkaufszeilen
|
|
'multi_sales_price': True, # Mehrere Verkaufspreise pro Produkt
|
|
'multi_sales_price_method': 'percentage',
|
|
# [percentage] Multiple prices per product (e.g. customer segments, currencies)
|
|
# [formula] rices computed from formulas (discounts, margins, roundings)
|
|
'module_sale_margin': False,
|
|
'use_sale_note': True,
|
|
'group_sale_layout': True,
|
|
'group_proforma_sales': True,
|
|
'group_sale_delivery_address': True, # Verschiedene Adressen für Rechnung und Lieferung
|
|
'group_warning_sale': False,
|
|
'auto_done_setting': False,
|
|
'module_delivery': True, # Für Intrastat benötigt
|
|
'group_display_incoterm': True,
|
|
'module_sale_order_dates': False,
|
|
'group_route_so_lines': False,
|
|
|
|
# Einstellungen Lager
|
|
'group_warning_stock': False,
|
|
'group_stock_production_lot': True, # Verfolgen Sie Los- und Seriennummern
|
|
'default_picking_policy': 'direct',
|
|
'group_stock_multi_locations': False,
|
|
'group_stock_multi_warehouses': False,
|
|
'group_stock_adv_location': False, # Advanced routing of products using rules
|
|
'use_security_lead': False,
|
|
'security_lead': 0,
|
|
|
|
# Einstellungen Finanzen
|
|
'tax_calculation_rounding_method': 'round_globally',
|
|
'vat_check_vies': True,
|
|
'group_multi_currency': True, # Multiwährungsfunktion aktivieren
|
|
'module_account_reports_followup': False,
|
|
'group_warning_account': False,
|
|
|
|
# Einstellungen Fertigung
|
|
'module_mrp_repair': False,
|
|
'module_mrp_byproduct': False,
|
|
'use_manufacturing_lead': False,
|
|
'manufacturing_lead': 0,
|
|
}
|
|
|
|
self.removal_strategy = 'fifo' # [fifo], [lifo], [fefo]
|
|
self.stock_cost_method = 'standard' # [standard], [average], [real]
|
|
|
|
self.active_uoms = {
|
|
'product.product_uom_unit': 'Stk.',
|
|
'product.product_uom_kgm': 'kg',
|
|
'product.product_uom_meter': 'm',
|
|
# 'product.product_uom_litre': 'l',
|
|
# 'product.product_uom_hour': 'h',,
|
|
}
|
|
|
|
# Lieferbedingungen
|
|
self.incoterms = {
|
|
('Ab Werk', 'ABW'),
|
|
('Botendienst', 'BOT'),
|
|
('Zustellung', 'ZUS'),
|
|
}
|
|
|
|
# Soll das Ändern einer Rechnung im Nachhinein erlaubt sein?
|
|
self.allow_cancel_invoice = True
|
|
|
|
self.modules = [
|
|
'base_iban',
|
|
'base_vat',
|
|
'document',
|
|
'auth_crypt',
|
|
'sale_management',
|
|
'l10n_at',
|
|
'dp_custom',
|
|
'dp_reports_sale',
|
|
'dp_reports_account',
|
|
'dp_reports_purchase',
|
|
'dp_reports_stock',
|
|
# 'dp_reports_stock',
|
|
'account_cancel',
|
|
'stock',
|
|
'dp_changelogs',
|
|
'web_responsive',
|
|
'web_environment_ribbon',
|
|
'web_no_bubble',
|
|
'report_intrastat',
|
|
'dp_sale_hide_discount',
|
|
'connector',
|
|
'product_tax_multicompany_default',
|
|
'contract',
|
|
'dp_intercompany_invoicing',
|
|
'dp_retail_invoice',
|
|
'website_sale',
|
|
'account_invoice_fiscal_position_update',
|
|
'dp_sale_filter_partner_addresses',
|
|
'website_form_project',
|
|
'contacts',
|
|
'dp_style',
|
|
'dp_show_company',
|
|
'mass_editing',
|
|
'tz_carrier_show_integration',
|
|
'base_partner_sequence',
|
|
'global_discount',
|
|
'auditlog'
|
|
]
|
|
|
|
self.multi_website_modules = [
|
|
'website_multi_company_sale',
|
|
'clarico_cart',
|
|
'clarico_contact',
|
|
'theme_clarico',
|
|
'payment_paypal',
|
|
'payment_stripe',
|
|
'dp_website',
|
|
'odoo_website_product_attachment'
|
|
]
|
|
|
|
# Setze das Feld "Attachment" im Report (wenn gesetzt wird das PDF in den Anhängen gespeichert)
|
|
timestamp = " + '_' + time.strftime('%Y-%m-%d-%H%M') + '.pdf')"
|
|
self.reports = {
|
|
'sale.action_report_saleorder': "((object.state in ('draft','sent') and 'KV_' or 'AB_') + object.name" + timestamp,
|
|
'stock.action_report_delivery': "LS- + object.name" + timestamp,
|
|
'account.account_invoices': "(object.state in ('open', 'paid')) and ('INV' + (object.number or '').replace('/', ''))" + timestamp
|
|
}
|
|
|
|
self.users_file = 'res.users.csv'
|
|
|
|
self.translation_files = [ # Reihenfolge!
|
|
# 'auto_translated2.po',
|
|
'ir.translation.csv',
|
|
# 'auto_translated.po',
|
|
# 'auto_translated3.po',
|
|
]
|
|
|
|
self.default_values = [ # ir.values
|
|
# ('product.template', 'type', 'product'),
|
|
# ('product.template', 'type', 'service'),
|
|
]
|
|
|
|
self.order_policy = 'order'
|
|
|
|
self.data_updates = {
|
|
# 'mrp.route_warehouse0_manufacture': {'name': 'Produzieren'},
|
|
# 'purchase.route_warehouse0_buy': {'name': 'Einkaufen'},
|
|
# 'stock.route_warehouse0_mto': {'name': 'Beschaffe von Auftrag'},
|
|
}
|
|
|
|
self.system_parameters = {
|
|
'ir_attachment.location': 'file', # [db] oder [file]
|
|
'database.expiration_date': '2038-01-19',
|
|
}
|