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

[FIX] point_of_sale: _confirm_orders #17168

Merged

Conversation

simongoffin
Copy link
Contributor

To help users to know why they can't close their pos sessions.

opw:744758

@@ -20,6 +20,8 @@ def _confirm_orders(self):
orders = session.order_ids.filtered(lambda order: order.state == 'paid')
journal_id = self.env['ir.config_parameter'].sudo().get_param(
'pos.closing.journal_id_%s' % company_id, default=session.config_id.journal_id.id)
if not journal_id:
raise UserError(_("You have to set a Sale Journal for %s" % (session.config_id.name,)))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Incorrect, the format parameter should be outside the _() call.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@xmo-odoo Thanks

@simongoffin simongoffin force-pushed the 10.0-point_of_sale-_confirm_orders-fix-sig branch 2 times, most recently from c977fc4 to 396e3f0 Compare May 23, 2017 20:34
@simongoffin simongoffin force-pushed the 10.0-point_of_sale-_confirm_orders-fix-sig branch from 396e3f0 to 6de446d Compare May 24, 2017 09:33
@speedy-software-ch
Copy link

can a user still add a sale journal at this stage without losing POS Session data?

@C3POdoo C3POdoo added the OE the report is linked to a support ticket (opw-...) label May 26, 2017
@simongoffin simongoffin force-pushed the 10.0-point_of_sale-_confirm_orders-fix-sig branch from 6de446d to fc4cd52 Compare May 29, 2017 07:16
To help users to know why they can't close their pos sessions when
a Sales Journal is not set in the pos.config.

opw:744758
@simongoffin simongoffin force-pushed the 10.0-point_of_sale-_confirm_orders-fix-sig branch from fc4cd52 to 530546a Compare May 29, 2017 07:17
@simongoffin simongoffin merged commit 530546a into odoo:10.0 May 29, 2017
@nle-odoo nle-odoo deleted the 10.0-point_of_sale-_confirm_orders-fix-sig branch March 15, 2018 11:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OE the report is linked to a support ticket (opw-...)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants