Skip to content
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

[17.0] partner_firstname: Error during Website checkout #1638

Open
traviswaelbro opened this issue Jan 8, 2024 · 2 comments
Open

[17.0] partner_firstname: Error during Website checkout #1638

traviswaelbro opened this issue Jan 8, 2024 · 2 comments
Labels

Comments

@traviswaelbro
Copy link

traviswaelbro commented Jan 8, 2024

Module

partner_firstname

Describe the bug

A traceback error is raised when trying to create or update an address during the website checkout process.

Traceback (most recent call last):
  File "/opt/odoo/odoo/http.py", line 1722, in _serve_db
    return service_model.retrying(self._serve_ir_http, self.env)
  File "/opt/odoo/odoo/service/model.py", line 133, in retrying
    result = func()
  File "/opt/odoo/odoo/http.py", line 1749, in _serve_ir_http
    response = self.dispatcher.dispatch(rule.endpoint, args)
  File "/opt/odoo/odoo/http.py", line 1866, in dispatch
    return self.request.registry['ir.http']._dispatch(endpoint)
  File "/opt/odoo/addons/website/models/ir_http.py", line 235, in _dispatch
    response = super()._dispatch(endpoint)
  File "/opt/odoo/odoo/addons/base/models/ir_http.py", line 222, in _dispatch
    result = endpoint(**request.params)
  File "/opt/odoo/odoo/http.py", line 722, in route_wrapper
    result = endpoint(self, *args, **params_ok)
  File "/opt/odoo/addons/website_sale/controllers/main.py", line 1346, in address
    'use_same': is_public_user or ('use_same' in kw and str2bool(kw.get('use_same'))),
  File "/opt/odoo/odoo/tools/misc.py", line 468, in str2bool
    raise ValueError('Use 0/1/yes/no/true/false/on/off')
ValueError: Use 0/1/yes/no/true/false/on/off

To Reproduce

Affected versions: 17.0

Confirmed this is cannot be replicated on 16.0, so it appears to be a new issue.

Steps to reproduce the behavior:

  1. Install the partner_firstname and Ecommerce (website_sale) modules
  2. Go to the website, add product to cart, and click "Checkout"
  3. Click "Edit" on the address area shown
    • image
  4. Click "Add address"
    • The same happens on "Edit" of address via the website checkout form but requires manually creating an address from the backend so that it's available to test with.
  5. Click "Save address"

Expected behavior
Checkout continues to the payment screen

Additional context
Replicated on runboat

Copy link

github-actions bot commented Jul 7, 2024

There hasn't been any activity on this issue in the past 6 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days.
If you want this issue to never become stale, please ask a PSC member to apply the "no stale" label.

@github-actions github-actions bot added the stale PR/Issue without recent activity, it'll be soon closed automatically. label Jul 7, 2024
@mcimam
Copy link

mcimam commented Aug 5, 2024

Can't replicate this issue.
I think, this issue coming from website_sale module and unrelated to partner_firstname module.
Please update to new odoo version to see if this fix your issue.
Thanks

@github-actions github-actions bot removed the stale PR/Issue without recent activity, it'll be soon closed automatically. label Aug 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants