Setup config_at

develop
Andreas Brückl 2017-11-15 11:22:56 +01:00
parent 570f31c908
commit a9a552fdae
10 changed files with 312 additions and 526 deletions

View File

@ -0,0 +1,17 @@
[options]
xmlrpc_port = 8080
; This is the password that allows database operations:
; admin_passwd = admin
db_host = False
db_port = 5432
db_user = False
db_password = False
addons_path = ext/odoo/addons,ext/custom-addons,dmi/run1
; For enterprise use the addons path bellow
; addons_path = ext/enterprise-addons,ext/odoo/addons,ext/3rd-party-addons,ext/custom-addons,dmi/run1
timezone = Europe/Vienna
#dbfilter_test = ['.*',]
show_debug = 1

0
ext/__init__.py Normal file
View File

View File

View File

@ -25,9 +25,9 @@
'category': 'Custom',
'version': '1.0',
'description': """Datenübernahme""",
'author': 'camadeus GmbH',
'website': 'http://www.camadeus.at',
'depends': ['mail','cam_reports'],
'author': 'datenpol GmbH',
'website': 'http://www.datenpol.at',
'depends': [],
'data': [
'res.users.csv',
],

View File

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

View File

@ -83,52 +83,47 @@ def main():
methods = [
'create_db',
'login',
'install_module_sale',
'set_admin_rights',
]
if cmd == 'create_dump':
if cmd == 'dump':
methods = [
'create_dump',
]
if cmd == 'create_from_dump':
if cmd == 'restore':
methods = [
'create_db_from_dump',
]
if cmd == 'drop':
methods = [
'drop_db',
]
setup_methods = [
'login',
'install_modules',
'set_default_settings',
#'set_warehouse',
#'base_config',
#'sale_config',
#'finance_config',
#'hr_config',
#'stock_config',
#'mrp_config',
#'stock_set_cost_method',
#'set_incoterms',
#'purchase_config',
'set_date_format',
'set_company',
#'set_taxes',
#'set_uom',
#'set_steuerzuordnung',
'set_uom',
#'set_fiscal_position',
#'setup_journals',
'set_currencies',
'set_decimal_price',
#'set_default_values',
'set_default_values',
#'set_translations',
#'set_default_removal_strategy',
#'default_set_order_policy',
#'delete_mail_server',
#'update_values',
'update_values',
#'update_special_values',
'set_sys_params',
#'setup_reports',
'consume_tours',
'disable_planners',
'set_admin_rights',
]
if cmd == 'setup':
@ -137,7 +132,7 @@ def main():
if cmd == 'rollout':
methods = [
'login',
#'set_dokumentennummern',
#'set_sequences',
#'set_dmi_noupdate',
#'dmi_confirm_inventory',
#'import_users',
@ -226,7 +221,7 @@ def main():
env.pwd = input('Passwort: ')
if cmd in ['create','create_dump','create_from_dump']:
if cmd in ['create','dump','restore']:
env.super_admin_pw = input('Super-Admin-Passwort: ')
print()

View File

@ -20,18 +20,15 @@ class Config():
'city': 'Spannberg',
'zip': '2244',
'phone': '+43 2538/8628 0',
'fax': '+43 2538/8628 400',
'email': 'office@tzaustria.com',
'website': 'https://www.tzaustria.com/',
'company_registry': 'FN 224119m',
'country_id': 'at', # 'de' für Deutschland
'vat': 'ATU 54619104',
'rml_header1': False,
'vat_check_vies': True,
'tax_calculation_rounding_method': 'round_globally',
'logo': '../ext/custom-addons/dp_custom/static/src/img/logo.png',
'favicon_backend': '../ext/custom-addons/dp_custom/static/src/img/favicon.ico',
'favicon_backend_mimetype': 'image/x-icon'
#'favicon_backend': '../ext/custom-addons/dp_custom/static/src/img/favicon.ico',
#'favicon_backend_mimetype': 'image/x-icon'
}
self.mail_server = {
@ -72,82 +69,69 @@ class Config():
'Kunde EU Unternehmen (mit USt-ID)',
]
# Aktive Währungen
self.valid_currencies = [
'EUR',
]
# Allgemeine Einstellungen
self.base_config = {
'module_portal': False, # Kundenportal
'alias_domain': False, # False: keine Domainbezogenen E-Mails (wie z. B. Reply-To zur Alias-Adresse)
}
self.settings = {
# Einstellungen Allgemein
'auth_signup_reset_passwort': True,
'group_multi_company': True,
# Einstellungen Verkauf
self.sale_config = {
'group_sale_delivery_address': 0, # Verschiedene Adressen für Rechnung und Lieferung
'sale_pricelist_setting': 'fixed', # Verkaufspreis: [fixed], [percentage], [formula]
'group_discount_per_so_line': 0, # Rabatt auf Verkaufszeilen
'group_uom': 0, # Verwende Mengeneinheiten
'default_invoice_policy': 'order' # Standardabrechnung: [order], [delivery]
}
self.order_policy = 'picking' # Erzeuge Rechnung: [manual], [picking], [prepaid]
# Einstellungen Einkauf
self.purchase_config = {
'group_purchase_pricelist': True, # Preislisten verwenden
'default_invoice_method': 'manual', # [picking] - Rechnung von Lieferscheinen
# [manual] - von Bestellpositionen
# [order] - Vorabrechnungsentwurf durch Bestellung
'group_costing_method': True, # Benutzen Sie 'Einkaufs-' oder 'Durchschnittspreis' zur Bestandsbewertung
}
# Einstellungen Finanzen
self.finance_config = {
'group_multi_currency': False, # Multiwährungsfunktion aktivieren
'default_sale_tax_id': 'XML:l10n_at.1_tax_at_mwst_10', # Standardsteuer Verkauf
}
# Einstellungen Personal
self.hr_config = {
'module_hr_expense': True, # Spesen der Mitarbeiter verwalten
'module_hr_timesheet': False, # Verwalten Sie Ihre Studenzettel
'group_hr_attendance': True, # Zuweisung der Berechtigung zur Arbeitszeiteingabe für alle Benutzer
}
'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,
'module_sale_margin': False,
'use_sale_note': True,
'group_sale_layout': False,
'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': False,
'group_display_incoterm': True,
'module_sale_order_dates': False,
'group_route_so_lines': False,
# Einstellungen Lager
self.stock_config = {
'warehouse_and_location_usage_level': 0, # Warehouses and Locations usage level
'group_stock_tracking_lot': 0, # Verpackungsgrößen bei der Verpackung: Paletten, Kisten, Behälter...
'group_stock_production_lot': 0, # Verfolgen Sie Los- und Seriennummern
'group_stock_packaging': 0, # Manage available packaging options per products
'group_stock_adv_location': 0, # Advanced routing of products using rules
'group_product_variant': 0, # Produkte können mehrere Attribute haben, die Varianten definieren
}
'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_per_line',
'vat_check_vies': True,
'group_multi_currency': True, # Multiwährungsfunktion aktivieren
'module_account_reports_followup': False,
'group_warning_account': False,
# Einstellungen Fertigung
self.mrp_config = {
'group_mrp_routings': True, # Verwalte Arbeitspläne und Arbeitsaufträge
'module_mrp_operations': True, # Detaillierte Planung von Arbeitsaufträgen vornehmen
'group_mrp_properties': False, # Ermögliche Merkmale für verschiedene Stücklisten eines Produkts
'module_mrp_repair': False,
'module_mrp_byproduct': False,
'use_manufacturing_lead': False,
'manufacturing_lead': 0,
}
#self.removal_strategy = 'fefo' #[fifo], [lifo], [fefo]
self.stock_cost_method = 'average' # [standard], [average], [real]
self.removal_strategy = 'fifo' #[fifo], [lifo], [fefo]
self.stock_cost_method = 'standard' # [standard], [average], [real]
self.sequences = {
'sale.order': {
# 'number_next_actual': 1,
'prefix': '%(y)s',
'padding': 4,
'use_date_range': True
'use_date_range': True,
'monthly_date_range': False
},
'account.invoice': {
# 'number_next_actual': 0001,
'prefix': '%(y)s%(month)s',
'padding': 4,
'use_date_range': True
'use_date_range': True,
'monthly_date_range': False
},
# Wenn 'account.invoice_refund' auskommentiert ist, dann wird
# für die Gutschrift der selbe Nummernkreis verwendet
@ -157,13 +141,14 @@ class Config():
'implementation': 'no_gap',
'prefix': '%(y)s',
'padding': 4,
'use_date_range': True
'use_date_range': True,
'monthly_date_range': False
},
#'picking.out': {
# 'picking.out': {
# # 'number_next_actual': 1,
# 'prefix': 'LS-',
# 'padding': 5,
#},
# },
# 'picking.in': {
# #'number_next_actual': 1,
# 'prefix': 'LS/IN/',
@ -183,13 +168,13 @@ class Config():
self.active_uoms = {
'product.product_uom_unit': 'Stk.',
#'product.product_uom_meter': 'lfm',
#'product.product_uom_litre': 'l',
#'product.product_uom_hour': 'h',
#'product.product_uom_kgm': 'kg',
'product.product_uom_kgm': 'kg',
'product.product_uom_meter': 'm',
# 'product.product_uom_litre': 'l',
# 'product.product_uom_hour': 'h',,
}
#Lieferbedingungen
# Lieferbedingungen
self.incoterms = {
('Ab Werk', 'ABW'),
('Botendienst', 'BOT'),
@ -201,40 +186,26 @@ class Config():
self.modules = [
'base_iban',
'base_vat',
'document',
'knowledge', # not found
'auth_crypt',
# 'auth_admin_passkey',
# 'auth_brute_force',
# 'auth_session_timeout',
# 'disable_odoo_online',
# 'mass_editing',
# 'password_security',
# 'res_config_settings_enterprise_remove',
# 'scheduler_error_mailer',
# 'web_dialog_size',
# 'web_environment_ribbon',
# 'web_favicon',
# 'web_responsive',
# 'web_searchbar_full_width',
# 'web_sheet_full_width',
# 'web_shortcut',
# 'web_translate_dialog',
# 'web_tree_many2one_clickable',
#'website_no_crawler',
#'website_odoo_debranding',
'sale_management',
'l10n_at',
'dp_custom',
# 'dp_reports_account',
'dp_custom_reports_sale',
'dp_custom_reports_account',
# 'dp_reports_purchase',
# 'dp_reports_sale',
# 'dp_reports_stock',
'account_cancel',
'stock',
]
# Setze das Feld "Attachment" im Report (wenn gesetzt wird das PDF in den Anhängen gespeichert)
# 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.report_saleorder': "((object.state in ('draft','sent') and 'KV_' or 'AB_') + object.name" + timestamp,
'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'
@ -247,10 +218,12 @@ class Config():
]
self.default_values = [ # ir.values
# ('product.template', 'type', 'product'),
#('product.template', 'type', 'service'),
#('product.template', 'type', 'XML:xmlid'), #mit prefix "XML:" kann eine XML ID übergeben werden
]
self.order_policy = 'order'
self.data_updates = {
#'mrp.route_warehouse0_manufacture': {'name': 'Produzieren'},
#'purchase.route_warehouse0_buy': {'name': 'Einkaufen'},

File diff suppressed because it is too large Load Diff