Skip to content

[17.0] [IMP] fieldservice_account_analytic: use python contrains instead of validation at creation for analytic lines - #1514

Open
rrebollo wants to merge 1 commit into
OCA:17.0from
BinhexTeam:17.0-imp-fieldservice_account_analytic-use-python-contrains-instead-of-validation-on-create
Open

[17.0] [IMP] fieldservice_account_analytic: use python contrains instead of validation at creation for analytic lines#1514
rrebollo wants to merge 1 commit into
OCA:17.0from
BinhexTeam:17.0-imp-fieldservice_account_analytic-use-python-contrains-instead-of-validation-on-create

Conversation

@rrebollo

Copy link
Copy Markdown
Contributor

I found this issue after seeing the following warning:

WARNING ? odoo.api.create: The model odoo.addons.fieldservice_account_analytic.models.analytic_account is not overriding the create method in batch

When refactoring to use @api.model_create_multi, it became clear that a Python constraint is the more appropriate solution.

@BinhexTeam T18741

@OCA-git-bot

Copy link
Copy Markdown
Contributor

Hi @brian10048, @osimallen, @bodedra,
some modules you are maintaining are being modified, check this out!

@rrebollo

Copy link
Copy Markdown
Contributor Author

Failing tests are not related to this addon.

@max3903 max3903 added this to the 17.0 milestone Jun 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants