odoo-addon-openupgrade-scripts 18.0.1.0.0.74__py3-none-any.whl → 18.0.1.0.0.97__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- odoo/addons/openupgrade_scripts/scripts/account/18.0.1.3/post-migration.py +181 -0
- odoo/addons/openupgrade_scripts/scripts/account/18.0.1.3/pre-migration.py +199 -0
- odoo/addons/openupgrade_scripts/scripts/account/18.0.1.3/upgrade_analysis_work.txt +377 -0
- odoo/addons/openupgrade_scripts/scripts/account/tests/data.py +19 -0
- odoo/addons/openupgrade_scripts/scripts/account/tests/test_migration.py +25 -0
- odoo/addons/openupgrade_scripts/scripts/account_payment/18.0.2.0/noupdate_changes.xml +1 -0
- odoo/addons/openupgrade_scripts/scripts/account_payment/18.0.2.0/upgrade_analysis_work.txt +11 -0
- odoo/addons/openupgrade_scripts/scripts/base_vat/18.0.1.0/upgrade_analysis_work.txt +5 -0
- odoo/addons/openupgrade_scripts/scripts/hr/18.0.1.1/post-migration.py +10 -0
- odoo/addons/openupgrade_scripts/scripts/hr/18.0.1.1/pre-migration.py +52 -0
- odoo/addons/openupgrade_scripts/scripts/hr/18.0.1.1/upgrade_analysis_work.txt +76 -0
- odoo/addons/openupgrade_scripts/scripts/l10n_es/18.0.5.4/upgrade_analysis_work.txt +76 -0
- odoo/addons/openupgrade_scripts/scripts/product/18.0.1.2/post-migration.py +4 -4
- odoo/addons/openupgrade_scripts/scripts/purchase/18.0.1.2/post-migration.py +28 -0
- odoo/addons/openupgrade_scripts/scripts/purchase/18.0.1.2/pre-migration.py +24 -0
- odoo/addons/openupgrade_scripts/scripts/purchase/18.0.1.2/upgrade_analysis_work.txt +51 -0
- odoo/addons/openupgrade_scripts/scripts/sale/18.0.1.2/end-migration.py +49 -0
- odoo/addons/openupgrade_scripts/scripts/sale/18.0.1.2/post-migration.py +21 -0
- odoo/addons/openupgrade_scripts/scripts/sale/18.0.1.2/pre-migration.py +34 -0
- odoo/addons/openupgrade_scripts/scripts/sale/18.0.1.2/upgrade_analysis_work.txt +85 -0
- odoo/addons/openupgrade_scripts/scripts/sale_crm/18.0.1.0/upgrade_analysis_work.txt +5 -0
- odoo/addons/openupgrade_scripts/scripts/sale_stock/18.0.1.0/post-migration.py +12 -0
- odoo/addons/openupgrade_scripts/scripts/sale_stock/18.0.1.0/pre-migration.py +62 -0
- odoo/addons/openupgrade_scripts/scripts/sale_stock/18.0.1.0/upgrade_analysis_work.txt +18 -0
- odoo/addons/openupgrade_scripts/scripts/stock/18.0.1.1/post-migration.py +99 -0
- odoo/addons/openupgrade_scripts/scripts/stock/18.0.1.1/pre-migration.py +81 -0
- odoo/addons/openupgrade_scripts/scripts/stock/18.0.1.1/upgrade_analysis_work.txt +139 -0
- odoo/addons/openupgrade_scripts/scripts/stock_account/18.0.1.1/end-migration.py +23 -0
- odoo/addons/openupgrade_scripts/scripts/stock_account/18.0.1.1/post-migration.py +36 -0
- odoo/addons/openupgrade_scripts/scripts/stock_account/18.0.1.1/pre-migration.py +22 -0
- odoo/addons/openupgrade_scripts/scripts/stock_account/18.0.1.1/upgrade_analysis_work.txt +34 -0
- {odoo_addon_openupgrade_scripts-18.0.1.0.0.74.dist-info → odoo_addon_openupgrade_scripts-18.0.1.0.0.97.dist-info}/METADATA +1 -1
- {odoo_addon_openupgrade_scripts-18.0.1.0.0.74.dist-info → odoo_addon_openupgrade_scripts-18.0.1.0.0.97.dist-info}/RECORD +35 -6
- {odoo_addon_openupgrade_scripts-18.0.1.0.0.74.dist-info → odoo_addon_openupgrade_scripts-18.0.1.0.0.97.dist-info}/WHEEL +0 -0
- {odoo_addon_openupgrade_scripts-18.0.1.0.0.74.dist-info → odoo_addon_openupgrade_scripts-18.0.1.0.0.97.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,377 @@
|
|
1
|
+
---Models in module 'account'---
|
2
|
+
obsolete model account.tour.upload.bill [transient]
|
3
|
+
obsolete model account.tour.upload.bill.email.confirm [transient]
|
4
|
+
obsolete model account.unreconcile [transient]
|
5
|
+
new model account.autopost.bills.wizard [transient]
|
6
|
+
new model account.code.mapping [sql_view]
|
7
|
+
new model account.lock_exception
|
8
|
+
new model account.merge.wizard [transient]
|
9
|
+
new model account.merge.wizard.line [transient]
|
10
|
+
new model account.move.send.batch.wizard [transient]
|
11
|
+
new model account.move.send.wizard [transient]
|
12
|
+
new model account.secure.entries.wizard [transient]
|
13
|
+
# NOTHING TO DO
|
14
|
+
|
15
|
+
---Fields in module 'account'---
|
16
|
+
account / account.account / _order : _order is now 'code, placeholder_code' ('code, company_id')
|
17
|
+
account / account.account / code_mapping_ids (one2many) : NEW relation: account.code.mapping
|
18
|
+
# NOTHING TO DO
|
19
|
+
|
20
|
+
account / account.account / code (char) : not stored anymore
|
21
|
+
account / account.account / code (char) : now a function
|
22
|
+
account / account.account / code_store (char) : NEW
|
23
|
+
# DONE: post-migration: fill code_store from code and company_id
|
24
|
+
|
25
|
+
account / account.account / company_currency_id (many2one): not related anymore
|
26
|
+
account / account.account / company_currency_id (many2one): now a function
|
27
|
+
# NOTHING TO DO
|
28
|
+
|
29
|
+
account / account.account / company_id (many2one) : DEL relation: res.company, required
|
30
|
+
account / account.account / company_ids (many2many) : NEW relation: res.company, required, hasdefault: default
|
31
|
+
# DONE: post-migration: many2one to many2many
|
32
|
+
|
33
|
+
account / account.account / display_mapping_tab (boolean) : NEW hasdefault: default, stored: False
|
34
|
+
# NOTHING TO DO: store = False
|
35
|
+
|
36
|
+
account / account.account / group_id (many2one) : not stored anymore
|
37
|
+
account / account.account / include_initial_balance (boolean): not stored anymore
|
38
|
+
account / account.account / internal_group (selection) : not stored anymore
|
39
|
+
account / account.account / root_id (many2one) : not stored anymore
|
40
|
+
# NOTHING TO DO
|
41
|
+
|
42
|
+
account / account.account / internal_group (selection) : selection_keys is now '['asset', 'equity', 'expense', 'income', 'liability', 'off']' ('['asset', 'equity', 'expense', 'income', 'liability', 'off_balance']')
|
43
|
+
# DONE: pre-migration: rename 'off_balance' to 'off'
|
44
|
+
|
45
|
+
account / account.bank.statement.line / company_id (many2one) : is now stored
|
46
|
+
account / account.bank.statement.line / company_id (many2one) : now required
|
47
|
+
# DONE: pre-migration: pre-created and filled
|
48
|
+
|
49
|
+
account / account.bank.statement.line / journal_id (many2one) : is now stored
|
50
|
+
# DONE: pre-migration: pre-created and filled
|
51
|
+
|
52
|
+
account / account.cash.rounding / loss_account_id (many2one) : needs conversion to v18-style company dependent
|
53
|
+
account / account.cash.rounding / profit_account_id (many2one) : needs conversion to v18-style company dependent
|
54
|
+
# DONE: post-migration: used openupgrade_180.convert_company_dependent
|
55
|
+
|
56
|
+
account / account.group / parent_path (char) : DEL
|
57
|
+
# NOTHING TO DO
|
58
|
+
|
59
|
+
account / account.journal / autocheck_on_post (boolean) : NEW hasdefault: default
|
60
|
+
# DONE: pre-migration: pre-created and filled
|
61
|
+
|
62
|
+
account / account.journal / sale_activity_note (text) : DEL
|
63
|
+
account / account.journal / sale_activity_type_id (many2one): DEL relation: mail.activity.type
|
64
|
+
account / account.journal / sale_activity_user_id (many2one): DEL relation: res.users
|
65
|
+
# NOTHING TO DO: https://github.com/odoo/odoo/commit/ab3c81b680a1019ff33aabf87cf533af7bfe8cfa
|
66
|
+
|
67
|
+
account / account.journal / secure_sequence_id (many2one) : DEL relation: ir.sequence
|
68
|
+
# NOTHING TO DO: https://github.com/odoo/odoo/commit/9a1b320255766f4c7c72e9bbf50c1d50615ab397
|
69
|
+
|
70
|
+
account / account.journal / type (selection) : selection_keys is now '['bank', 'cash', 'credit', 'general', 'purchase', 'sale']' ('['bank', 'cash', 'general', 'purchase', 'sale']')
|
71
|
+
# NOTHING TO DO: new 'credit' option
|
72
|
+
|
73
|
+
account / account.lock_exception / active (boolean) : NEW hasdefault: default
|
74
|
+
account / account.lock_exception / company_id (many2one) : NEW relation: res.company, required
|
75
|
+
account / account.lock_exception / company_lock_date (date) : NEW
|
76
|
+
account / account.lock_exception / end_datetime (datetime) : NEW
|
77
|
+
account / account.lock_exception / lock_date (date) : NEW
|
78
|
+
account / account.lock_exception / lock_date_field (selection) : NEW required, selection_keys: ['fiscalyear_lock_date', 'purchase_lock_date', 'sale_lock_date', 'tax_lock_date']
|
79
|
+
account / account.lock_exception / reason (char) : NEW
|
80
|
+
account / account.lock_exception / user_id (many2one) : NEW relation: res.users, hasdefault: default
|
81
|
+
# NOTHING TO DO: new feature
|
82
|
+
|
83
|
+
account / account.move / amount_untaxed_in_currency_signed (float): NEW isfunction: function, stored
|
84
|
+
# DONE: pre-migration: pre-created and filled
|
85
|
+
|
86
|
+
account / account.move / audit_trail_message_ids (one2many): NEW relation: mail.message
|
87
|
+
# NOTHING TO DO
|
88
|
+
|
89
|
+
account / account.move / checked (boolean) : NEW
|
90
|
+
account / account.move / to_check (boolean) : DEL
|
91
|
+
# DONE: pre-migration: pre-created and filled
|
92
|
+
|
93
|
+
account / account.move / invoice_currency_rate (float) : NEW isfunction: function, stored
|
94
|
+
l10n_dk_bookkeeping / account.move / l10n_dk_currency_rate_at_transaction (float): DEL
|
95
|
+
# DONE: pre-migration: rename field
|
96
|
+
|
97
|
+
account / account.move / is_manually_modified (boolean): NEW
|
98
|
+
# NOTHING TO DO: new feature for account.autopost.bills.wizard
|
99
|
+
|
100
|
+
account / account.move / journal_group_id (many2one) : NEW relation: account.journal.group, stored: False
|
101
|
+
# NOTHING TO DO: store = False
|
102
|
+
|
103
|
+
account / account.move / made_sequence_gap (boolean) : NEW isfunction: function, stored
|
104
|
+
# NOTHING TO DO: will be computed by ORM
|
105
|
+
|
106
|
+
account / account.move / origin_payment_id (many2one) : NEW relation: account.payment
|
107
|
+
account / account.move / payment_id (many2one) : DEL relation: account.payment
|
108
|
+
# DONE: pre-migration: rename field
|
109
|
+
|
110
|
+
account / account.move / payment_state (selection) : selection_keys is now '['blocked', 'in_payment', 'invoicing_legacy', 'not_paid', 'paid', 'partial', 'reversed']' ('['in_payment', 'invoicing_legacy', 'not_paid', 'paid', 'partial', 'reversed']')
|
111
|
+
# NOTHING TO DO: new 'blocked' option
|
112
|
+
|
113
|
+
account / account.move / preferred_payment_method_line_id (many2one): NEW relation: account.payment.method.line, hasdefault: compute
|
114
|
+
# DONE: pre-migration: pre-created and fill using old preferred_payment_method_id (from account_check_printing)
|
115
|
+
|
116
|
+
account / account.move / reversal_move_id (one2many) : DEL relation: account.move
|
117
|
+
account / account.move / reversal_move_ids (one2many) : NEW relation: account.move
|
118
|
+
# DONE: pre-migration: rename field
|
119
|
+
|
120
|
+
account / account.move / send_and_print_values (json) : DEL
|
121
|
+
account / account.move / sending_data (json) : NEW
|
122
|
+
# DONE: pre-migration: rename field (and adapt json values)
|
123
|
+
|
124
|
+
account / account.move.line / account_root_id (many2one) : not stored anymore
|
125
|
+
account / account.move.line / analytic_distribution_search (json): DEL stored: False
|
126
|
+
# NOTHING TO DO
|
127
|
+
|
128
|
+
account / account.move.line / blocked (boolean) : DEL
|
129
|
+
# NOTHING TO DO: https://github.com/odoo/odoo/commit/67dc71588751c9f115e09959d774686c2207a1f9
|
130
|
+
|
131
|
+
account / account.move.line / is_imported (boolean) : NEW
|
132
|
+
# NOTHING TO DO?
|
133
|
+
|
134
|
+
account / account.move.line / journal_group_id (many2one) : NEW relation: account.journal.group, stored: False
|
135
|
+
# NOTHING TO DO: store = False
|
136
|
+
|
137
|
+
account / account.move / matched_payment_ids (many2many): NEW relation: account.payment
|
138
|
+
account / account.payment / invoice_ids (many2many) : NEW relation: account.move
|
139
|
+
account / account.payment / _inherits : DEL _inherits: {'account.move': 'move_id'}, stored: False
|
140
|
+
# DONE: post-migration: link payments to moves
|
141
|
+
|
142
|
+
account / account.payment / attachment_ids (one2many) : is now stored
|
143
|
+
account / account.payment / attachment_ids (one2many) : not related anymore
|
144
|
+
account / account.payment / company_id (many2one) : is now stored
|
145
|
+
account / account.payment / company_id (many2one) : not related anymore
|
146
|
+
account / account.payment / company_id (many2one) : now required
|
147
|
+
account / account.payment / date (date) : is now stored
|
148
|
+
account / account.payment / date (date) : not related anymore
|
149
|
+
account / account.payment / destination_journal_id (many2one): DEL relation: account.journal
|
150
|
+
account / account.payment / is_internal_transfer (boolean): DEL
|
151
|
+
account / account.payment / is_sent (boolean) : NEW
|
152
|
+
account / account.payment / journal_id (many2one) : is now stored
|
153
|
+
account / account.payment / journal_id (many2one) : not related anymore
|
154
|
+
account / account.payment / memo (char) : NEW
|
155
|
+
account / account.payment / name (char) : is now stored
|
156
|
+
account / account.payment / name (char) : not related anymore
|
157
|
+
account / account.payment / name (char) : now a function
|
158
|
+
account / account.payment / state (selection) : is now stored
|
159
|
+
account / account.payment / state (selection) : not related anymore
|
160
|
+
account / account.payment / state (selection) : selection_keys is now '['canceled', 'draft', 'in_process', 'paid', 'rejected']' ('function')
|
161
|
+
# DONE: pre-migration: pre-create account.move fields and fill them
|
162
|
+
|
163
|
+
account / account.payment.term.line / delay_type (selection) : selection_keys is now '['days_after', 'days_after_end_of_month', 'days_after_end_of_next_month', 'days_end_of_month_on_the']' ('['days_after', 'days_after_end_of_month', 'days_after_end_of_next_month']')
|
164
|
+
account_payment_term / account.payment.term.line / delay_type (False) : DEL selection_keys: ['days_after', 'days_after_end_of_month', 'days_after_end_of_next_month', 'days_end_of_month_on_the'], mode: modify
|
165
|
+
# NOTHING TO DO
|
166
|
+
|
167
|
+
account / account.reconcile.model / counterpart_type (selection) : NEW selection_keys: ['general', 'purchase', 'sale'], hasdefault: default
|
168
|
+
# DONE: pre-migration: pre-created and filled
|
169
|
+
|
170
|
+
account / account.reconcile.model.line / analytic_distribution_search (json): DEL stored: False
|
171
|
+
# NOTHING TO DO
|
172
|
+
|
173
|
+
account / account.report / currency_translation (selection): NEW selection_keys: ['cta', 'current'], hasdefault: compute
|
174
|
+
account / account.report / filter_budgets (boolean) : NEW hasdefault: compute
|
175
|
+
# NOTHING TO DO
|
176
|
+
|
177
|
+
account / account.report / default_opening_date_filter (selection): selection_keys is now '['previous_month', 'previous_quarter', 'previous_tax_period', 'previous_year', 'this_month', 'this_quarter', 'this_tax_period', 'this_year', 'today']' ('['last_month', 'last_quarter', 'last_tax_period', 'last_year', 'this_month', 'this_quarter', 'this_tax_period', 'this_year', 'today']')
|
178
|
+
# DONE: pre-migration: renamed options
|
179
|
+
|
180
|
+
|
181
|
+
account / account.report / integer_rounding (selection) : NEW selection_keys: ['DOWN', 'HALF-UP', 'UP']
|
182
|
+
account / account.report.line / horizontal_split_side (selection): NEW selection_keys: ['left', 'right'], hasdefault: compute
|
183
|
+
# NOTHING TO DO
|
184
|
+
|
185
|
+
account / account.report.expression / date_scope (selection) : selection_keys is now '['from_beginning', 'from_fiscalyear', 'previous_tax_period', 'strict_range', 'to_beginning_of_fiscalyear', 'to_beginning_of_period']' ('['from_beginning', 'from_fiscalyear', 'normal', 'previous_tax_period', 'strict_range', 'to_beginning_of_fiscalyear', 'to_beginning_of_period']')
|
186
|
+
# DONE: pre-migration: removed 'normal' option, changed to 'strict_range'
|
187
|
+
|
188
|
+
account / account.tax / description (char) : type is now 'html' ('char')
|
189
|
+
# DONE: pre-migration: use openupgradelib convert_field_to_html
|
190
|
+
|
191
|
+
account / account.tax / invoice_legal_notes (html) : NEW
|
192
|
+
# NOTHING TO DO
|
193
|
+
|
194
|
+
account / account.tax / price_include (boolean) : not stored anymore
|
195
|
+
account / account.tax / price_include (boolean) : now a function
|
196
|
+
account / account.tax / price_include_override (selection): NEW selection_keys: ['tax_excluded', 'tax_included']
|
197
|
+
# DONE: pre-migration: price_include_override pre-created and filled using old price_include
|
198
|
+
|
199
|
+
account / account.tax.group / pos_receipt_label (char) : NEW
|
200
|
+
account / ir.actions.report / is_invoice_report (boolean) : NEW
|
201
|
+
# NOTHING TO DO
|
202
|
+
|
203
|
+
account / product.category / property_account_expense_categ_id (many2one): needs conversion to v18-style company dependent
|
204
|
+
account / product.category / property_account_income_categ_id (many2one): needs conversion to v18-style company dependent
|
205
|
+
account / product.template / property_account_expense_id (many2one): needs conversion to v18-style company dependent
|
206
|
+
account / product.template / property_account_income_id (many2one): needs conversion to v18-style company dependent
|
207
|
+
# DONE: post-migration: used openupgrade_180.convert_company_dependent
|
208
|
+
|
209
|
+
account / res.company / account_journal_payment_credit_account_id (many2one): DEL relation: account.account
|
210
|
+
account / res.company / account_journal_payment_debit_account_id (many2one): DEL relation: account.account
|
211
|
+
# NOTHING TO DO
|
212
|
+
|
213
|
+
account / res.company / account_price_include (selection): NEW required, selection_keys: ['tax_excluded', 'tax_included'], hasdefault: default
|
214
|
+
account / res.company / autopost_bills (boolean) : NEW hasdefault: default
|
215
|
+
account / res.company / batch_payment_sequence_id (many2one): NEW relation: ir.sequence
|
216
|
+
account / res.company / display_invoice_tax_company_currency (boolean): NEW hasdefault: default
|
217
|
+
# NOTHING TO DO: new features
|
218
|
+
|
219
|
+
account / res.company / country_code (char) : module is now 'base' ('account')
|
220
|
+
# NOTHING TO DO
|
221
|
+
|
222
|
+
account / res.company / invoice_is_download (boolean) : DEL
|
223
|
+
account / res.company / invoice_is_email (boolean) : DEL
|
224
|
+
# NOTHING TO DO: https://github.com/odoo/odoo/commit/9e769e1b11f22890e5245859053bc8dd31e42634
|
225
|
+
|
226
|
+
account / res.company / hard_lock_date (date) : NEW
|
227
|
+
account / res.company / period_lock_date (date) : DEL
|
228
|
+
account / res.company / purchase_lock_date (date) : NEW
|
229
|
+
account / res.company / sale_lock_date (date) : NEW
|
230
|
+
# DONE: post-migration: filled sale_lock_date and purchase_lock_date with period_lock_date
|
231
|
+
|
232
|
+
account / res.currency / fiscal_country_codes (char) : not a function anymore
|
233
|
+
NOTHING TO DO (still store=False)
|
234
|
+
|
235
|
+
account / res.partner / autopost_bills (selection) : NEW required, selection_keys: ['always', 'ask', 'never'], hasdefault: default
|
236
|
+
account / res.partner / display_invoice_edi_format (boolean): NEW hasdefault: default, stored: False
|
237
|
+
account / res.partner / display_invoice_template_pdf_report_id (boolean): NEW hasdefault: default, stored: False
|
238
|
+
account / res.partner / ignore_abnormal_invoice_amount (boolean): NEW
|
239
|
+
account / res.partner / ignore_abnormal_invoice_date (boolean): NEW
|
240
|
+
account / res.partner / invoice_edi_format_store (char): NEW
|
241
|
+
account / res.partner / invoice_sending_method (selection): NEW selection_keys: ['email', 'manual']
|
242
|
+
account / res.partner / invoice_template_pdf_report_id (many2one): NEW relation: ir.actions.report
|
243
|
+
NOTHING TO DO: new features
|
244
|
+
|
245
|
+
account / res.partner / last_time_entries_checked (datetime): DEL
|
246
|
+
# NOTHING TO DO: https://github.com/odoo/odoo/commit/3cec797886e5179cc0efd9e70ab267a215f6dced
|
247
|
+
|
248
|
+
account / res.partner / property_inbound_payment_method_line_id (many2one): NEW relation: account.payment.method.line
|
249
|
+
account / res.partner / property_outbound_payment_method_line_id (many2one): NEW relation: account.payment.method.line
|
250
|
+
# post-migration: use old property_payment_method_id (from account_check_printing) to fill property_outbound_payment_method_line_id
|
251
|
+
|
252
|
+
account / res.partner / credit_limit (float) : needs conversion to v18-style company dependent
|
253
|
+
account / res.partner / property_account_payable_id (many2one): needs conversion to v18-style company dependent
|
254
|
+
account / res.partner / property_account_position_id (many2one): needs conversion to v18-style company dependent
|
255
|
+
account / res.partner / property_account_receivable_id (many2one): needs conversion to v18-style company dependent
|
256
|
+
account / res.partner / property_payment_term_id (many2one): needs conversion to v18-style company dependent
|
257
|
+
account / res.partner / property_supplier_payment_term_id (many2one): needs conversion to v18-style company dependent
|
258
|
+
account / res.partner / trust (selection) : needs conversion to v18-style company dependent
|
259
|
+
# DONE: post-migration: used openupgrade_180.convert_company_dependent
|
260
|
+
|
261
|
+
account_audit_trail / mail.mail / account_audit_log_preview (html): type is now 'text' ('html')
|
262
|
+
account_audit_trail / mail.message / account_audit_log_preview (html): type is now 'text' ('html')
|
263
|
+
# NOTHING TO DO (still store=False)
|
264
|
+
|
265
|
+
---XML records in module 'account'---
|
266
|
+
NEW account.payment.term: account.account_payment_term_90days_on_the_10th (noupdate)
|
267
|
+
NEW digest.tip: account.digest_tip_account_1
|
268
|
+
NEW ir.actions.act_window: account.account_merge_wizard_action
|
269
|
+
NEW ir.actions.act_window: account.action_account_audit_trail_report [renamed from account_audit_trail module]
|
270
|
+
NEW ir.actions.act_window: account.action_amounts_to_settle
|
271
|
+
NEW ir.actions.act_window: account.action_base_document_layout_configurator
|
272
|
+
NEW ir.actions.act_window: account.action_credit_statement_tree
|
273
|
+
NEW ir.actions.act_window: account.action_move_in_invoice
|
274
|
+
NEW ir.actions.act_window: account.action_move_out_invoice
|
275
|
+
NEW ir.actions.act_window: account.action_view_account_secure_entries_wizard
|
276
|
+
# NOTHING TO DO
|
277
|
+
|
278
|
+
DEL ir.actions.act_window: account.action_account_unreconcile
|
279
|
+
NEW ir.actions.server: account.action_account_unreconcile
|
280
|
+
# DONE: pre-migration: deleted old one to avoid conflict
|
281
|
+
|
282
|
+
DEL ir.actions.act_window: account.action_open_payment_items
|
283
|
+
DEL ir.actions.act_window: account.action_open_sale_payment_items
|
284
|
+
DEL ir.actions.act_window: account_audit_trail.action_account_audit_trail_report [renamed to account module]
|
285
|
+
NEW ir.actions.server: account.action_move_block_payment
|
286
|
+
NEW ir.actions.server: account.action_move_force_register_payment
|
287
|
+
NEW ir.actions.server: account.action_unmerge_accounts
|
288
|
+
DEL ir.actions.server: account.action_account_invoice_from_list
|
289
|
+
DEL ir.actions.server: account.invoice_send
|
290
|
+
NEW ir.model.access: account.access_account_autopost_bills_wizard
|
291
|
+
NEW ir.model.access: account.access_account_code_mapping
|
292
|
+
NEW ir.model.access: account.access_account_code_mapping_manager
|
293
|
+
NEW ir.model.access: account.access_account_group_basic
|
294
|
+
NEW ir.model.access: account.access_account_lock_exception
|
295
|
+
NEW ir.model.access: account.access_account_lock_exception_manager
|
296
|
+
NEW ir.model.access: account.access_account_merge_wizard_line_manager
|
297
|
+
NEW ir.model.access: account.access_account_merge_wizard_manager
|
298
|
+
NEW ir.model.access: account.access_account_move_send_batch_wizard
|
299
|
+
NEW ir.model.access: account.access_account_move_send_wizard
|
300
|
+
NEW ir.model.access: account.access_account_payment_term_portal
|
301
|
+
NEW ir.model.access: account.access_account_report_basic
|
302
|
+
NEW ir.model.access: account.access_account_report_column_basic
|
303
|
+
NEW ir.model.access: account.access_account_report_expression_basic
|
304
|
+
NEW ir.model.access: account.access_account_report_line_basic
|
305
|
+
NEW ir.model.access: account.access_account_secure_entries_wizard
|
306
|
+
DEL ir.model.access: account.access_account_move_send
|
307
|
+
DEL ir.model.access: account.access_account_tour_upload_bill
|
308
|
+
DEL ir.model.access: account.access_account_tour_upload_bill_email_confirm
|
309
|
+
DEL ir.model.access: account.access_account_unreconcile
|
310
|
+
# NOTHING TO DO
|
311
|
+
|
312
|
+
DEL ir.property: account.default_followup_trust (noupdate)
|
313
|
+
# DONE: post-migration: delete old property safely (now it's an ir.default record created by ORM)
|
314
|
+
|
315
|
+
NEW ir.rule: account.account_move_send_batch_rule_group_invoice (noupdate)
|
316
|
+
NEW ir.rule: account.account_move_send_single_rule_group_invoice (noupdate)
|
317
|
+
DEL ir.rule: account.account_move_send_rule_group_invoice (noupdate)
|
318
|
+
DEL ir.rule: account.account_root_comp_rule (noupdate)
|
319
|
+
# DONE: post-migration: delete old rules safely
|
320
|
+
|
321
|
+
NEW ir.sequence: account.seq_account_payment (noupdate)
|
322
|
+
NEW ir.ui.menu: account.account_audit_trail_menu [renamed from account_audit_trail module]
|
323
|
+
NEW ir.ui.menu: account.account_reports_partners_reports_menu
|
324
|
+
NEW ir.ui.menu: account.menu_action_secure_entries
|
325
|
+
DEL ir.ui.menu: account.menu_account_supplier_accounts
|
326
|
+
DEL ir.ui.menu: account.menu_finance_entries_accounting_miscellaneous
|
327
|
+
DEL ir.ui.menu: account.menu_finance_entries_actions
|
328
|
+
DEL ir.ui.menu: account.menu_finance_entries_generate_entries
|
329
|
+
DEL ir.ui.menu: account.menu_finance_entries_management
|
330
|
+
DEL ir.ui.menu: account_audit_trail.account_audit_trail_menu [renamed to account module]
|
331
|
+
NEW ir.ui.view: account.account_merge_wizard_form
|
332
|
+
NEW ir.ui.view: account.account_move_send_batch_wizard_form
|
333
|
+
NEW ir.ui.view: account.account_move_send_wizard_form
|
334
|
+
NEW ir.ui.view: account.autopost_bills_wizard
|
335
|
+
NEW ir.ui.view: account.email_template_mail_gateway_failed (noupdate)
|
336
|
+
NEW ir.ui.view: account.ir_actions_report_form_inherit_account
|
337
|
+
NEW ir.ui.view: account.partner_missing_account_list_view
|
338
|
+
NEW ir.ui.view: account.portal_my_details_fields
|
339
|
+
NEW ir.ui.view: account.product_product_view_form_normalized_account
|
340
|
+
NEW ir.ui.view: account.product_view_search_catalog
|
341
|
+
NEW ir.ui.view: account.report_invoice_document_preview
|
342
|
+
NEW ir.ui.view: account.report_invoice_wizard_iframe
|
343
|
+
NEW ir.ui.view: account.res_partner_view_tree
|
344
|
+
NEW ir.ui.view: account.tests_shared_js_python
|
345
|
+
NEW ir.ui.view: account.view_account_bill_filter
|
346
|
+
NEW ir.ui.view: account.view_account_lock_exception_form
|
347
|
+
NEW ir.ui.view: account.view_account_move_with_gaps_in_sequence_filter
|
348
|
+
NEW ir.ui.view: account.view_account_payment_method_line_kanban_mobile
|
349
|
+
NEW ir.ui.view: account.view_account_secure_entries_wizard
|
350
|
+
NEW ir.ui.view: account.view_base_document_layout
|
351
|
+
NEW ir.ui.view: account.view_duplicated_moves_tree_js
|
352
|
+
NEW ir.ui.view: account.view_message_tree_audit_log
|
353
|
+
NEW ir.ui.view: account.view_message_tree_audit_log_search
|
354
|
+
NEW ir.ui.view: account.view_move_tree_multi_edit
|
355
|
+
DEL ir.ui.view: account.account_move_send_form
|
356
|
+
DEL ir.ui.view: account.account_tour_upload_bill
|
357
|
+
DEL ir.ui.view: account.account_tour_upload_bill_email_confirm
|
358
|
+
DEL ir.ui.view: account.account_unreconcile_view
|
359
|
+
DEL ir.ui.view: account.tax_groups_totals
|
360
|
+
DEL ir.ui.view: account.view_account_payment_method_line_kanban
|
361
|
+
DEL ir.ui.view: account_audit_trail.res_config_settings_view_form_inherit_account_audit_trail
|
362
|
+
DEL ir.ui.view: account_audit_trail.view_message_tree_audit_log
|
363
|
+
DEL ir.ui.view: account_audit_trail.view_message_tree_audit_log_search
|
364
|
+
DEL ir.ui.view: account_payment_term.account_payment_term_form
|
365
|
+
DEL ir.ui.view: l10n_dk_bookkeeping.view_move_form_l10n_dk
|
366
|
+
DEL ir.ui.view: l10n_dk_bookkeeping.view_move_line_tree_l10n_dk
|
367
|
+
NEW res.groups: account.group_account_basic
|
368
|
+
NEW res.groups: account.group_account_secured
|
369
|
+
NEW web_tour.tour: account.account_tour
|
370
|
+
# NOTHING TO DO
|
371
|
+
|
372
|
+
DEL onboarding.onboarding: account.onboarding_onboarding_account_invoice (noupdate)
|
373
|
+
DEL onboarding.onboarding.step: account.onboarding_onboarding_step_bank_account (noupdate)
|
374
|
+
DEL onboarding.onboarding.step: account.onboarding_onboarding_step_create_invoice (noupdate)
|
375
|
+
DEL onboarding.onboarding.step: account.onboarding_onboarding_step_default_taxes (noupdate)
|
376
|
+
DEL onboarding.onboarding.step: account.onboarding_onboarding_step_setup_bill (noupdate)
|
377
|
+
# DONE: post-migration: safely delete
|
@@ -0,0 +1,19 @@
|
|
1
|
+
env = locals().get("env")
|
2
|
+
# call sending wizard on some moves asynchronously
|
3
|
+
action = (
|
4
|
+
env["account.move"]
|
5
|
+
.search(
|
6
|
+
[
|
7
|
+
("move_type", "=", "out_invoice"),
|
8
|
+
("state", "=", "posted"),
|
9
|
+
("company_id", "=", env.ref("base.main_company").id),
|
10
|
+
]
|
11
|
+
)
|
12
|
+
.action_send_and_print()
|
13
|
+
)
|
14
|
+
env[action["res_model"]].with_context(**action["context"]).create(
|
15
|
+
{
|
16
|
+
"checkbox_download": False,
|
17
|
+
}
|
18
|
+
).action_send_and_print()
|
19
|
+
env.cr.commit()
|
@@ -0,0 +1,25 @@
|
|
1
|
+
from odoo.tests import TransactionCase
|
2
|
+
|
3
|
+
from odoo.addons.openupgrade_framework import openupgrade_test
|
4
|
+
|
5
|
+
|
6
|
+
@openupgrade_test
|
7
|
+
class TestAccountMigration(TransactionCase):
|
8
|
+
def test_sending_data(self):
|
9
|
+
"""
|
10
|
+
Test that me migrate send_and_print_values correctly to sending_data
|
11
|
+
"""
|
12
|
+
moves_with_sending_data = self.env["account.move"].search(
|
13
|
+
[
|
14
|
+
("sending_data", "!=", False),
|
15
|
+
]
|
16
|
+
)
|
17
|
+
self.assertTrue(moves_with_sending_data)
|
18
|
+
self.assertEqual(
|
19
|
+
moves_with_sending_data[0].sending_data["author_user_id"],
|
20
|
+
self.env.user.id,
|
21
|
+
)
|
22
|
+
self.assertEqual(
|
23
|
+
moves_with_sending_data[0].sending_data["author_partner_id"],
|
24
|
+
self.env.user.partner_id.id,
|
25
|
+
)
|
@@ -1,5 +1,6 @@
|
|
1
1
|
<?xml version='1.0' encoding='utf-8'?>
|
2
2
|
<odoo>
|
3
|
+
<!-- Nothing to do. See https://github.com/odoo/odoo/commit/ac106704f3c2d3e3fa94415134b9d5522b325378 -->
|
3
4
|
<record id="onboarding_onboarding_step_payment_provider" model="onboarding.onboarding.step">
|
4
5
|
<field name="onboarding_ids"/>
|
5
6
|
</record>
|
@@ -0,0 +1,11 @@
|
|
1
|
+
---Models in module 'account_payment'---
|
2
|
+
---Fields in module 'account_payment'---
|
3
|
+
---XML records in module 'account_payment'---
|
4
|
+
NEW ir.ui.view: account_payment.form
|
5
|
+
NEW ir.ui.view: account_payment.payment_link_wizard__form_inherit_account_payment
|
6
|
+
NEW ir.ui.view: account_payment.portal_docs_entry
|
7
|
+
NEW ir.ui.view: account_payment.portal_invoice_payment_paid
|
8
|
+
NEW ir.ui.view: account_payment.portal_my_home_account_payment
|
9
|
+
NEW ir.ui.view: account_payment.portal_my_home_overdue_invoice
|
10
|
+
NEW ir.ui.view: account_payment.portal_overdue_invoices_page
|
11
|
+
# NOTHING TO DO
|
@@ -0,0 +1,10 @@
|
|
1
|
+
from openupgradelib import openupgrade
|
2
|
+
|
3
|
+
|
4
|
+
@openupgrade.migrate()
|
5
|
+
def migrate(env, version):
|
6
|
+
openupgrade.load_data(env, "hr", "18.0.1.1/noupdate_changes.xml")
|
7
|
+
openupgrade.delete_record_translations(
|
8
|
+
env.cr, "hr", ["contract_type_part_time"], ["name"]
|
9
|
+
)
|
10
|
+
openupgrade.delete_records_safely_by_xml_id(env, ["hr.hr_presence_control_login"])
|
@@ -0,0 +1,52 @@
|
|
1
|
+
from openupgradelib import openupgrade
|
2
|
+
|
3
|
+
_new_columns = [
|
4
|
+
(
|
5
|
+
"hr.employee",
|
6
|
+
"distance_home_work_unit",
|
7
|
+
"selection",
|
8
|
+
"kilometers",
|
9
|
+
"hr_employee",
|
10
|
+
),
|
11
|
+
("hr.employee", "is_flexible", "boolean", None, "hr_employee"),
|
12
|
+
("hr.employee", "is_fully_flexible", "boolean", None, "hr_employee"),
|
13
|
+
("res.company", "hr_presence_control_attendance", "boolean"),
|
14
|
+
("res.company", "hr_presence_control_email", "boolean"),
|
15
|
+
("res.company", "hr_presence_control_ip", "boolean"),
|
16
|
+
("res.company", "hr_presence_control_login", "boolean", True),
|
17
|
+
]
|
18
|
+
|
19
|
+
|
20
|
+
@openupgrade.migrate()
|
21
|
+
def migrate(env, version):
|
22
|
+
openupgrade.rename_columns(
|
23
|
+
env.cr, {"employee_category_rel": [("emp_id", "employee_id")]}
|
24
|
+
)
|
25
|
+
openupgrade.add_columns(env, _new_columns)
|
26
|
+
openupgrade.logged_query(
|
27
|
+
env.cr,
|
28
|
+
"""
|
29
|
+
UPDATE hr_employee
|
30
|
+
SET is_fully_flexible = CASE WHEN resource_calendar_id IS NULL
|
31
|
+
THEN TRUE ELSE FALSE END
|
32
|
+
""",
|
33
|
+
)
|
34
|
+
openupgrade.logged_query(
|
35
|
+
env.cr,
|
36
|
+
"""
|
37
|
+
UPDATE hr_employee he2
|
38
|
+
SET is_flexible = CASE WHEN he.is_fully_flexible OR rc.flexible_hours
|
39
|
+
THEN TRUE ELSE FALSE END
|
40
|
+
FROM hr_employee he
|
41
|
+
LEFT JOIN resource_calendar rc ON he.resource_calendar_id = rc.id
|
42
|
+
WHERE he.id = he2.id
|
43
|
+
""",
|
44
|
+
)
|
45
|
+
openupgrade.logged_query(
|
46
|
+
env.cr,
|
47
|
+
"""
|
48
|
+
UPDATE hr_employee
|
49
|
+
SET marital = 'single'
|
50
|
+
WHERE marital IS NULL
|
51
|
+
""",
|
52
|
+
)
|
@@ -0,0 +1,76 @@
|
|
1
|
+
---Models in module 'hr'---
|
2
|
+
new model hr.manager.department.report [abstract]
|
3
|
+
# NOTHING TO DO
|
4
|
+
|
5
|
+
---Fields in module 'hr'---
|
6
|
+
hr / hr.department / activity_ids (one2many) : NEW relation: mail.activity
|
7
|
+
hr / hr.department / has_read_access (boolean) : NEW stored: False
|
8
|
+
hr / hr.department / message_has_sms_error (boolean): previously in module sms
|
9
|
+
hr / hr.department / website_message_ids (one2many): previously in module portal
|
10
|
+
# NOTHING TO DO
|
11
|
+
|
12
|
+
hr / hr.employee / category_ids (many2many) : column1 is now 'employee_id' ('emp_id') [employee_category_rel]
|
13
|
+
hr / hr.employee.category / employee_ids (many2many) : column2 is now 'employee_id' ('emp_id') [employee_category_rel]
|
14
|
+
# DONE: pre-migration: Rename column
|
15
|
+
|
16
|
+
hr / hr.employee / distance_home_work (integer) : NEW
|
17
|
+
hr / hr.employee / distance_home_work_unit (selection): NEW required, selection_keys: ['kilometers', 'miles'], hasdefault: default
|
18
|
+
# DONE: pre-migration: ADD column
|
19
|
+
|
20
|
+
hr / hr.employee / employee_type (selection) : selection_keys is now '['contractor', 'employee', 'freelance', 'student', 'trainee', 'worker']' ('['contractor', 'employee', 'freelance', 'student', 'trainee']')
|
21
|
+
# NOTHING TO DO: new 'worker' option
|
22
|
+
|
23
|
+
hr / hr.employee / hr_icon_display (selection) : selection_keys is now '['presence_absent', 'presence_archive', 'presence_out_of_working_hour', 'presence_present', 'presence_undetermined']' ('['presence_absent', 'presence_absent_active', 'presence_present', 'presence_to_define', 'presence_undetermined']')
|
24
|
+
hr / hr.employee / hr_presence_state (selection) : selection_keys is now '['absent', 'archive', 'out_of_working_hour', 'present']' ('['absent', 'present', 'to_define']')
|
25
|
+
# NOTHING TO DO: non stored fields
|
26
|
+
|
27
|
+
hr / hr.employee / is_flexible (boolean) : NEW isfunction: function, stored
|
28
|
+
hr / hr.employee / is_fully_flexible (boolean) : NEW isfunction: function, stored
|
29
|
+
# DONE: pre-migration: pre-created and filled
|
30
|
+
|
31
|
+
hr / hr.employee / km_home_work (integer) : now a function
|
32
|
+
hr / hr.employee / marital (selection) : now required
|
33
|
+
hr / hr.employee / marital (selection) : selection_keys is now 'function' ('['cohabitant', 'divorced', 'married', 'single', 'widower']')
|
34
|
+
hr / hr.employee / message_has_sms_error (boolean): previously in module sms
|
35
|
+
hr / hr.employee / website_message_ids (one2many): previously in module portal
|
36
|
+
hr / hr.job / message_has_sms_error (boolean): previously in module sms
|
37
|
+
hr / hr.job / no_of_hired_employee (integer): module is now 'hr_recruitment' ('hr')
|
38
|
+
hr / hr.job / website_message_ids (one2many): previously in module portal
|
39
|
+
hr / res.company / hr_presence_control_attendance (boolean): NEW
|
40
|
+
hr / res.company / hr_presence_control_email (boolean): NEW
|
41
|
+
hr / res.company / hr_presence_control_ip (boolean): NEW
|
42
|
+
hr / res.company / hr_presence_control_login (boolean): NEW hasdefault: default
|
43
|
+
# NOTHING TO DO
|
44
|
+
|
45
|
+
---XML records in module 'hr'---
|
46
|
+
NEW digest.tip: hr.digest_tip_hr_0
|
47
|
+
NEW hr.contract.type: hr.contract_type_apprenticeship (noupdate)
|
48
|
+
NEW hr.contract.type: hr.contract_type_employee (noupdate)
|
49
|
+
NEW hr.contract.type: hr.contract_type_statutaire (noupdate)
|
50
|
+
NEW hr.contract.type: hr.contract_type_student (noupdate)
|
51
|
+
NEW hr.contract.type: hr.contract_type_thesis (noupdate)
|
52
|
+
DEL ir.actions.act_window: hr.act_employee_from_department
|
53
|
+
DEL ir.actions.act_window: hr.open_view_employee_tree
|
54
|
+
NEW ir.actions.act_window.view: hr.act_hr_employee_activity_view
|
55
|
+
NEW ir.actions.act_window.view: hr.act_hr_employee_form_view
|
56
|
+
NEW ir.actions.act_window.view: hr.act_hr_employee_graph_view
|
57
|
+
NEW ir.actions.act_window.view: hr.act_hr_employee_kanban_view
|
58
|
+
NEW ir.actions.act_window.view: hr.act_hr_employee_pivot_view
|
59
|
+
NEW ir.actions.act_window.view: hr.act_hr_employee_public_form_view
|
60
|
+
NEW ir.actions.act_window.view: hr.act_hr_employee_public_kanban_view
|
61
|
+
NEW ir.actions.act_window.view: hr.act_hr_employee_public_tree_view
|
62
|
+
NEW ir.actions.act_window.view: hr.act_hr_employee_tree_view
|
63
|
+
NEW ir.actions.act_window.view: hr.hr_department_form_view_kanban_action
|
64
|
+
NEW ir.actions.act_window.view: hr.hr_department_form_view_tree_action
|
65
|
+
NEW ir.actions.act_window.view: hr.hr_department_kanban_view_kanban_action
|
66
|
+
NEW ir.actions.act_window.view: hr.hr_department_kanban_view_tree_action
|
67
|
+
NEW ir.actions.act_window.view: hr.hr_department_tree_view_kanban_action
|
68
|
+
NEW ir.actions.act_window.view: hr.hr_department_tree_view_tree_action
|
69
|
+
DEL ir.actions.server: hr.action_hr_employee_create_user
|
70
|
+
DEL ir.config_parameter: hr.hr_presence_control_login (noupdate)
|
71
|
+
DEL ir.ui.menu: hr.menu_config_plan
|
72
|
+
DEL ir.ui.menu: hr.menu_hr_department_tree
|
73
|
+
NEW ir.ui.view: hr.res_partner_view_search
|
74
|
+
NEW ir.ui.view: hr.view_employee_form_smartbutton_inherited
|
75
|
+
NEW report.paperformat: hr.paperformat_hr_employee_badge
|
76
|
+
# NOTHING TO DO
|