Saturday, June 29, 2024
8 changes
6 changes
Miscellaneous changes
Problem: When a user creates an automated action to update a float type field to a value, the value does not get converted into a float, and a TypeError occurs. Purpose: Typecast the str value into a float, so no traceback error occurs. Steps to Reproduce on Runbot: 1. Install base_automation, CRM 2. Create an automated action: - Model: Lead/Opportunity - Trigger: On update - Trigger fields: Stage(crm.lead) - Action to do: Update the record - Data to write: {probability(crm.lead), v
Original PR description
Problem: When a user creates an automated action to update a float type field to a value, the value does not get converted into a float, and a TypeError occurs.
Purpose: Typecast the str value into a float, so no traceback error occurs.
Steps to Reproduce on Runbot:
1. Install base_automation, CRM
2. Create an automated action:
- Model: Lead/Opportunity
- Trigger: On update
- Trigger fields: Stage(crm.lead)
- Action to do: Update the record
- Data to write: {probability(crm.lead), value,20}
3. change the stage of a crm opportunity
4. Traceback error occurs TypeError: '>=' not supported between instances of 'str' and 'int'
opw-3962939
---
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Forward-Port-Of: odoo/odoo#171203
Forward-Port-Of: odoo/odoo#167918[FIX] account: fix lines of reverse move The button "Reverse and Create Invoice" allows the user to reverse the current Invoice, and create a copy in one button. When pressing it, all Notes and Sections are lost Solution: Include 'line_section' & 'line_note' in creating the reverse move task-id#3940541 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#170925
Original PR description
[FIX] account: fix lines of reverse move The button "Reverse and Create Invoice" allows the user to reverse the current Invoice, and create a copy in one button. When pressing it, all Notes and Sections are lost Solution: Include 'line_section' & 'line_note' in creating the reverse move task-id#3940541 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#170925
Currently, an error occurs when producing a manufacturing order for a product whose tracking is by lot. Step to produce: - Install the 'mrp' module (ensure developer mode is enabled). - Go to Settings / Technical / Sequences & Identifiers / Sequences, Open 'stock.lot.serial' and add ''%default_code-%(month)s%(y)s-' as a prefix. - Create a new product by lots, Open 'Manufacturing Orders' and create an order with that new product. - Confirm this order, And then click on mark as done and
Original PR description
Currently, an error occurs when producing a manufacturing order for a product whose tracking is by lot. Step to produce: - Install the 'mrp' module (ensure developer mode is enabled). - Go to…
Currently, an error occurs when producing a manufacturing order for a product whose tracking is by lot. Step to produce: - Install the 'mrp' module (ensure developer mode is enabled). - Go to Settings / Technical / Sequences & Identifiers / Sequences, Open 'stock.lot.serial' and add ''%default_code-%(month)s%(y)s-' as a prefix. - Create a new product by lots, Open 'Manufacturing Orders' and create an order with that new product. - Confirm this order, And then click on mark as done and apply immediate production ```TypeError: %d format: a real number is required, not dict``` An error occurs when attempting to produce a manufacturing order of a product which have lot by serial numbers because the system tries to generate an invalid serial number at [1]. link [1]: https://github.com/odoo/odoo/blob/c7d420b077490108794f513e9ff21b0d850f57af/addons/stock/models/stock_production_lot.py#L89 To resolve the issue, raise a user error for an invalid sequence. sentry-5343084412 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#170916 Forward-Port-Of: odoo/odoo#165620
Clicking on the doc link for the "Packages" setting returns a 404 error. The structure of the Inventory documentation has been changed and it seems there was a missing redirection rule for this doc. This commit fixes the URL of the doc link. Forward-Port-Of: odoo/odoo#171020 Forward-Port-Of: odoo/odoo#170983
Original PR description
Clicking on the doc link for the "Packages" setting returns a 404 error. The structure of the Inventory documentation has been changed and it seems there was a missing redirection rule for this doc. This commit fixes the URL of the doc link. Forward-Port-Of: odoo/odoo#171020 Forward-Port-Of: odoo/odoo#170983
This requires adding the following elements to the customer invoice / credit note / sales receipt: - The recipient's SIREN/SIRET if any - Customer address, if different from billing address - Delivery address, if different from billing address - Type of operation: goods delivery, service delivery or mixed operation - Option to pay VAT on a debit basis All of that should be added as long as the issuer is french The billing/delivery addresses are customizable on a per-invoice basis S
Original PR description
This requires adding the following elements to the customer invoice / credit note / sales receipt: - The recipient's SIREN/SIRET if any - Customer address, if different from billing address - Delivery address, if different from billing address - Type of operation: goods delivery, service delivery or mixed operation - Option to pay VAT on a debit basis All of that should be added as long as the issuer is french The billing/delivery addresses are customizable on a per-invoice basis See: https://www.legifrance.gouv.fr/jorf/id/JORFTEXT000046383394 task-3856826 **Documentation PR:** odoo/documentation#9820 Forward-Port-Of: odoo/odoo#171275 Forward-Port-Of: odoo/odoo#162458
The Odoo Menu linked to the graphs would not be duplicated on sheet duplication. task-3810369 Description of the issue/feature this PR addresses: Current behavior before PR: Desired behavior after PR is merged: --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#170794 Forward-Port-Of: odoo/odoo#167964
Original PR description
The Odoo Menu linked to the graphs would not be duplicated on sheet duplication. task-3810369 Description of the issue/feature this PR addresses: Current behavior before PR: Desired behavior after PR is merged: --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#170794 Forward-Port-Of: odoo/odoo#167964
2 changes
Miscellaneous changes
## Pull Request HOOT (PRHOOT) - part 18 Part 1: https://github.com/odoo/odoo/pull/152930 Part 2: https://github.com/odoo/odoo/pull/153018 Part 3: https://github.com/odoo/odoo/pull/153023 Part 4: https://github.com/odoo/odoo/pull/153203 Part 5: https://github.com/odoo/odoo/pull/153425 Part 6: https://github.com/odoo/odoo/pull/153700 Part 7: https://github.com/odoo/odoo/pull/154054 Part 8: https://github.com/odoo/odoo/pull/154579 Part 9: https://github.com/odoo/odoo/pull/155073 Part 10
Original PR description
## Pull Request HOOT (PRHOOT) - part 18 Part 1: https://github.com/odoo/odoo/pull/152930 Part 2: https://github.com/odoo/odoo/pull/153018 Part 3: https://github.com/odoo/odoo/pull/153023 Part 4:…
## Pull Request HOOT (PRHOOT) - part 18 Part 1: https://github.com/odoo/odoo/pull/152930 Part 2: https://github.com/odoo/odoo/pull/153018 Part 3: https://github.com/odoo/odoo/pull/153023 Part 4: https://github.com/odoo/odoo/pull/153203 Part 5: https://github.com/odoo/odoo/pull/153425 Part 6: https://github.com/odoo/odoo/pull/153700 Part 7: https://github.com/odoo/odoo/pull/154054 Part 8: https://github.com/odoo/odoo/pull/154579 Part 9: https://github.com/odoo/odoo/pull/155073 Part 10: https://github.com/odoo/odoo/pull/155639 Part 11: https://github.com/odoo/odoo/pull/156255 / https://github.com/odoo/enterprise/pull/58135 Part 12: https://github.com/odoo/odoo/pull/156869 Part 13: https://github.com/odoo/odoo/pull/158384 / https://github.com/odoo/enterprise/pull/59019 Part 14: https://github.com/odoo/odoo/pull/158916 Part 15: https://github.com/odoo/odoo/pull/160292 / https://github.com/odoo/enterprise/pull/59971 Part 15.5: https://github.com/odoo/odoo/pull/166463 Part 16: https://github.com/odoo/odoo/pull/166311 Part 17: https://github.com/odoo/odoo/pull/168328 Community: https://github.com/odoo/odoo/pull/171004 This pull requests brings various improvements and fixes to Hoot and the Odoo unit test ecosystem. See the different commit messages for more details. Note: these changes are made in stable to avoid having to support multiple versions of the HOOT API. As such, these changes are intended to be strictly limited to unit tests as to not put the rest of the code base at risk. --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/enterprise#65727 Forward-Port-Of: odoo/enterprise#65657
…atch payment Create a branch company and switch to it Activate SEPA Direct Debit (SDD) and add Creditor Identifier Activate Batch Payments Add a SEPA bank account on the Bank journal Add a SEPA bank account on a partner Create SEPA mandate for the partner bank account on the Bank journal Make an invoice to the partner Register payment with payment method "SEPA Direct Debit" Go to Accounting>Customer>Payments Select the payment > Hit 'Create Batch' Validate creted batch Issue: A
Original PR description
…atch payment Create a branch company and switch to it Activate SEPA Direct Debit (SDD) and add Creditor Identifier Activate Batch Payments Add a SEPA bank account on the Bank journal Add a SEPA bank…
…atch payment
Create a branch company and switch to it
Activate SEPA Direct Debit (SDD) and add Creditor Identifier
Activate Batch Payments
Add a SEPA bank account on the Bank journal
Add a SEPA bank account on a partner
Create SEPA mandate for the partner bank account on the Bank journal
Make an invoice to the partner
Register payment with payment method "SEPA Direct Debit"
Go to Accounting>Customer>Payments
Select the payment > Hit 'Create Batch'
Validate creted batch
Issue: A traceback will raise
```py
File "[...]/enterprise/account_sepa_direct_debit/models/account_payment.py", line 117, in _sdd_xml_gen_header
create_xml_node_chain(InitgPty, ['Id','OrgId','Othr','Id'], company_id.sdd_creditor_identifier)
File "[...]/odoo/tools/xml_utils.py", line 109, in create_xml_node_chain
current_node.text = last_node_value
File "src/lxml/etree.pyx", line 1039, in lxml.etree._Element.text.__set__
File "src/lxml/apihelpers.pxi", line 747, in lxml.etree._setNodeText
File "src/lxml/apihelpers.pxi", line 735, in lxml.etree._createTextNode
File "src/lxml/apihelpers.pxi", line 1538, in lxml.etree._utf8
TypeError: Argument must be bytes or unicode, got 'bool'
```
This occurs because we assign the credit identifier to the branch
company, but when validating the batch the system exports the
sdd xml using the company found on the journal
https://github.com/odoo/enterprise/blob/88d25bd184585143f39011947263e928b14551e5/account_batch_payment/models/account_batch_payment.py#L343
so the parent company that have no Creditor Identifier defined
After adding the Creditor Identifier on the parent company and trying
again the validation an error will block the action
"""Trying to generate a Direct Debit XML file containing payments from
another company than that file's creditor."""
opw-3943103
Forward-Port-Of: odoo/enterprise#64277