Skip to content

[FIX] test_industry_real_estate: fix x_rental_contract_id test#1287

Closed
frva-odoo wants to merge 1 commit into
odoo:17.0from
odoo-dev:17.0-fix-real-estate-test-frva
Closed

[FIX] test_industry_real_estate: fix x_rental_contract_id test#1287
frva-odoo wants to merge 1 commit into
odoo:17.0from
odoo-dev:17.0-fix-real-estate-test-frva

Conversation

@frva-odoo

Copy link
Copy Markdown
Contributor

Before this commit, the test failed because of one sale order demo data because its end_date was "30-10-{current_year}", making the related account_analytic_account missing a valid x_rental_contract_id by computation. Instead of changing it, we complete the test taking into account the account_analytic_account that are not currently linked like this one to any sale order. The test execute like before if there is one, otherwise we check that the sale order is either finished or to be started in the future.

Before this commit, the test failed because of one sale order demo data because its end_date was "30-10-{current_year}", making the related account_analytic_account missing a valid x_rental_contract_id by computation.
Instead of changing it, we complete the test taking into account the account_analytic_account that are not currently linked like this one to any sale order.
The test execute like before if there is one, otherwise we check that the sale order is either finished or to be started in the future.
@robodoo

robodoo commented Oct 30, 2025

Copy link
Copy Markdown
Collaborator

Pull request status dashboard

@frva-odoo frva-odoo requested a review from vava-odoo October 30, 2025 10:02
@vava-odoo vava-odoo marked this pull request as ready for review October 30, 2025 10:13

@vava-odoo vava-odoo left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

robodoo pushed a commit that referenced this pull request Oct 30, 2025
Before this commit, the test failed because of one sale order demo data because its end_date was "30-10-{current_year}", making the related account_analytic_account missing a valid x_rental_contract_id by computation.
Instead of changing it, we complete the test taking into account the account_analytic_account that are not currently linked like this one to any sale order.
The test execute like before if there is one, otherwise we check that the sale order is either finished or to be started in the future.

closes #1287

Signed-off-by: Vallaeys Valentin (vava) <vava@odoo.com>
@robodoo robodoo closed this Oct 30, 2025
@fw-bot fw-bot deleted the 17.0-fix-real-estate-test-frva branch November 6, 2025 10:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants