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

l10n_it_fatturapa: mail.activity.mixin inheritance #4620

Open
1 of 3 tasks
francesco-ooops opened this issue Feb 17, 2025 · 0 comments · Fixed by #4619
Open
1 of 3 tasks

l10n_it_fatturapa: mail.activity.mixin inheritance #4620

francesco-ooops opened this issue Feb 17, 2025 · 0 comments · Fixed by #4619
Labels
16.0 bug needs porting This issue has already been resolved for some version

Comments

@francesco-ooops
Copy link
Contributor

francesco-ooops commented Feb 17, 2025

Impostando un'azione automatica legata allo stato di invio della fattura ho ottenuto questo errore:

File "/usr/lib/python3/dist-packages/odoo/addons/base_automation/models/base_automation.py", line 349, in write
action._process(records, domain_post=domain_post)
File "/usr/lib/python3/dist-packages/odoo/addons/base_automation/models/base_automation.py", line 274, in _process
raise e
File "/usr/lib/python3/dist-packages/odoo/addons/base_automation/models/base_automation.py", line 271, in _process
action_server.sudo().with_context(**ctx).run()
File "/opt/odoo/custom/oca/server-ux/base_action_visibility_restriction/models/ir_actions.py", line 53, in run
return super().run()
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_actions.py", line 644, in run
res = runner(run_self, eval_context=eval_context)
File "/usr/lib/python3/dist-packages/odoo/addons/mail/models/ir_actions.py", line 134, in _run_action_next_activity
record.activity_schedule(**vals)
AttributeError: 'fatturapa.attachment.out' object has no attribute 'activity_schedule'

Il codice che mi hanno segnalato è: https://github.com/odoo/odoo/blob/3082f1fde54c5c18375962a0809d86448bc1702f/addons/mail/models/ir_actions_server.py#L283

e l'errore deriva dal fatto che fatturapa.out eredita gli attachments, che a loro volta non ereditano ir_mail_activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
16.0 bug needs porting This issue has already been resolved for some version
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant