-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
8.0 fix qty search perf #1
Open
mourad-ehm
wants to merge
148
commits into
8.0
Choose a base branch
from
8.0-fix_qty_search_perf
base: 8.0
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
In psql, use LIMIT and OFFSET together without a fully specified and uniq sort order will generate unexpected behaviour. Eg: > id id_dept name > ------------------- > 1 1 Tom > 2 1 Mike > 3 2 Meggie > 4 2 Marge > 5 3 Bart > 6 3 Lisa > using LIMITed selects like: > SELECT * FROM employee ORDER BY id_dept LIMIT 3 > SELECT * FROM employee ORDER BY id_dept LIMIT 3 OFFSET 3 > SELECT * FROM employee ORDER BY id_dept LIMIT 3 OFFSET 6 > You can have some result missings from the 3 requests, and others duplicated. > Because id_dept is not a uniq order. opw-686639 note: backport of saas-12 4dce861
quants = dict(map(lambda x: (x['product_id'][0], x['qty']), quants)) | ||
return domain_move_in, domain_move_out, domain_quant | ||
|
||
def _product_available(self, cr, uid, ids, field_names=None, arg=False, context=None): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Delete de sub method "def blazzing_fast_read_group" form _product_available method, and use the global method blazzing_fast_read_group.
An entry with EXTXVAL=0 should not be included in the Intrastat declaration, otherwise it is rejected. opw-686201
…lity [FIX] Fix issue odoo#538. Compatibility with Odoo _get_invoice_vals.
When the statusbar is clicked, a `debounce` function prevents a doucle-click, and therefore making several `write` calls. On some status bars, clicking doesn't work anymore. The reason is because, in some mysterious cases, the event is propagated to the parent. The `currentTarget` is not the `li` element, but the parent `ul`. By setting the `immediate` argument to `true` (execute the first function instead of the last), this solves the issue.
…with perpetual valuation. OPW: 684742 When using dropship+anglo-saxon+perpetual valuation, there is no journal move for the delivery to debit outgoing inventory (since the goods don't transit by an internal stock) but the sale does credit it so there was a build up in the holding account that has to be moved out manually. This was also reported in odoo#12687. The solution implemented is to check if the invoice line is related to sale order lines having one of its procurement_ids with a purchase_line_id set. If yes, it means that it is a confirmed dropship and in that case we don't call to super (we don't create the cost of sale line). That means that: * If the procurement is in exception at the customer invoice time, the behavior will be as it is currently, but it's fine as you don't know how the procurement will be solved, and it'll be only at the beginning (once the config is done it shouldn't go in exception anymore). People will have to manually fix those amounts with a miscellaneous operation. * users in anglo saxon mode should not use the 'stock interim account (received)' on supplier invoices for dropshipped goods, but rather use the COGS directly (sounds to me logical, and that's actually why I wouldn't go for the solution to create the stock move entries every time even for the dropshipped goods. That, and the fact that it would pollute the accounting with useless moves)
As provider model is intended to be used internally restricting the read of some private fields to the employee group avoid creating access issues.
Until 9.0 our psycopg2 DSN connection strings do not allow having spaces within the db name, and passing some can cause duplicate registries to be loaded. Stripping spaces is a simple workaround until we actually support spaces within db names. Fixes odoo#13078
Received PDF signature by email on 2016-09-06, from Aleš Ferlan <[email protected]>. See opw-687914 for original PDF signature.
Although we have been reluctant to perform this change, a specific use case can cause customers to be redirect to the Odoo DPN url with a GET request. This happens when a Paypal Merchant account has the feature Guest Checkout active; in that case, a customer can pay without having a Paypal account (using only his credit card) and will *not* be subjected to auto-return; as detailed here: https://www.sandbox.paypal.com/be/cgi-bin/webscr?cmd=p/pop/help-account-optional Request coming from that payment flow will always trigger a GET request, causing the customer to be welcomed by a 405 - Method Not allowed error on the Odoo server. The payment is normally correctly processed through IPN, so this does not normally causes loss of data; however this is not a nice way to welcome back your customer right after they pay you.
Solves issue odoo#12909 reported on Odoo - although problem only occurs in OCA code. Json properties must be enclosed in double quotes. View xml is more tolerant. With this code there will be no unneeded restriction on the xml definition of statusbar_colors, and we prevent difficult to debug errors.
Currently, when rendering a list view cell with a many2many we would empty the list of ids, and fill it again once a name_get is resolved. But in some instance, the code could use the data when it has been emptied out. For example, if we set the tax_id field (inside the order_line list view inside the sale.order form view) as requred, if we modify the order line and save directly (without clicking outside of the list view) we can get an incorrect error saying that the "Order Line" is not valid. It has been reproduced when saving with CTRL + SHIFT + S on google chrome and firefox, and there have been reports that for some configuration it also happen when clicking on the "Save" button. This commit change the behaviour so the value is kept whilst the name_get is ongoing, and just use a default "false" value for the name during this interval. closes odoo#13478 opw-668067
…, the lang of the company is now transfered to the contact
Previous implementation did not allow the user to search for pages 'name' but only on the slugified name. Now we slugify the needles before to find a match. 1. Create a new page: 'The new' 2. add a link on your website and try to find this page... - Before this commit, the only ways was to type 'the-new' - After this commit 'the new', 'The new', 'The-new', ... will match This commit closes odoo#10771
…elists When changing the company of a pricelist, the change was not propagated to the related, stored, company fields of the `product.pricelist.version` and the `product.pricelist.item` These triggers makes that happen. opw-694683
When changing the company of a sales order, the change was not propagated to the related, stored, company field of its sale order lines These triggers makes that happen. opw-694683
When processing a partial reconciliation in a foreign currency, a currency exchange difference might be generated during the reconciliation process (see OPW for a detailed use case). This prevents the user to process the reconciliation since he will get the error: 'You have to provide an account for the write off/exchange difference entry.' The fix is to use the company-related foreign echange gain and loss accounts automatically to book this difference. opw-687975
Before this commit, amount updated from ajax request don't respect currency format. Eg: 1.200,000 => 1200.00 Now we use the grouping/thousand separator/decimal separator from l10n, and if class decimal_precision is defined in dom, we use it. (format=0.001) This commits closes: odoo#11553 This commits is related to odoo#1103
In `action_cancel` method below, the date_cancel is set when the linked invoice is canceled. When the canceled invoiced was reset to draft, the date_cancel was not removed. This change makes sense as the state of the membership line is changed from `cancel` to `waiting` when the invoice is reset to draft. Closes odoo#14313
mourad-ehm
force-pushed
the
8.0-fix_qty_search_perf
branch
2 times, most recently
from
December 1, 2016 13:47
fb37560
to
6ee28b5
Compare
mourad-ehm
force-pushed
the
8.0-fix_qty_search_perf
branch
from
December 2, 2016 10:19
e5179bc
to
d341fc6
Compare
mourad-ehm
force-pushed
the
8.0-fix_qty_search_perf
branch
from
December 2, 2016 10:44
d341fc6
to
cb29843
Compare
mart-e
pushed a commit
that referenced
this pull request
Aug 7, 2019
Have an inherited view replacing a node in its parent namely: ``` <view name="1"> <world/> <world/> <world/> </view> ``` Inherited by ``` <view name="2" inherit_id="1"> <xpath expr="//world[1]" position="replace"> <world/> </xpath> </view> ``` Before this commit, the resulting xpath branding of the nodes (useful for web_editor, to know where it is supposed to anchor new elements) was incorrect. Note that there is the branding attr data-oe-view_id which specifies in which view they are The 2nd and 3rd world in view #1 were numbered respectively world[1] and world[2] which is incorrect since we *know* those should be world[2] and world[3] (in their own view, i.e. in view #1) This was because when replacing the node, the code lost track of what it replaced and that it attributed the inheriting branding to the replacing nodes After this commit, the 2nd and 3rd world nodes are numbered world[2] and world[3] respectively OPW 2007312 closes odoo#35134 Signed-off-by: Lucas Perais (lpe) <[email protected]>
mourad-ehm
pushed a commit
that referenced
this pull request
Oct 2, 2020
Decreases the move lines qty to process for the picking batch #1 in order to make the demo flux quicker. closes odoo#58895 Signed-off-by: Arnold Moyaux <[email protected]>
sebastienbeau
pushed a commit
that referenced
this pull request
Nov 25, 2020
Decreases the move lines qty to process for the picking batch #1 in order to make the demo flux quicker. closes odoo#58909 X-original-commit: 15cede0 Signed-off-by: Arnold Moyaux <[email protected]>
alexis-via
pushed a commit
that referenced
this pull request
Sep 23, 2022
When installing l10n_mx, a error occurs Traceback (most recent call last): File "/data/build/odoo/odoo/service/server.py", line 1289, in preload_registries registry = Registry.new(dbname, update_module=update_module) File "<decorator-gen-15>", line 2, in new File "/data/build/odoo/odoo/tools/func.py", line 87, in locked return func(inst, *args, **kwargs) File "/data/build/odoo/odoo/modules/registry.py", line 91, in new odoo.modules.load_modules(registry, force_demo, status, update_module) File "/data/build/odoo/odoo/modules/loading.py", line 482, in load_modules processed_modules += load_marked_modules(cr, graph, File "/data/build/odoo/odoo/modules/loading.py", line 371, in load_marked_modules loaded, processed = load_module_graph( File "/data/build/odoo/odoo/modules/loading.py", line 206, in load_module_graph registry.setup_models(cr) File "/data/build/odoo/odoo/modules/registry.py", line 289, in setup_models model._setup_fields() File "/data/build/odoo/odoo/models.py", line 3294, in _setup_fields field.setup(self) File "/data/build/odoo/odoo/fields.py", line 512, in setup self.setup_nonrelated(model) File "/data/build/odoo/odoo/fields.py", line 4524, in setup_nonrelated m2m = model.pool._m2m AttributeError: 'Registry' object has no attribute '_m2m' Since odoo#99438 hr is sintalled automatically This means that when doing a -i l10n_mx, hr is installed too hr will conditionnaly call a button_immediate_install in this case. What's going on after that: It's a mess button_immediate_install will create another registry This registry will be present on some models that will ne used later by the initial registry creating the missing _m2m case For the record, here are some of the strange and key element during the install 2022-09-21 16:31:27,691 2579263 INFO test_mx odoo.modules.loading: loading 1 modules... 2022-09-21 16:31:27,691 2579263 INFO test_mx odoo.modules.loading: Loading module base (1/1) ... 2022-09-21 16:31:36,222 2579263 INFO test_mx odoo.modules.loading: Module base loaded in 8.53s, 8902 queries (+8902 other) 2022-09-21 16:31:36,222 2579263 INFO test_mx odoo.modules.loading: 1 modules loaded in 8.53s, 8902 queries (+8902 extra) 2022-09-21 16:31:36,240 2579263 INFO test_mx odoo.modules.loading: updating modules list 2022-09-21 16:31:36,241 2579263 INFO test_mx odoo.addons.base.models.ir_module: ALLOW access to module.update_list on [] to user __system__ #1 via n/a 2022-09-21 16:31:36,943 2579263 INFO test_mx odoo.addons.base.models.ir_module: ALLOW access to module.button_install on ['Mexico - Accounting'] to user __system__ #1 via n/a ... 2022-09-21 16:31:49,775 2579263 INFO test_mx odoo.modules.loading: Loading module base_install_request (26/78) ... 2022-09-21 16:31:50,043 2579263 INFO test_mx odoo.addons.base.models.ir_module: ALLOW access to module.button_install on ['Project', 'Email Marketing', 'Employees', 'Knowledge', 'Sign', 'Planning', 'Appointments', 'Surveys'] to user __system__ #1 via n/a 2022-09-21 16:31:50,167 2579263 INFO test_mx odoo.modules.loading: Module base_install_request loaded in 0.39s, 228 queries (+228 other) ... 2022-09-21 16:32:10,816 2579263 INFO test_mx odoo.modules.loading: Loading module l10n_mx (55/78) ... 2022-09-21 16:32:17,618 2579263 INFO test_mx odoo.modules.loading: Module l10n_mx loaded in 6.80s, 4302 queries (+4332 other) ... 2022-09-21 16:32:50,371 2579263 INFO test_mx odoo.modules.loading: Loading module hr (35/112) 2022-09-21 16:32:57,594 2579263 INFO test_mx odoo.addons.base.models.ir_module: ALLOW access to module.button_immediate_install on ['Employees - Mexico'] to user __system__ #1 via n/a 2022-09-21 16:32:57,594 2579263 INFO test_mx odoo.addons.base.models.ir_module: User #1 triggered module installation 2022-09-21 16:32:57,595 2579263 INFO test_mx odoo.addons.base.models.ir_module: ALLOW access to module.button_install on ['Employees - Mexico'] to user __system__ #1 via n/a ... 2022-09-21 16:32:58,558 2579263 ERROR test_mx odoo.modules.registry: Creating Registry <odoo.modules.registry.Registry object at 0x7f02cc0e8130> Stack (most recent call last): File "/home/xdo/osrc/master/odoo/odoo-bin", line 8, in <module> odoo.cli.main() File "/home/xdo/osrc/master/odoo/odoo/cli/command.py", line 56, in main o.run(args) File "/home/xdo/osrc/master/odoo/odoo/cli/server.py", line 179, in run main(args) File "/home/xdo/osrc/master/odoo/odoo/cli/server.py", line 173, in main rc = odoo.service.server.start(preload=preload, stop=stop) File "/home/xdo/osrc/master/odoo/odoo/service/server.py", line 1391, in start rc = server.run(preload, stop) File "/home/xdo/osrc/master/odoo/odoo/service/server.py", line 570, in run rc = preload_registries(preload) File "/home/xdo/osrc/master/odoo/odoo/service/server.py", line 1289, in preload_registries registry = Registry.new(dbname, update_module=update_module) File "<decorator-gen-15>", line 2, in new File "/home/xdo/osrc/master/odoo/odoo/tools/func.py", line 87, in locked return func(inst, *args, **kwargs) File "/home/xdo/osrc/master/odoo/odoo/modules/registry.py", line 91, in new odoo.modules.load_modules(registry, force_demo, status, update_module) File "/home/xdo/osrc/master/odoo/odoo/modules/loading.py", line 482, in load_modules processed_modules += load_marked_modules(cr, graph, File "/home/xdo/osrc/master/odoo/odoo/modules/loading.py", line 371, in load_marked_modules loaded, processed = load_module_graph( File "/home/xdo/osrc/master/odoo/odoo/modules/loading.py", line 248, in load_module_graph getattr(py_module, post_init)(cr, registry) File "/home/xdo/osrc/master/odoo/addons/hr/__init__.py", line 19, in _install_hr_localization l10n_mx.button_immediate_install() File "<decorator-gen-74>", line 2, in button_immediate_install File "/home/xdo/osrc/master/odoo/odoo/addons/base/models/ir_module.py", line 75, in check_and_log return method(self, *args, **kwargs) File "/home/xdo/osrc/master/odoo/odoo/addons/base/models/ir_module.py", line 486, in button_immediate_install return self._button_immediate_function(type(self).button_install) File "/home/xdo/osrc/master/odoo/odoo/addons/base/models/ir_module.py", line 607, in _button_immediate_function registry = modules.registry.Registry.new(self._cr.dbname, update_module=True) File "<decorator-gen-15>", line 2, in new File "/home/xdo/osrc/master/odoo/odoo/tools/func.py", line 87, in locked return func(inst, *args, **kwargs) File "/home/xdo/osrc/master/odoo/odoo/modules/registry.py", line 79, in new registry.init(db_name) File "/home/xdo/osrc/master/odoo/odoo/modules/registry.py", line 115, in init _logger.error(self, stack_info=True) 2022-09-21 16:32:58,580 2579263 INFO test_mx odoo.modules.loading: loading 1 modules... 2022-09-21 16:32:58,581 2579263 INFO test_mx odoo.modules.loading: Loading module base (1/1) ... 2022-09-21 16:33:35,294 2579263 INFO test_mx odoo.modules.loading: Loading module base_install_request (30/85) ... 2022-09-21 16:33:35,745 2579263 INFO test_mx odoo.modules.loading: Module base_install_request loaded in 0.45s, 131 queries (+131 other) ... 2022-09-21 16:34:05,789 2579263 INFO test_mx odoo.modules.loading: Loading module l10n_mx (62/85) ... 2022-09-21 16:34:28,497 2579263 INFO test_mx odoo.modules.loading: Loading module hr (35/113) ... 2022-09-21 16:34:32,067 2579263 INFO test_mx odoo.modules.loading: Module hr loaded in 3.57s, 4092 queries (+4092 other) 2022-09-21 16:34:32,067 2579263 INFO test_mx odoo.modules.loading: Loading module link_tracker (37/113) ... 2022-09-21 16:34:32,690 2579263 INFO test_mx odoo.modules.loading: Module link_tracker loaded in 0.62s, 267 queries (+267 other) ... 2022-09-21 16:35:04,063 2579263 INFO test_mx odoo.modules.loading: Modules loaded. 2022-09-21 16:35:04,068 2579263 INFO test_mx odoo.modules.registry: Registry loaded in 125.514s 2022-09-21 16:35:04,068 2579263 INFO test_mx odoo.addons.base.models.ir_module: getting next ir.actions.todo() 2022-09-21 16:35:04,071 2579263 INFO test_mx odoo.addons.base.models.ir_module: next action is "Open Menu" 2022-09-21 16:35:04,094 2579263 INFO test_mx odoo.modules.loading: Module hr loaded in 133.72s, 4344 queries (+81420 other) ... 2022-09-21 16:35:04,094 2579263 INFO test_mx odoo.modules.loading: Loading module link_tracker (37/112) 2022-09-21 16:35:04,163 2579263 ERROR test_mx odoo.modules.registry: setuping model: ir.model.fields() registry on model: <odoo.modules.registry.Registry object at 0x7f02cc0e8130> registry calling setup_models: <odoo.modules.registry.Registry object at 0x7f02e92399d0> 2022-09-21 16:35:04,164 2579263 WARNING test_mx odoo.modules.loading: Transient module states were reset 2022-09-21 16:35:04,165 2579263 ERROR test_mx odoo.modules.registry: Failed to load registry 2022-09-21 16:35:04,165 2579263 CRITICAL test_mx odoo.service.server: Failed to initialize database `test_mx`. Traceback (most recent call last): File "/home/xdo/osrc/master/odoo/odoo/service/server.py", line 1289, in preload_registries registry = Registry.new(dbname, update_module=update_module) File "<decorator-gen-15>", line 2, in new File "/home/xdo/osrc/master/odoo/odoo/tools/func.py", line 87, in locked return func(inst, *args, **kwargs) File "/home/xdo/osrc/master/odoo/odoo/modules/registry.py", line 91, in new odoo.modules.load_modules(registry, force_demo, status, update_module) File "/home/xdo/osrc/master/odoo/odoo/modules/loading.py", line 482, in load_modules processed_modules += load_marked_modules(cr, graph, File "/home/xdo/osrc/master/odoo/odoo/modules/loading.py", line 371, in load_marked_modules loaded, processed = load_module_graph( File "/home/xdo/osrc/master/odoo/odoo/modules/loading.py", line 206, in load_module_graph registry.setup_models(cr) File "/home/xdo/osrc/master/odoo/odoo/modules/registry.py", line 293, in setup_models model._setup_fields() File "/home/xdo/osrc/master/odoo/odoo/models.py", line 3294, in _setup_fields field.setup(self) File "/home/xdo/osrc/master/odoo/odoo/fields.py", line 512, in setup self.setup_nonrelated(model) File "/home/xdo/osrc/master/odoo/odoo/fields.py", line 4524, in setup_nonrelated m2m = model.pool._m2m AttributeError: 'Registry' object has no attribute '_m2m' Naive fix here: use button_install instead of button_immediate_install (not even sure this is 100% correct) All calls to button_immediate_install should be fixed maybe to avoid a registryloadingception closes odoo#100909 X-original-commit: 919c1f3 Signed-off-by: Yannick Tivisse (yti) <[email protected]> Signed-off-by: Xavier Dollé (xdo) <[email protected]>
PierrickBrun
pushed a commit
that referenced
this pull request
Sep 30, 2022
When installing l10n_mx, a error occurs Traceback (most recent call last): File "/data/build/odoo/odoo/service/server.py", line 1289, in preload_registries registry = Registry.new(dbname, update_module=update_module) File "<decorator-gen-15>", line 2, in new File "/data/build/odoo/odoo/tools/func.py", line 87, in locked return func(inst, *args, **kwargs) File "/data/build/odoo/odoo/modules/registry.py", line 91, in new odoo.modules.load_modules(registry, force_demo, status, update_module) File "/data/build/odoo/odoo/modules/loading.py", line 482, in load_modules processed_modules += load_marked_modules(cr, graph, File "/data/build/odoo/odoo/modules/loading.py", line 371, in load_marked_modules loaded, processed = load_module_graph( File "/data/build/odoo/odoo/modules/loading.py", line 206, in load_module_graph registry.setup_models(cr) File "/data/build/odoo/odoo/modules/registry.py", line 289, in setup_models model._setup_fields() File "/data/build/odoo/odoo/models.py", line 3294, in _setup_fields field.setup(self) File "/data/build/odoo/odoo/fields.py", line 512, in setup self.setup_nonrelated(model) File "/data/build/odoo/odoo/fields.py", line 4524, in setup_nonrelated m2m = model.pool._m2m AttributeError: 'Registry' object has no attribute '_m2m' Since odoo#99438 hr is sintalled automatically This means that when doing a -i l10n_mx, hr is installed too hr will conditionnaly call a button_immediate_install in this case. What's going on after that: It's a mess button_immediate_install will create another registry This registry will be present on some models that will ne used later by the initial registry creating the missing _m2m case For the record, here are some of the strange and key element during the install 2022-09-21 16:31:27,691 2579263 INFO test_mx odoo.modules.loading: loading 1 modules... 2022-09-21 16:31:27,691 2579263 INFO test_mx odoo.modules.loading: Loading module base (1/1) ... 2022-09-21 16:31:36,222 2579263 INFO test_mx odoo.modules.loading: Module base loaded in 8.53s, 8902 queries (+8902 other) 2022-09-21 16:31:36,222 2579263 INFO test_mx odoo.modules.loading: 1 modules loaded in 8.53s, 8902 queries (+8902 extra) 2022-09-21 16:31:36,240 2579263 INFO test_mx odoo.modules.loading: updating modules list 2022-09-21 16:31:36,241 2579263 INFO test_mx odoo.addons.base.models.ir_module: ALLOW access to module.update_list on [] to user __system__ #1 via n/a 2022-09-21 16:31:36,943 2579263 INFO test_mx odoo.addons.base.models.ir_module: ALLOW access to module.button_install on ['Mexico - Accounting'] to user __system__ #1 via n/a ... 2022-09-21 16:31:49,775 2579263 INFO test_mx odoo.modules.loading: Loading module base_install_request (26/78) ... 2022-09-21 16:31:50,043 2579263 INFO test_mx odoo.addons.base.models.ir_module: ALLOW access to module.button_install on ['Project', 'Email Marketing', 'Employees', 'Knowledge', 'Sign', 'Planning', 'Appointments', 'Surveys'] to user __system__ #1 via n/a 2022-09-21 16:31:50,167 2579263 INFO test_mx odoo.modules.loading: Module base_install_request loaded in 0.39s, 228 queries (+228 other) ... 2022-09-21 16:32:10,816 2579263 INFO test_mx odoo.modules.loading: Loading module l10n_mx (55/78) ... 2022-09-21 16:32:17,618 2579263 INFO test_mx odoo.modules.loading: Module l10n_mx loaded in 6.80s, 4302 queries (+4332 other) ... 2022-09-21 16:32:50,371 2579263 INFO test_mx odoo.modules.loading: Loading module hr (35/112) 2022-09-21 16:32:57,594 2579263 INFO test_mx odoo.addons.base.models.ir_module: ALLOW access to module.button_immediate_install on ['Employees - Mexico'] to user __system__ #1 via n/a 2022-09-21 16:32:57,594 2579263 INFO test_mx odoo.addons.base.models.ir_module: User #1 triggered module installation 2022-09-21 16:32:57,595 2579263 INFO test_mx odoo.addons.base.models.ir_module: ALLOW access to module.button_install on ['Employees - Mexico'] to user __system__ #1 via n/a ... 2022-09-21 16:32:58,558 2579263 ERROR test_mx odoo.modules.registry: Creating Registry <odoo.modules.registry.Registry object at 0x7f02cc0e8130> Stack (most recent call last): File "/home/xdo/osrc/master/odoo/odoo-bin", line 8, in <module> odoo.cli.main() File "/home/xdo/osrc/master/odoo/odoo/cli/command.py", line 56, in main o.run(args) File "/home/xdo/osrc/master/odoo/odoo/cli/server.py", line 179, in run main(args) File "/home/xdo/osrc/master/odoo/odoo/cli/server.py", line 173, in main rc = odoo.service.server.start(preload=preload, stop=stop) File "/home/xdo/osrc/master/odoo/odoo/service/server.py", line 1391, in start rc = server.run(preload, stop) File "/home/xdo/osrc/master/odoo/odoo/service/server.py", line 570, in run rc = preload_registries(preload) File "/home/xdo/osrc/master/odoo/odoo/service/server.py", line 1289, in preload_registries registry = Registry.new(dbname, update_module=update_module) File "<decorator-gen-15>", line 2, in new File "/home/xdo/osrc/master/odoo/odoo/tools/func.py", line 87, in locked return func(inst, *args, **kwargs) File "/home/xdo/osrc/master/odoo/odoo/modules/registry.py", line 91, in new odoo.modules.load_modules(registry, force_demo, status, update_module) File "/home/xdo/osrc/master/odoo/odoo/modules/loading.py", line 482, in load_modules processed_modules += load_marked_modules(cr, graph, File "/home/xdo/osrc/master/odoo/odoo/modules/loading.py", line 371, in load_marked_modules loaded, processed = load_module_graph( File "/home/xdo/osrc/master/odoo/odoo/modules/loading.py", line 248, in load_module_graph getattr(py_module, post_init)(cr, registry) File "/home/xdo/osrc/master/odoo/addons/hr/__init__.py", line 19, in _install_hr_localization l10n_mx.button_immediate_install() File "<decorator-gen-74>", line 2, in button_immediate_install File "/home/xdo/osrc/master/odoo/odoo/addons/base/models/ir_module.py", line 75, in check_and_log return method(self, *args, **kwargs) File "/home/xdo/osrc/master/odoo/odoo/addons/base/models/ir_module.py", line 486, in button_immediate_install return self._button_immediate_function(type(self).button_install) File "/home/xdo/osrc/master/odoo/odoo/addons/base/models/ir_module.py", line 607, in _button_immediate_function registry = modules.registry.Registry.new(self._cr.dbname, update_module=True) File "<decorator-gen-15>", line 2, in new File "/home/xdo/osrc/master/odoo/odoo/tools/func.py", line 87, in locked return func(inst, *args, **kwargs) File "/home/xdo/osrc/master/odoo/odoo/modules/registry.py", line 79, in new registry.init(db_name) File "/home/xdo/osrc/master/odoo/odoo/modules/registry.py", line 115, in init _logger.error(self, stack_info=True) 2022-09-21 16:32:58,580 2579263 INFO test_mx odoo.modules.loading: loading 1 modules... 2022-09-21 16:32:58,581 2579263 INFO test_mx odoo.modules.loading: Loading module base (1/1) ... 2022-09-21 16:33:35,294 2579263 INFO test_mx odoo.modules.loading: Loading module base_install_request (30/85) ... 2022-09-21 16:33:35,745 2579263 INFO test_mx odoo.modules.loading: Module base_install_request loaded in 0.45s, 131 queries (+131 other) ... 2022-09-21 16:34:05,789 2579263 INFO test_mx odoo.modules.loading: Loading module l10n_mx (62/85) ... 2022-09-21 16:34:28,497 2579263 INFO test_mx odoo.modules.loading: Loading module hr (35/113) ... 2022-09-21 16:34:32,067 2579263 INFO test_mx odoo.modules.loading: Module hr loaded in 3.57s, 4092 queries (+4092 other) 2022-09-21 16:34:32,067 2579263 INFO test_mx odoo.modules.loading: Loading module link_tracker (37/113) ... 2022-09-21 16:34:32,690 2579263 INFO test_mx odoo.modules.loading: Module link_tracker loaded in 0.62s, 267 queries (+267 other) ... 2022-09-21 16:35:04,063 2579263 INFO test_mx odoo.modules.loading: Modules loaded. 2022-09-21 16:35:04,068 2579263 INFO test_mx odoo.modules.registry: Registry loaded in 125.514s 2022-09-21 16:35:04,068 2579263 INFO test_mx odoo.addons.base.models.ir_module: getting next ir.actions.todo() 2022-09-21 16:35:04,071 2579263 INFO test_mx odoo.addons.base.models.ir_module: next action is "Open Menu" 2022-09-21 16:35:04,094 2579263 INFO test_mx odoo.modules.loading: Module hr loaded in 133.72s, 4344 queries (+81420 other) ... 2022-09-21 16:35:04,094 2579263 INFO test_mx odoo.modules.loading: Loading module link_tracker (37/112) 2022-09-21 16:35:04,163 2579263 ERROR test_mx odoo.modules.registry: setuping model: ir.model.fields() registry on model: <odoo.modules.registry.Registry object at 0x7f02cc0e8130> registry calling setup_models: <odoo.modules.registry.Registry object at 0x7f02e92399d0> 2022-09-21 16:35:04,164 2579263 WARNING test_mx odoo.modules.loading: Transient module states were reset 2022-09-21 16:35:04,165 2579263 ERROR test_mx odoo.modules.registry: Failed to load registry 2022-09-21 16:35:04,165 2579263 CRITICAL test_mx odoo.service.server: Failed to initialize database `test_mx`. Traceback (most recent call last): File "/home/xdo/osrc/master/odoo/odoo/service/server.py", line 1289, in preload_registries registry = Registry.new(dbname, update_module=update_module) File "<decorator-gen-15>", line 2, in new File "/home/xdo/osrc/master/odoo/odoo/tools/func.py", line 87, in locked return func(inst, *args, **kwargs) File "/home/xdo/osrc/master/odoo/odoo/modules/registry.py", line 91, in new odoo.modules.load_modules(registry, force_demo, status, update_module) File "/home/xdo/osrc/master/odoo/odoo/modules/loading.py", line 482, in load_modules processed_modules += load_marked_modules(cr, graph, File "/home/xdo/osrc/master/odoo/odoo/modules/loading.py", line 371, in load_marked_modules loaded, processed = load_module_graph( File "/home/xdo/osrc/master/odoo/odoo/modules/loading.py", line 206, in load_module_graph registry.setup_models(cr) File "/home/xdo/osrc/master/odoo/odoo/modules/registry.py", line 293, in setup_models model._setup_fields() File "/home/xdo/osrc/master/odoo/odoo/models.py", line 3294, in _setup_fields field.setup(self) File "/home/xdo/osrc/master/odoo/odoo/fields.py", line 512, in setup self.setup_nonrelated(model) File "/home/xdo/osrc/master/odoo/odoo/fields.py", line 4524, in setup_nonrelated m2m = model.pool._m2m AttributeError: 'Registry' object has no attribute '_m2m' Naive fix here: use button_install instead of button_immediate_install (not even sure this is 100% correct) All calls to button_immediate_install should be fixed maybe to avoid a registryloadingception closes odoo#100755 Signed-off-by: Yannick Tivisse (yti) <[email protected]>
alexis-via
pushed a commit
that referenced
this pull request
Mar 1, 2023
Issue #1: reading textContent When reading the textContent property of an element, its does not take into account line breaks introduced by <br> and block elements, whilst innerHtml does. This commit solves the issue of updating a link's href to a non-sense url upon label change. Before this commit, "www.abc.com <br> www.xyz.com" was being incorrectely parsed as "www.abc.comwww.xyz.com". Issue #2: setting textContent When setting the textContent property of an element, all of its child nodes are removed and replaced by a single text node. While this is fine when the element contains a single text node, it might not be the desired result when the element contains other children. This commit solves the issue obtained when pasting html such as "link.com<br>link.be" inside an empty inline element such as STRONG or A, in which cleanForSave was changing its content (removing the line-break) due to misuse of textContent, when the intended effected was simply removing ZeroWidthSpace characters. A safer alternative for removing ZeroWidthSpace is thus provided. task-3081254 closes odoo#112448 X-original-commit: 0d1150f Signed-off-by: David Monjoie (dmo) <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This merge request is created only to view the code change between the branch 8.0 and 8.0-fix_qty_search_perf. I propose to create a branch 8.0-ak to have a the all necessary changes like bug fixes or improvements (accountant bug fix by alexis, performence, etc.). This branch can be used until that change to be accepted in the OCA.