Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Owo Sugiana
/
warga
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 49cf39c9
authored
Jun 16, 2023
by
Catat warga oleh pengurus RT
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Sertakan user pengundang pada calon user agar bisa ditelusur
1 parent
41f2de79
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
6 deletions
warga/__manifest__.py
warga/security/ir_rule.xml
warga/views/rt.xml
warga/wizard/undangan.py
warga/__manifest__.py
View file @
49cf39c
...
@@ -8,6 +8,7 @@
...
@@ -8,6 +8,7 @@
'depends'
:
[
'depends'
:
[
'base'
,
'mail'
,
'wilayah'
],
'base'
,
'mail'
,
'wilayah'
],
'data'
:
[
'data'
:
[
'data/res_partner_category.xml'
,
'views/res_company.xml'
,
'views/res_company.xml'
,
'views/res_partner.xml'
,
'views/res_partner.xml'
,
'views/rt.xml'
,
'views/rt.xml'
,
...
@@ -15,6 +16,5 @@
...
@@ -15,6 +16,5 @@
'security/ir.model.access.csv'
,
'security/ir.model.access.csv'
,
'security/ir_rule.xml'
,
'security/ir_rule.xml'
,
'data/mail_template_data.xml'
,
'data/mail_template_data.xml'
,
'data/res_partner_category.xml'
,
]
]
}
}
warga/security/ir_rule.xml
View file @
49cf39c
...
@@ -16,11 +16,9 @@
...
@@ -16,11 +16,9 @@
<field
name=
"groups"
eval=
"[Command.link(ref('warga.group_warga'))]"
/>
<field
name=
"groups"
eval=
"[Command.link(ref('warga.group_warga'))]"
/>
</record>
</record>
<record
model=
"ir.rule"
id=
"base.res_partner_rule_private_employee"
>
<record
model=
"ir.rule"
id=
"base.res_partner_rule_private_employee"
>
<field
name=
"groups"
eval=
"[Command.unlink(ref('base.group_user'))]"
/>
<field
name=
"groups"
eval=
"[Command.unlink(ref('base.group_user')), Command.link(ref('base.group_erp_manager'))]"
/>
<field
name=
"groups"
eval=
"[Command.link(ref('base.group_erp_manager'))]"
/>
</record>
</record>
<record
model=
"ir.ui.menu"
id=
"mail.menu_root_discuss"
>
<record
model=
"ir.ui.menu"
id=
"mail.menu_root_discuss"
>
<field
name=
"groups_id"
eval=
"[Command.unlink(ref('base.group_user'))]"
/>
<field
name=
"groups_id"
eval=
"[Command.unlink(ref('base.group_user')), Command.link(ref('base.group_erp_manager'))]"
/>
<field
name=
"groups_id"
eval=
"[Command.link(ref('base.group_erp_manager'))]"
/>
</record>
</record>
</odoo>
</odoo>
warga/views/rt.xml
View file @
49cf39c
...
@@ -51,6 +51,7 @@
...
@@ -51,6 +51,7 @@
'default_type':
'other',
'default_type':
'other',
'default_hubungan_keluarga':
'Kepala
Keluarga',
'default_hubungan_keluarga':
'Kepala
Keluarga',
'default_street':
street,
'default_street':
street,
'default_nationality_id':
country_id,
'default_country_id':
country_id,
'default_country_id':
country_id,
'default_state_id':
state_id,
'default_state_id':
state_id,
'default_kabupaten_id':
kabupaten_id,
'default_kabupaten_id':
kabupaten_id,
...
@@ -104,6 +105,7 @@
...
@@ -104,6 +105,7 @@
'default_category_id':
[3],
'default_category_id':
[3],
'default_type':
'other',
'default_type':
'other',
'default_street':
street,
'default_street':
street,
'default_nationality_id':
country_id,
'default_country_id':
country_id,
'default_country_id':
country_id,
'default_state_id':
state_id,
'default_state_id':
state_id,
'default_kabupaten_id':
kabupaten_id,
'default_kabupaten_id':
kabupaten_id,
...
...
warga/wizard/undangan.py
View file @
49cf39c
...
@@ -33,7 +33,7 @@ class KirimUndangan(models.TransientModel):
...
@@ -33,7 +33,7 @@ class KirimUndangan(models.TransientModel):
raise
UserError
(
raise
UserError
(
_
(
'The template "Portal: new user" not found for sending '
_
(
'The template "Portal: new user" not found for sending '
'email to the portal user.'
))
'email to the portal user.'
))
d
=
dict
(
name
=
self
.
name
,
email
=
self
.
email
)
d
=
dict
(
name
=
self
.
name
,
email
=
self
.
email
,
user_id
=
self
.
env
.
user
.
id
)
partner
=
self
.
env
[
'res.partner'
]
.
create
(
d
)
partner
=
self
.
env
[
'res.partner'
]
.
create
(
d
)
lang
=
partner
.
sudo
()
.
lang
lang
=
partner
.
sudo
()
.
lang
portal_url
=
partner
.
with_context
(
portal_url
=
partner
.
with_context
(
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment