addons-vauxoo
addons-vauxoo copied to clipboard
[MIG] product_cost_usd: module migrated to v15.0 t#53826
@luisg123v Done, please review
cc @desdelinux
@luisg123v Done
@luisg123v Done
@agarzaarvizu task ID is wrong in both title and description
Hi, @luisg123v and @agarzaarvizu, I have bad news :(. I added this module in tanner_common and I had these tracebacks using it, indeed, you may see that if I do not add this module the tests are working well here
@luisg123v Finally done!! Hahaha please review.
cc @rolandojduartem
@luisg123v Done, please review
@luisg123v Done
Hi, @agarzaarvizu, I just want to say I'm getting this traceback, I'm just running the check_cost_and_price method.
Traceback (most recent call last): File "/.repo_requirements/odoo/odoo/models.py", line 5199, in ensure_one _id, = self._ids ValueError: too many values to unpack (expected 1)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/odoo/build/vauxoo/tanner-common/tanner_common/tests/test_product_template.py", line 35, in test_02_check_cost_and_price
self.product.product_tmpl_id.check_cost_and_price()
File "/home/odoo/build/vauxoo/tanner-common/tanner_common/models/product_template.py", line 24, in check_cost_and_price
return super().check_cost_and_price()
File "/home/odoo/addons-vauxoo/product_cost_usd/models/product_template.py", line 26, in check_cost_and_price
list_price = usd_seller.price
File "/.repo_requirements/odoo/odoo/fields.py", line 1050, in get
record.ensure_one()
File "/.repo_requirements/odoo/odoo/models.py", line 5202, in ensure_one
raise ValueError("Expected singleton: %s" % self)
ValueError: Expected singleton: product.supplierinfo(3, 1, 2)
cc @luisg123v
I've rebased this branch so tests may run
@luisg123v Done
@agarzaarvizu @luisg123v No aparece el tag del campo en la vista del Producto, sólo aparece el valor:
@luisg123v @desdelinux Done
LGTM