profile
viewpoint
If you are wondering where the data of this site comes from, please visit https://api.github.com/users/beledouxdenis/events. GitMemory does not store any data, but only uses NGINX to cache data for a period of time. The idea behind GitMemory is simply to give users a better reading experience.
Denis Ledoux beledouxdenis Odoo Namur, Belgium https://www.odoo.com

beledouxdenis/cpython 0

The Python programming language

beledouxdenis/docker-minecraft-server 0

Docker image that provides a Minecraft Server that will automatically download selected version at startup

beledouxdenis/go-hidproxy 0

Proxies Bluetooth keyboards and mouse as HID devices (eg. with Raspberry Zero Pi W)

beledouxdenis/netatmo-camera-scan-switch 0

Enable / Disable the Netatmo cameras according to devices in the local network

beledouxdenis/sprunge 0

command line pastebin for google appengine

beledouxdenis/sublime_terminal 0

Open Terminal Here menu and keyboard shortcuts for Sublime Text 2

pull request commentodoo/documentation

[FW][FIX] maintain: upgrade command line link

robodoo r+

fw-bot

comment created time in 3 days

pull request commentodoo/odoo

[FW][FIX] l10n_in: expected singleton error when posting multiple moves

@fw-bot r+

fw-bot

comment created time in 3 days

pull request commentodoo/odoo

[FIX] l10n_in: expected singleton error when posting multiple moves

robodoo r+

beledouxdenis

comment created time in 4 days

PR opened odoo/odoo

[FIX] l10n_in: expected singleton error when posting multiple moves
ceback (most recent call last):
  File "/home/odoo/src/odoo/14.0/odoo/service/server.py", line 1199, in preload_registries
    registry = Registry.new(dbname, update_module=update_module)
  File "/home/odoo/src/odoo/14.0/odoo/modules/registry.py", line 89, in new
    odoo.modules.load_modules(registry._db, force_demo, status, update_module)
  File "/home/odoo/src/odoo/14.0/odoo/modules/loading.py", line 474, in load_modules
    migrations.migrate_module(package, 'end')
  File "/home/odoo/src/odoo/14.0/odoo/modules/migration.py", line 180, in migrate_module
    migrate(self.cr, installed_version)
  File "/tmp/tmpgxy7cwao/migrations/account/saas~13.4.1.1/end-09-payment-refactoring.py", line 618, in migrate
    util.iter_browse(env["account.move"].with_context(**ctx), ids, chunk_size=1024).action_post()
  File "/tmp/tmpgxy7cwao/migrations/util/orm.py", line 169, in caller
    return [getattr(chnk, attr)(*args, **kwargs) for chnk in chain(it, self._end())]
  File "/tmp/tmpgxy7cwao/migrations/util/orm.py", line 169, in <listcomp>
    return [getattr(chnk, attr)(*args, **kwargs) for chnk in chain(it, self._end())]
  File "/home/odoo/src/odoo/14.0/addons/sale/models/account_move.py", line 14, in action_post
    res = super(AccountMove, self).action_post()
  File "/home/odoo/src/odoo/14.0/addons/account/models/account_move.py", line 2649, in action_post
    self._post(soft=False)
  File "/home/odoo/src/odoo/14.0/addons/sale/models/account_invoice.py", line 81, in _post
    posted = super()._post(soft)
  File "/home/odoo/src/odoo/14.0/addons/purchase_stock/models/account_invoice.py", line 188, in _post
    return super()._post(soft)
  File "/home/odoo/src/odoo/14.0/addons/l10n_in/models/account_invoice.py", line 108, in _post
    elif self.journal_id.type == 'purchase':
  File "/home/odoo/src/odoo/14.0/odoo/fields.py", line 963, in __get__
    record.ensure_one()
  File "/home/odoo/src/odoo/14.0/odoo/models.py", line 4993, in ensure_one
    raise ValueError("Expected singleton: %s" % self)
ValueError: Expected singleton: account.journal(4, 3, 59, 99, 18, 11, 8, 77, 10, 72, 21, 66, 92, 88, 74)

upg-30689

+2 -2

0 comment

1 changed file

pr created time in 4 days

pull request commentodoo/documentation

[FIX] maintain: upgrade command line link

robodoo r+

beledouxdenis

comment created time in 4 days

PR closed odoo/odoo

[FW][FIX] mrp: qty for bom kits with multiple boms with same sequence RD forwardport conflict

When a product is configured with 2 different boms kit using the same sequence, the bom chosen could change randomly, therefore randomly changing the available quantity.

This has been detected during an upgrade, With the unit test checking the quantities of the products doesn't change before and after the upgrade, and in this case, the bom chosen before upgrade was different than the bom chosen after upgrade, therefore changing the available quantity of this product before and after upgrade.

Traceback (most recent call last):
  File "/tmp/tmp659zn85u/migrations/testing.py", line 208, in test_check
    self.check(value)
  File "/tmp/tmp659zn85u/migrations/stock/tests/test_on_hand_quantity.py", line 20, in check
    self.assertEqual(before_results, self.convert_check(after_results), self.message)
AssertionError: Lists differ: [[262[3108 chars], '-107'], [3879, '-36'], [3983, '-39'], [3984[5666 chars]14']] != [[262[3108 chars], '-150'], [3879, '-36'], [3983, '-39'], [3984[5666 chars]14']]

First differing element 209:
[3878, '-107']
[3878, '-150']

Diff is 10670 characters long. Set self.maxDiff to None to see it. : Invariant check fail

upg-27353

Forward-Port-Of: odoo/odoo#76358

+0 -0

2 comments

0 changed file

fw-bot

pr closed time in 12 days

pull request commentodoo/odoo

[FW][FIX] mrp: qty for bom kits with multiple boms with same sequence

@fw-bot r+

fw-bot

comment created time in 14 days

pull request commentodoo/odoo

[FIX] mrp: qty for bom kits with multiple boms with same sequence

@amoyaux @ryv-odoo This was a funny one :D

beledouxdenis

comment created time in 14 days

PR opened odoo/odoo

[FIX] mrp: qty for bom kits with multiple boms with same sequence

When a product is configured with 2 different boms kit using the same sequence, the bom chosen could change randomly, therefore randomly changing the available quantity.

This has been detected during an upgrade, With the unit test checking the quantities of the products doesn't change before and after the upgrade, and in this case, the bom chosen before upgrade was different than the bom chosen after upgrade, therefore changing the available quantity of this product before and after upgrade.

Traceback (most recent call last):
  File "/tmp/tmp659zn85u/migrations/testing.py", line 208, in test_check
    self.check(value)
  File "/tmp/tmp659zn85u/migrations/stock/tests/test_on_hand_quantity.py", line 20, in check
    self.assertEqual(before_results, self.convert_check(after_results), self.message)
AssertionError: Lists differ: [[262[3108 chars], '-107'], [3879, '-36'], [3983, '-39'], [3984[5666 chars]14']] != [[262[3108 chars], '-150'], [3879, '-36'], [3983, '-39'], [3984[5666 chars]14']]

First differing element 209:
[3878, '-107']
[3878, '-150']

Diff is 10670 characters long. Set self.maxDiff to None to see it. : Invariant check fail

upg-27353

+2 -2

0 comment

1 changed file

pr created time in 14 days

pull request commentodoo/odoo

[FW][FIX] stock: `report_stock_quantity` ambiguous column product_qty

@fw-bot r+

fw-bot

comment created time in 17 days

pull request commentodoo/odoo

[FW][FIX] stock: `report_stock_quantity` ambiguous column product_qty

robodoo r+

fw-bot

comment created time in 18 days

push eventodoo-dev/odoo

Denis Ledoux

commit sha e7608f207f5b86a245523457b96bf9abd019840b

[FIX] stock: `report_stock_quantity` ambiguous column product_qty In case there is a `product_qty` column added by a custom module, `product_qty`, without specifying from which table to take it from in the view definition, can lead to an ambiguous definition. ``` 2021-08-25 12:25:31,624 1145 ERROR db_23001 odoo.modules.registry: Failed to load registry Traceback (most recent call last): File "/home/odoo/src/odoo/13.0/odoo/modules/registry.py", line 86, in new odoo.modules.load_modules(registry._db, force_demo, status, update_module) File "/home/odoo/src/odoo/13.0/odoo/modules/loading.py", line 424, in load_modules force, status, report, loaded_modules, update_module, models_to_check) File "/home/odoo/src/odoo/13.0/odoo/modules/loading.py", line 315, in load_marked_modules perform_checks=perform_checks, models_to_check=models_to_check File "/home/odoo/src/odoo/13.0/odoo/modules/loading.py", line 202, in load_module_graph registry.init_models(cr, model_names, {'module': package.name}, new_install) File "/home/odoo/src/odoo/13.0/odoo/modules/registry.py", line 370, in init_models model.init() File "/home/odoo/src/odoo/13.0/addons/stock/report/report_stock_quantity.py", line 126, in init self.env.cr.execute(query) File "/home/odoo/src/odoo/13.0/odoo/sql_db.py", line 173, in wrapper return f(self, *args, **kwargs) File "/home/odoo/src/odoo/13.0/odoo/sql_db.py", line 250, in execute res = self._obj.execute(query, params) psycopg2.errors.AmbiguousColumn: column reference "product_qty" is ambiguous LINE 21: ...AND whd.id IS NULL) OR ls.usage = 'transit' THEN -product_qt... ``` upg-23001 X-original-commit: 07f0ffad6ecc08f4165902db45ae96e4b41199e8

view details

push time in 18 days

pull request commentodoo/odoo

[FIX] stock: `report_stock_quantity` ambiguous column product_qty

robodoo r+

beledouxdenis

comment created time in 18 days

PR opened odoo/odoo

[FIX] stock: `report_stock_quantity` ambiguous column product_qty

In case there is a product_qty column added by a custom module, product_qty, without specifying from which table to take it from in the view definition, can lead to an ambiguous definition.

2021-08-25 12:25:31,624 1145 ERROR db_23001 odoo.modules.registry: Failed to load registry
Traceback (most recent call last):
  File "/home/odoo/src/odoo/13.0/odoo/modules/registry.py", line 86, in new
    odoo.modules.load_modules(registry._db, force_demo, status, update_module)
  File "/home/odoo/src/odoo/13.0/odoo/modules/loading.py", line 424, in load_modules
    force, status, report, loaded_modules, update_module, models_to_check)
  File "/home/odoo/src/odoo/13.0/odoo/modules/loading.py", line 315, in load_marked_modules
    perform_checks=perform_checks, models_to_check=models_to_check
  File "/home/odoo/src/odoo/13.0/odoo/modules/loading.py", line 202, in load_module_graph
    registry.init_models(cr, model_names, {'module': package.name}, new_install)
  File "/home/odoo/src/odoo/13.0/odoo/modules/registry.py", line 370, in init_models
    model.init()
  File "/home/odoo/src/odoo/13.0/addons/stock/report/report_stock_quantity.py", line 126, in init
    self.env.cr.execute(query)
  File "/home/odoo/src/odoo/13.0/odoo/sql_db.py", line 173, in wrapper
    return f(self, *args, **kwargs)
  File "/home/odoo/src/odoo/13.0/odoo/sql_db.py", line 250, in execute
    res = self._obj.execute(query, params)
psycopg2.errors.AmbiguousColumn: column reference "product_qty" is ambiguous
LINE 21: ...AND whd.id IS NULL) OR ls.usage = 'transit' THEN -product_qt...

upg-23001

+8 -8

0 comment

1 changed file

pr created time in 18 days

pull request commentodoo/odoo

[FW][FIX] mrp: `qty_available` computation of a nested bom kits asked together

@fw-bot r+

fw-bot

comment created time in 25 days

push eventodoo-dev/odoo

Denis Ledoux

commit sha 6a2321a1c5ff8cdefc870479dc64f50b7e156a7c

[FIX] mrp: `qty_available` computation of a nested bom kits asked together This revision has a similar goal than the previous revision 62c5b8d95c1ba5634e201c0c8a3e2d91fb2305a7 but this times, it's a kit/phantom bom which is nested in another kit/phantom bom, and their computation is asked in the same time. ``` 2021-08-20 11:29:54,835 1689 ERROR db_22687 odoo.upgrade.stock.tests.test_on_hand_quantity: FAIL: TestOnHandQuantityUnchanged.test_check Traceback (most recent call last): File "/tmp/tmpv3ujv2vr/migrations/testing.py", line 208, in test_check self.check(value) File "/tmp/tmpv3ujv2vr/migrations/stock/tests/test_on_hand_quantity.py", line 20, in check self.assertEqual(before_results, self.convert_check(after_results), self.message) AssertionError: Lists differ: [[551[14585 chars] [8988, '137'], [8989, '137'], [8990, '20'], [[1793 chars]91']] != [[551[14585 chars] [8989, '137'], [8990, '20'], [8991, '126'], [[1778 chars]91']] First differing element 1007: [8988, '137'] [8989, '137' ``` ``` SELECT b.id, b.type, p.id as kit_product_id, b.product_tmpl_id as kit_product_tmpl_id, pt.name as kit_product_name FROM mrp_bom b JOIN product_template pt ON pt.id = b.product_tmpl_id JOIN product_product p ON p.pr oduct_tmpl_id = pt.id WHERE p.id = 8988; -[ RECORD 1 ]-------+----------------- id | 2208 type | phantom kit_product_id | 8988 kit_product_tmpl_id | 9049 kit_product_name | KIT Poulie AR G4 ``` ``` SELECT b.id, p.id as kit_product_id, b.product_tmpl_id as kit_product_tmpl_id, pt.name as kit_product_name, l.product_id as component_product_id, component_t.name as component_name FROM mrp_bom_line l JOIN mrp_bom b ON l.bom_id = b.id JOIN product_product p ON p.product_tmpl_id = b.product_tmpl_id JOIN product_template pt ON pt.id = b.product_tmpl_id JOIN product_product component ON component.id = l.product_id JOIN product_template component_t ON component_t.id = component.product_tmpl_id WHERE l.product_id = 8988; -[ RECORD 1 ]--------+--------------------- id | 2213 kit_product_id | 8761 kit_product_tmpl_id | 8879 kit_product_name | VEL BP KIT direction component_product_id | 8988 component_name | KIT Poulie AR G4 ``` upg-22687

view details

push time in a month

pull request commentodoo/odoo

[FIX] mrp: `qty_available` computation of a nested bom kits asked together

There is also upg-18737 and upg-5040 failing on the same on hand quantity test, but I haven't tested yet if they get resolved by the same fix. I am trying right now.

beledouxdenis

comment created time in a month

PR opened odoo/odoo

[FIX] mrp: `qty_available` computation of a nested bom kits asked together

This revision has a similar goal than the previous revision 62c5b8d95c1ba5634e201c0c8a3e2d91fb2305a7 but this times, it's a kit/phantom bom which is nested in another kit/phantom bom, and their computation is asked in the same time.

2021-08-20 11:29:54,835 1689 ERROR db_22687 odoo.upgrade.stock.tests.test_on_hand_quantity: FAIL: TestOnHandQuantityUnchanged.test_check
Traceback (most recent call last):
  File "/tmp/tmpv3ujv2vr/migrations/testing.py", line 208, in test_check
    self.check(value)
  File "/tmp/tmpv3ujv2vr/migrations/stock/tests/test_on_hand_quantity.py", line 20, in check
    self.assertEqual(before_results, self.convert_check(after_results), self.message)
AssertionError: Lists differ: [[551[14585 chars] [8988, '137'], [8989, '137'], [8990, '20'], [[1793 chars]91']] != [[551[14585 chars] [8989, '137'], [8990, '20'], [8991, '126'], [[1778 chars]91']]

First differing element 1007:
[8988, '137']
[8989, '137'
SELECT b.id, b.type,  p.id as kit_product_id, b.product_tmpl_id as kit_product_tmpl_id, pt.name as
kit_product_name FROM mrp_bom b JOIN product_template pt ON pt.id = b.product_tmpl_id JOIN product_product p ON p.pr
oduct_tmpl_id = pt.id WHERE p.id = 8988;
-[ RECORD 1 ]-------+-----------------
id                  | 2208
type                | phantom
kit_product_id      | 8988
kit_product_tmpl_id | 9049
kit_product_name    | KIT Poulie AR G4
SELECT b.id, p.id as kit_product_id, b.product_tmpl_id as kit_product_tmpl_id, pt.name as kit_product_name, l.product_id as component_product_id, component_t.name as component_name FROM mrp_bom_line l JOIN mrp_bom b ON l.bom_id = b.id JOIN product_product p ON p.product_tmpl_id = b.product_tmpl_id JOIN product_template pt ON pt.id = b.product_tmpl_id JOIN product_product component ON component.id = l.product_id JOIN product_template component_t ON component_t.id = component.product_tmpl_id WHERE l.product_id = 8988;
-[ RECORD 1 ]--------+---------------------
id                   | 2213
kit_product_id       | 8761
kit_product_tmpl_id  | 8879
kit_product_name     | VEL BP KIT direction
component_product_id | 8988
component_name       | KIT Poulie AR G4

upg-22687

+4 -2

0 comment

1 changed file

pr created time in a month

create barnchodoo-dev/odoo

branch : 13.0-mrp-nested-bom-kits-qty-available-dle

created branch time in a month

fork beledouxdenis/docker-minecraft-server

Docker image that provides a Minecraft Server that will automatically download selected version at startup

https://hub.docker.com/r/itzg/minecraft-server

fork in a month