Setup config_at
							parent
							
								
									570f31c908
								
							
						
					
					
						commit
						a9a552fdae
					
				|  | @ -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 | ||||||
|  | @ -25,9 +25,9 @@ | ||||||
|     'category': 'Custom',  |     'category': 'Custom',  | ||||||
|     'version': '1.0', |     'version': '1.0', | ||||||
|     'description': """Datenübernahme""", |     'description': """Datenübernahme""", | ||||||
|     'author': 'camadeus GmbH', |     'author': 'datenpol GmbH', | ||||||
|     'website': 'http://www.camadeus.at', |     'website': 'http://www.datenpol.at', | ||||||
|     'depends': ['mail','cam_reports'], |     'depends': [], | ||||||
|     'data': [                      |     'data': [                      | ||||||
|         'res.users.csv',          |         'res.users.csv',          | ||||||
|     ], |     ], | ||||||
| Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 2.8 KiB | 
|  | @ -83,52 +83,47 @@ def main(): | ||||||
|         methods = [ |         methods = [ | ||||||
|             'create_db', |             'create_db', | ||||||
|             'login', |             'login', | ||||||
|             'install_module_sale', |  | ||||||
|             'set_admin_rights', |  | ||||||
|         ] |         ] | ||||||
| 
 | 
 | ||||||
|     if cmd == 'create_dump': |     if cmd == 'dump': | ||||||
|         methods = [ |         methods = [ | ||||||
|             'create_dump', |             'create_dump', | ||||||
|         ] |         ] | ||||||
| 
 | 
 | ||||||
|     if cmd == 'create_from_dump': |     if cmd == 'restore': | ||||||
|         methods = [ |         methods = [ | ||||||
|             'create_db_from_dump', |             'create_db_from_dump', | ||||||
|         ] |         ] | ||||||
| 
 | 
 | ||||||
|  |     if cmd == 'drop': | ||||||
|  |         methods = [ | ||||||
|  |             'drop_db', | ||||||
|  |         ] | ||||||
|  | 
 | ||||||
|     setup_methods = [ |     setup_methods = [ | ||||||
|         'login', |         'login', | ||||||
|         'install_modules', |         'install_modules', | ||||||
|  |         'set_default_settings', | ||||||
|         #'set_warehouse', |         #'set_warehouse', | ||||||
|         #'base_config', |  | ||||||
|         #'sale_config', |  | ||||||
|         #'finance_config', |  | ||||||
|         #'hr_config', |  | ||||||
|         #'stock_config', |  | ||||||
|         #'mrp_config', |  | ||||||
|         #'stock_set_cost_method', |         #'stock_set_cost_method', | ||||||
|         #'set_incoterms', |         #'set_incoterms', | ||||||
|         #'purchase_config', |  | ||||||
|         'set_date_format', |  | ||||||
|         'set_company', |         'set_company', | ||||||
|         #'set_taxes', |         #'set_taxes', | ||||||
|         #'set_uom', |         'set_uom', | ||||||
|         #'set_steuerzuordnung', |         #'set_fiscal_position', | ||||||
|         #'setup_journals', |         #'setup_journals', | ||||||
|         'set_currencies', |  | ||||||
|         'set_decimal_price', |         'set_decimal_price', | ||||||
|         #'set_default_values', |         'set_default_values', | ||||||
|         #'set_translations', |         #'set_translations', | ||||||
|         #'set_default_removal_strategy', |         #'set_default_removal_strategy', | ||||||
|         #'default_set_order_policy', |         #'default_set_order_policy', | ||||||
|         #'delete_mail_server', |         'update_values', | ||||||
|         #'update_values', |  | ||||||
|         #'update_special_values', |         #'update_special_values', | ||||||
|         'set_sys_params', |         'set_sys_params', | ||||||
|         #'setup_reports', |         #'setup_reports', | ||||||
|         'consume_tours', |         'consume_tours', | ||||||
|         'disable_planners', |         'disable_planners', | ||||||
|  |         'set_admin_rights', | ||||||
|     ] |     ] | ||||||
| 
 | 
 | ||||||
|     if cmd == 'setup': |     if cmd == 'setup': | ||||||
|  | @ -137,7 +132,7 @@ def main(): | ||||||
|     if cmd == 'rollout': |     if cmd == 'rollout': | ||||||
|         methods = [ |         methods = [ | ||||||
|             'login', |             'login', | ||||||
|             #'set_dokumentennummern', |             #'set_sequences', | ||||||
|             #'set_dmi_noupdate', |             #'set_dmi_noupdate', | ||||||
|             #'dmi_confirm_inventory', |             #'dmi_confirm_inventory', | ||||||
|             #'import_users', |             #'import_users', | ||||||
|  | @ -226,7 +221,7 @@ def main(): | ||||||
| 
 | 
 | ||||||
|         env.pwd = input('Passwort: ') |         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: ') |             env.super_admin_pw = input('Super-Admin-Passwort: ') | ||||||
| 
 | 
 | ||||||
|         print() |         print() | ||||||
|  |  | ||||||
|  | @ -20,18 +20,15 @@ class Config(): | ||||||
|             'city': 'Spannberg', |             'city': 'Spannberg', | ||||||
|             'zip': '2244', |             'zip': '2244', | ||||||
|             'phone': '+43 2538/8628 – 0', |             'phone': '+43 2538/8628 – 0', | ||||||
|             'fax': '+43 2538/8628 – 400', |  | ||||||
|             'email': 'office@tzaustria.com', |             'email': 'office@tzaustria.com', | ||||||
|             'website': 'https://www.tzaustria.com/', |             'website': 'https://www.tzaustria.com/', | ||||||
|             'company_registry': 'FN 224119m', |             'company_registry': 'FN 224119m', | ||||||
|             'country_id': 'at', # 'de' für Deutschland |             'country_id': 'at', # 'de' für Deutschland | ||||||
|             'vat': 'ATU 54619104', |             'vat': 'ATU 54619104', | ||||||
|             'rml_header1': False, |  | ||||||
|             'vat_check_vies': True, |             'vat_check_vies': True, | ||||||
|             'tax_calculation_rounding_method': 'round_globally', |  | ||||||
|             'logo': '../ext/custom-addons/dp_custom/static/src/img/logo.png', |             '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': '../ext/custom-addons/dp_custom/static/src/img/favicon.ico', | ||||||
|             'favicon_backend_mimetype': 'image/x-icon' |             #'favicon_backend_mimetype': 'image/x-icon' | ||||||
|         } |         } | ||||||
| 
 | 
 | ||||||
|         self.mail_server = { |         self.mail_server = { | ||||||
|  | @ -72,82 +69,69 @@ class Config(): | ||||||
|             'Kunde EU Unternehmen (mit USt-ID)', |             'Kunde EU Unternehmen (mit USt-ID)', | ||||||
|         ] |         ] | ||||||
| 
 | 
 | ||||||
|         # Aktive Währungen |         self.settings = { | ||||||
|         self.valid_currencies = [ |             # Einstellungen Allgemein | ||||||
|             'EUR', |             'auth_signup_reset_passwort': True, | ||||||
|         ] |             'group_multi_company': True, | ||||||
| 
 |  | ||||||
|         # 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) |  | ||||||
|         } |  | ||||||
| 
 | 
 | ||||||
|             # Einstellungen Verkauf |             # Einstellungen Verkauf | ||||||
|         self.sale_config = { |             'group_product_variant': False,                 # Produkte können mehrere Attribute haben, die Varianten definieren | ||||||
|             'group_sale_delivery_address': 0,            # Verschiedene Adressen für Rechnung und Lieferung |             'group_uom': True,                             # Verwende Mengeneinheiten | ||||||
|             'sale_pricelist_setting': 'fixed',           # Verkaufspreis: [fixed], [percentage], [formula] |             'group_discount_per_so_line': True,            # Rabatt auf Verkaufszeilen | ||||||
|             'group_discount_per_so_line': 0,             # Rabatt auf Verkaufszeilen |             'multi_sales_price': True, | ||||||
|             'group_uom': 0,                              # Verwende Mengeneinheiten |             'module_sale_margin': False, | ||||||
|             'default_invoice_policy': 'order'            # Standardabrechnung: [order], [delivery] |             'use_sale_note': True, | ||||||
|         } |             'group_sale_layout': False, | ||||||
|         self.order_policy = 'picking'                    # Erzeuge Rechnung: [manual], [picking], [prepaid] |             'group_proforma_sales': True, | ||||||
| 
 |             'group_sale_delivery_address': True,           # Verschiedene Adressen für Rechnung und Lieferung | ||||||
|         # Einstellungen Einkauf |             'group_warning_sale': False, | ||||||
|         self.purchase_config = { |             'auto_done_setting': False, | ||||||
|             'group_purchase_pricelist': True,            # Preislisten verwenden |             'module_delivery': False, | ||||||
|             'default_invoice_method': 'manual',          # [picking] - Rechnung von Lieferscheinen |             'group_display_incoterm': True, | ||||||
|                                                          # [manual] - von Bestellpositionen |             'module_sale_order_dates': False, | ||||||
|                                                          # [order] - Vorabrechnungsentwurf durch Bestellung |             'group_route_so_lines': False, | ||||||
|             '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 |  | ||||||
|         } |  | ||||||
| 
 | 
 | ||||||
|             # Einstellungen Lager |             # Einstellungen Lager | ||||||
|         self.stock_config = { |             'group_warning_stock': False, | ||||||
|             'warehouse_and_location_usage_level': 0,     # Warehouses and Locations usage level |             'group_stock_production_lot': True,            # Verfolgen Sie Los- und Seriennummern | ||||||
|             'group_stock_tracking_lot': 0,               # Verpackungsgrößen bei der Verpackung: Paletten, Kisten, Behälter... |             'default_picking_policy': 'direct', | ||||||
|             'group_stock_production_lot': 0,             # Verfolgen Sie Los- und Seriennummern |             'group_stock_multi_locations': False, | ||||||
|             'group_stock_packaging': 0,                  # Manage available packaging options per products |             'group_stock_multi_warehouses': False, | ||||||
|             'group_stock_adv_location': 0,               # Advanced routing of products using rules |             'group_stock_adv_location': False,              # Advanced routing of products using rules | ||||||
|             'group_product_variant': 0,                  # Produkte können mehrere Attribute haben, die Varianten definieren |             '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 |             # Einstellungen Fertigung | ||||||
|         self.mrp_config = { |             'module_mrp_repair': False, | ||||||
|             'group_mrp_routings': True,                  # Verwalte Arbeitspläne und Arbeitsaufträge |             'module_mrp_byproduct': False, | ||||||
|             'module_mrp_operations': True,               # Detaillierte Planung von Arbeitsaufträgen vornehmen |             'use_manufacturing_lead': False, | ||||||
|             'group_mrp_properties': False,               # Ermögliche Merkmale für verschiedene Stücklisten eines Produkts |             'manufacturing_lead': 0, | ||||||
|         } |         } | ||||||
| 
 | 
 | ||||||
|         #self.removal_strategy = 'fefo'                  #[fifo], [lifo], [fefo] |         self.removal_strategy = 'fifo'                      #[fifo], [lifo], [fefo] | ||||||
| 
 |         self.stock_cost_method = 'standard'                 # [standard], [average], [real] | ||||||
|         self.stock_cost_method = 'average'               # [standard], [average], [real] |  | ||||||
| 
 | 
 | ||||||
|         self.sequences = { |         self.sequences = { | ||||||
|             'sale.order': { |             'sale.order': { | ||||||
|                 # 'number_next_actual': 1, |                 # 'number_next_actual': 1, | ||||||
|                 'prefix': '%(y)s', |                 'prefix': '%(y)s', | ||||||
|                 'padding': 4, |                 'padding': 4, | ||||||
|                 'use_date_range': True |                 'use_date_range': True, | ||||||
|  |                 'monthly_date_range': False | ||||||
|             }, |             }, | ||||||
|             'account.invoice': { |             'account.invoice': { | ||||||
|                 # 'number_next_actual': 0001, |                 # 'number_next_actual': 0001, | ||||||
|                 'prefix': '%(y)s%(month)s', |                 'prefix': '%(y)s%(month)s', | ||||||
|                 'padding': 4, |                 'padding': 4, | ||||||
|                 'use_date_range': True |                 'use_date_range': True, | ||||||
|  |                 'monthly_date_range': False | ||||||
|             }, |             }, | ||||||
|             # Wenn 'account.invoice_refund' auskommentiert ist, dann wird |             # Wenn 'account.invoice_refund' auskommentiert ist, dann wird | ||||||
|             # für die Gutschrift der selbe Nummernkreis verwendet |             # für die Gutschrift der selbe Nummernkreis verwendet | ||||||
|  | @ -157,13 +141,14 @@ class Config(): | ||||||
|                 'implementation': 'no_gap', |                 'implementation': 'no_gap', | ||||||
|                 'prefix': '%(y)s', |                 'prefix': '%(y)s', | ||||||
|                 'padding': 4, |                 'padding': 4, | ||||||
|                 'use_date_range': True |                 'use_date_range': True, | ||||||
|  |                 'monthly_date_range': False | ||||||
|             }, |             }, | ||||||
|             #'picking.out': { |             # 'picking.out': { | ||||||
|             #    # 'number_next_actual': 1, |             #    # 'number_next_actual': 1, | ||||||
|             #    'prefix': 'LS-', |             #    'prefix': 'LS-', | ||||||
|             #    'padding': 5, |             #    'padding': 5, | ||||||
|             #}, |             # }, | ||||||
|             #            'picking.in':  { |             #            'picking.in':  { | ||||||
|             #                #'number_next_actual': 1, |             #                #'number_next_actual': 1, | ||||||
|             #                'prefix': 'LS/IN/', |             #                'prefix': 'LS/IN/', | ||||||
|  | @ -183,13 +168,13 @@ class Config(): | ||||||
| 
 | 
 | ||||||
