-
Notifications
You must be signed in to change notification settings - Fork 26.7k
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,l10n_be_pos_sale: invoice settled order #139467
[FIX] point_of_sale,l10n_be_pos_sale: invoice settled order #139467
Conversation
5773f0f
to
655d674
Compare
655d674
to
fd39961
Compare
fd39961
to
472ca57
Compare
f1c8693
to
9a97597
Compare
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.
IMO we should force the creation of the invoice, else it would still break everything I will ask the POs for specifications
Please update the commit message to reflect the real issue
- ?In Belgium? when using a EU intracom tax, as we need to report those special sales to the government we need to create an invoice as we need to report the customer name, VAT number and the country where the goods are going to end up
- Side-note: Another Belgian requirement in most cases is a document proving the goods will cross borders (if the goods aren't delivered but pick up directly)
addons/l10n_be_pos_sale/__init__.py
Outdated
@@ -0,0 +1,2 @@ | |||
# -*- coding: utf-8 -*- |
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.
Will only report it on this file but never adds new coding UTF-8, it's deprecated since python3.0 and Odoo stopped using python 2 for a while
'partner_id': self.partner_a.id, | ||
'order_line': [(0, 0, { | ||
'product_id': self.product_a.id, |
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.
'partner_id': self.partner_a.id, | |
'order_line': [(0, 0, { | |
'product_id': self.product_a.id, | |
'partner_id': self.partner_a.id, | |
'order_line': [Command.create({ | |
'product_id': self.product_a.id, |
To me, this PR is reacting to a symptom (namely highlighting problems with the EC Sales List because contextually, it was the concern that triggered this PR) but there are other aspects to reconsider in depth. Wouldn't it be wiser to consider downpayments as invoices in any case ? |
84455d4
to
e0895dc
Compare
@tsb-odoo So? We want this fix and rework that case on the side or we don't want this fix and rework that case on the side? |
@tsb-odoo ping |
@tsb-odoo @JulienAlardot ping |
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.
I'm okay with this patch unless @tsb-odoo really thinks this is a mistake.
|
||
export const PoSSaleBePaymentScreen = (PaymentScreen) => | ||
class extends PaymentScreen { | ||
async toggleIsToInvoice() { |
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.
async toggleIsToInvoice() { | |
toggleIsToInvoice() { |
Don't change the "color" of the function, we should keep it synchronous.
async toggleIsToInvoice() { | ||
const has_origin_order = this.currentOrder.get_orderlines().some(line => line.sale_order_origin_id); | ||
if(this.currentOrder.is_to_invoice() && this.env.pos.company.country.code === "BE" && has_origin_order){ | ||
await this.showPopup('ErrorPopup', { |
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.
await this.showPopup('ErrorPopup', { | |
this.showPopup('ErrorPopup', { |
setup() { | ||
super.setup(); | ||
} |
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.
You can remove this since you're not adding anything in the setup logic.
5cd54f7
to
8a96f6f
Compare
@caburj You might need to R+ this one again |
robodoo r+ |
@robinengels @caburj staging failed: ci/runbot on 5699906808539f79c7c9d670b39ab68c63d1dca9 (view more at https://runbot.odoo.com/runbot/build/55176288) |
Current behavior: ?In Belgium? when using a EU intracom tax, as we need to report those special sales to the government we need to create an invoice as we need to report the customer name, VAT number and the country where the goods are going to end up Steps to reproduce: - Create an order with a product and a tax (0% EU M) - Settle the order in the PoS and pay it (no invoice) - Go to the accounting and check the EC Sales List report - There is an error shown in the report opw-3514737
c2fd189
to
d31d8c0
Compare
robodoo r+ |
Current behavior: ?In Belgium? when using a EU intracom tax, as we need to report those special sales to the government we need to create an invoice as we need to report the customer name, VAT number and the country where the goods are going to end up Steps to reproduce: - Create an order with a product and a tax (0% EU M) - Settle the order in the PoS and pay it (no invoice) - Go to the accounting and check the EC Sales List report - There is an error shown in the report opw-3514737 closes #139467 Signed-off-by: Joseph Caburnay (jcb) <[email protected]>
@robinengels @caburj this pull request has forward-port PRs awaiting action (not merged or closed): |
3 similar comments
@robinengels @caburj this pull request has forward-port PRs awaiting action (not merged or closed): |
@robinengels @caburj this pull request has forward-port PRs awaiting action (not merged or closed): |
@robinengels @caburj this pull request has forward-port PRs awaiting action (not merged or closed): |
@robinengels @caburj this pull request has forward-port PRs awaiting action (not merged or closed): |
3 similar comments
@robinengels @caburj this pull request has forward-port PRs awaiting action (not merged or closed): |
@robinengels @caburj this pull request has forward-port PRs awaiting action (not merged or closed): |
@robinengels @caburj this pull request has forward-port PRs awaiting action (not merged or closed): |
@robinengels @caburj this pull request has forward-port PRs awaiting action (not merged or closed): |
Current behavior: ?In Belgium? when using a EU intracom tax, as we need to report those special sales to the government we need to create an invoice as we need to report the customer name, VAT number and the country where the goods are going to end up Steps to reproduce: - Create an order with a product and a tax (0% EU M) - Settle the order in the PoS and pay it (no invoice) - Go to the accounting and check the EC Sales List report - There is an error shown in the report opw-3514737 closes odoo#139467 Signed-off-by: Joseph Caburnay (jcb) <[email protected]>
Current behavior:
In Belgium when using a EU intracom tax, as we need to report those special sales to the government we need to create an invoice as we need to report the customer name, VAT number and the country where the goods are going to end up
Steps to reproduce:
opw-3514737
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr