Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Odoo CE
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Coopdevs
Comunitats Energètiques
Odoo CE
Commits
2fb35f78
Commit
2fb35f78
authored
1 year ago
by
daniquilez
Browse files
Options
Downloads
Patches
Plain Diff
add background job for custom methods executed after company creation
parent
4afe45b1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!253
[REL] Release 06/11/23
,
!191
V1 imrpvements to CompanyEasyCreation wizard (CRM Lead execution)🙋
Pipeline
#59145
passed
1 year ago
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
energy_communities/security/res_users_role_data.xml
+1
-0
1 addition, 0 deletions
energy_communities/security/res_users_role_data.xml
energy_communities/wizards/multicompany_easy_creation.py
+4
-1
4 additions, 1 deletion
energy_communities/wizards/multicompany_easy_creation.py
with
5 additions
and
1 deletion
energy_communities/security/res_users_role_data.xml
+
1
−
0
View file @
2fb35f78
...
...
@@ -173,6 +173,7 @@
(4, ref('crm.group_use_lead')),
(4, ref('mass_mailing.group_mass_mailing_user')),
(4, ref('l10n_es_aeat.group_account_aeat'))
(4, ref('queue_job.group_queue_job_manager'))
]"
/>
</record>
...
...
This diff is collapsed.
Click to expand it.
energy_communities/wizards/multicompany_easy_creation.py
+
4
−
1
View file @
2fb35f78
...
...
@@ -208,6 +208,10 @@ class AccountMulticompanyEasyCreationWiz(models.TransientModel):
def
action_accept
(
self
):
action
=
super
().
action_accept
()
self
.
with_delay
().
_after_action_accept_hook
()
return
action
def
_after_action_accept_hook
(
self
):
if
self
.
property_cooperator_account
:
self
.
set_cooperative_account
()
self_new_company
=
self
.
with_company
(
self
.
new_company_id
)
...
...
@@ -216,7 +220,6 @@ class AccountMulticompanyEasyCreationWiz(models.TransientModel):
self
.
create_capital_share_product_template
()
self
.
add_company_managers
()
self
.
add_company_log
()
return
action
def
create_company
(
self
):
self
.
new_company_id
=
(
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment