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

[FW][FIX] l10n_hu_edi: Various fixes #166076

Conversation

fw-bot
Copy link
Contributor

@fw-bot fw-bot commented May 17, 2024

  1. Avoid crashing if move.name is not set

In the tests

  • :TestAccountMoveInInvoiceOnchanges.test_fiduciary_mode_date_suggestion
  • :TestSequenceMixin.test_sequence_empty_editable_with_quick_edit_mode

the compute method _compute_l10n_hu_edi_attachment_filename was called before the invoice name was set.
Because of this, calling move.name.replace('/', '_') was raising an AttributeError.

  1. Allow user to not put credentials when they are using demo mode.

  2. sent (waiting for response) and confirmed_warning states should not raise a UserError and should not block an e-mail from being sent to the customer.

  3. always send modification invoices using 'MODIFY' (never 'STORNO') since 'STORNO' prevents further modifications from being issued to the invoice, but in Odoo we can't predict whether the user will want to issue further corrections to an invoice in the future.

Fixes runbot errors 64755 and 64756.

Forward-Port-Of: #165897
Forward-Port-Of: #165195

@robodoo
Copy link
Contributor

robodoo commented May 17, 2024

@fw-bot
Copy link
Contributor Author

fw-bot commented May 17, 2024

@antoine162 @jco-odoo this PR targets master and is the last of the forward-port chain.

To merge the full chain, use

@fw-bot r+

More info at https://github.com/odoo/odoo/wiki/Mergebot#forward-port

@robodoo robodoo added the forwardport This PR was created by @fw-bot label May 17, 2024
@fw-bot
Copy link
Contributor Author

fw-bot commented May 17, 2024

@antoine162 @jco-odoo ci/runbot failed on this forward-port PR

@C3POdoo C3POdoo added the RD research & development, internal work label May 17, 2024
1. Avoid crashing if move.name is not set

In the tests
`:TestAccountMoveInInvoiceOnchanges.test_fiduciary_mode_date_suggestion`
`:TestSequenceMixin.test_sequence_empty_editable_with_quick_edit_mode`
the compute method `_compute_l10n_hu_edi_attachment_filename` gets
called before the invoice name is set.

Because of this, calling move.name.replace('/', '_') was raising an
AttributeError.

2. Allow user to not put credentials in demo mode.

3. sent (waiting for response) and confirmed_warning states don't raise
   a UserError and don't block an e-mail from being sent to the customer
   anymore.

4. always send modification invoices using 'MODIFY' (never 'STORNO')
   since in Odoo we can't predict whether the user will want to issue
   further corrections to an invoice in the future.

5. Remove 'countries': ['hu'] in __manifest__.py to align with
   odoo/enterprise#56251

Fixes runbot errors 64755 and 64756.

X-original-commit: f8fd100
@antoine162 antoine162 force-pushed the master-17.0-l10n_hu_edi-fix-nightly-tests-andu-01MA-fw branch from 94ded0a to 7b9921b Compare May 21, 2024 07:31
@fw-bot
Copy link
Contributor Author

fw-bot commented May 21, 2024

@antoine162 @jco-odoo this PR was modified / updated and has become a normal PR. It should be merged the normal way (via @robodoo)

@antoine162
Copy link
Contributor

@robodoo r+

robodoo pushed a commit that referenced this pull request May 21, 2024
1. Avoid crashing if move.name is not set

In the tests
`:TestAccountMoveInInvoiceOnchanges.test_fiduciary_mode_date_suggestion`
`:TestSequenceMixin.test_sequence_empty_editable_with_quick_edit_mode`
the compute method `_compute_l10n_hu_edi_attachment_filename` gets
called before the invoice name is set.

Because of this, calling move.name.replace('/', '_') was raising an
AttributeError.

2. Allow user to not put credentials in demo mode.

3. sent (waiting for response) and confirmed_warning states don't raise
   a UserError and don't block an e-mail from being sent to the customer
   anymore.

4. always send modification invoices using 'MODIFY' (never 'STORNO')
   since in Odoo we can't predict whether the user will want to issue
   further corrections to an invoice in the future.

5. Remove 'countries': ['hu'] in __manifest__.py to align with
   odoo/enterprise#56251

Fixes runbot errors 64755 and 64756.

closes #166076

X-original-commit: f8fd100
Signed-off-by: Josse Colpaert <jco@odoo.com>
Signed-off-by: Antoine Dupuis (andu) <andu@odoo.com>
@robodoo robodoo added the 17.3 label May 21, 2024
@robodoo robodoo closed this May 21, 2024
zel-odoo pushed a commit to odoo-dev/odoo that referenced this pull request May 24, 2024
1. Avoid crashing if move.name is not set

In the tests
`:TestAccountMoveInInvoiceOnchanges.test_fiduciary_mode_date_suggestion`
`:TestSequenceMixin.test_sequence_empty_editable_with_quick_edit_mode`
the compute method `_compute_l10n_hu_edi_attachment_filename` gets
called before the invoice name is set.

Because of this, calling move.name.replace('/', '_') was raising an
AttributeError.

2. Allow user to not put credentials in demo mode.

3. sent (waiting for response) and confirmed_warning states don't raise
   a UserError and don't block an e-mail from being sent to the customer
   anymore.

4. always send modification invoices using 'MODIFY' (never 'STORNO')
   since in Odoo we can't predict whether the user will want to issue
   further corrections to an invoice in the future.

5. Remove 'countries': ['hu'] in __manifest__.py to align with
   odoo/enterprise#56251

Fixes runbot errors 64755 and 64756.

closes odoo#166076

X-original-commit: f8fd100
Signed-off-by: Josse Colpaert <jco@odoo.com>
Signed-off-by: Antoine Dupuis (andu) <andu@odoo.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
17.3 forwardport This PR was created by @fw-bot RD research & development, internal work
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants