-
-
Notifications
You must be signed in to change notification settings - Fork 723
/
Copy pathapriori.py
87 lines (83 loc) · 2.94 KB
/
apriori.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
""" Encode any known changes to the database here
to help the matching process
"""
# Renamed modules is a mapping from old module name to new module name
renamed_modules = {
# odoo
"note": "project_todo",
"website_sale_delivery_mondialrelay": "website_sale_mondialrelay",
# odoo/enterprise
# OCA/social
"mail_activity_unlink_log": "mail_activity_cancel_tracking",
}
# Merged modules contain a mapping from old module names to other,
# preexisting module names
merged_modules = {
# odoo
"account_payment_invoice_online_payment_patch": "account_payment",
"account_sequence": "account",
"association": "membership",
"l10n_de_skr03": "l10n_de",
"l10n_de_skr04": "l10n_de",
"l10n_generic_coa": "account",
"l10n_hr_euro": "l10n_hr",
"l10n_in_tcs_tds": "l10n_in",
"l10n_in_upi": "l10n_in",
"l10n_latam_account_sequence": "l10n_latam_invoice_document",
"loyalty_delivery": "sale_loyalty_delivery",
"pos_cache": "point_of_sale",
"pos_daily_sales_reports": "point_of_sale",
"pos_epson_printer_restaurant": "point_of_sale",
"purchase_price_diff": "purchase_stock",
"sale_quotation_builder": "sale_pdf_quote_builder",
"spreadsheet_dashboard_sale_expense": "spreadsheet_dashboard_hr_expense",
"web_kanban_gauge": "web",
"website_event_crm_questions": "website_event_crm",
"website_event_questions": "website_event",
"website_sale_delivery": "website_sale",
"website_sale_digital": "website_sale",
"website_sale_loyalty_delivery": "website_sale_loyalty",
"website_sale_stock_product_configurator": "website_sale_product_configurator",
# OCA/account-invoicing
"account_invoice_fiscal_position_update": "account",
# OCA/hr-attendance
"hr_attendance_geolocation": "hr_attendance",
# OCA/l10n-spain
"l10n_es_dua": "l10n_es",
"l10n_es_irnr": "l10n_es",
"l10n_es_irnr_sii": "l10n_es_aeat_sii_oca",
# OCA/maintenance
"base_maintenance_config": "maintenance",
"maintenance_plan": "maintenance",
"maintenance_plan_activity": "maintenance",
"maintenance_plan_employee": "maintenance",
# OCA/purchase-workflow
"purchase_discount": "purchase",
# OCA/social
"mail_activity_plan": "mail",
# OCA/stock-logistics-warehouse
"stock_lot_filter_available": "stock",
# OCA/web
"web_advanced_search": "web",
"web_listview_range_select": "web",
"web_pwa_oca": "web",
# OCA/...
}
# only used here for upgrade_analysis
renamed_models = {
# odoo
"hr.leave.stress.day": "hr.leave.mandatory.day",
"mail.channel": "discuss.channel",
"mail.channel.member": "discuss.channel.member",
"mail.channel.rtc.session": "discuss.channel.rtc.session",
"mailing.contact.subscription": "mailing.subscription",
"payment.icon": "payment.method",
"restaurant.printer": "pos.printer",
# OCA/...
}
# only used here for upgrade_analysis
merged_models = {
# odoo
"repair.line": "stock.move",
# OCA/...
}