|         self.active_uoms = { |         self.active_uoms = { | ||||||
|             'product.product_uom_unit': 'Stk.', |             'product.product_uom_unit': 'Stk.', | ||||||
|             #'product.product_uom_meter': 'lfm', |             'product.product_uom_kgm': 'kg', | ||||||
|             #'product.product_uom_litre': 'l', |             'product.product_uom_meter': 'm', | ||||||
|             #'product.product_uom_hour': 'h', |             # 'product.product_uom_litre': 'l', | ||||||
|             #'product.product_uom_kgm': 'kg', |             # 'product.product_uom_hour': 'h',, | ||||||
|         } |         } | ||||||
| 
 | 
 | ||||||
|         #Lieferbedingungen |         # Lieferbedingungen | ||||||
|         self.incoterms = { |         self.incoterms = { | ||||||
|             ('Ab Werk', 'ABW'), |             ('Ab Werk', 'ABW'), | ||||||
|             ('Botendienst', 'BOT'), |             ('Botendienst', 'BOT'), | ||||||
|  | @ -201,40 +186,26 @@ class Config(): | ||||||
| 
 | 
 | ||||||
|         self.modules = [ |         self.modules = [ | ||||||
|             'base_iban', |             'base_iban', | ||||||
|  |             'base_vat', | ||||||
|             'document', |             'document', | ||||||
|             'knowledge', # not found |  | ||||||
|             'auth_crypt', |             'auth_crypt', | ||||||
|             # 'auth_admin_passkey', |             'sale_management', | ||||||
|             # 'auth_brute_force', |             'l10n_at', | ||||||
|             # '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', |  | ||||||
|             'dp_custom', |             'dp_custom', | ||||||
|             # 'dp_reports_account', |             'dp_custom_reports_sale', | ||||||
|  |             'dp_custom_reports_account', | ||||||
|             # 'dp_reports_purchase', |             # 'dp_reports_purchase', | ||||||
|             # 'dp_reports_sale', |  | ||||||
|             # 'dp_reports_stock', |             # 'dp_reports_stock', | ||||||
|             'account_cancel', |             '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')" |         timestamp = " + '_' +  time.strftime('%Y-%m-%d-%H%M') + '.pdf')" | ||||||
|         self.reports = { |         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' |         self.users_file = 'res.users.csv' | ||||||
|  | @ -247,10 +218,12 @@ class Config(): | ||||||
|                                   ] |                                   ] | ||||||
| 
 | 
 | ||||||
|         self.default_values = [   # ir.values |         self.default_values = [   # ir.values | ||||||
|  |             # ('product.template', 'type', 'product'), | ||||||
|             #('product.template', 'type', 'service'), |             #('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 = { |         self.data_updates = { | ||||||
|             #'mrp.route_warehouse0_manufacture': {'name': 'Produzieren'}, |             #'mrp.route_warehouse0_manufacture': {'name': 'Produzieren'}, | ||||||
|             #'purchase.route_warehouse0_buy': {'name': 'Einkaufen'}, |             #'purchase.route_warehouse0_buy': {'name': 'Einkaufen'}, | ||||||
|  |  | ||||||
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
		Loading…
	
		Reference in New Issue