Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
health_insurance
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
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
sofsa
health_insurance
Commits
df56a81f
Commit
df56a81f
authored
4 years ago
by
Marco Folco
Browse files
Options
Downloads
Plain Diff
Merge branch 'minor_changes' into '12.0-stage'
[MOD] sequence [MOD] py See merge request
!21
parents
92f7bc7a
6f978ddf
No related branches found
Branches containing commit
No related tags found
1 merge request
!21
[MOD] sequence [MOD] py
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
data/res_partner_data.xml
+1
-2
1 addition, 2 deletions
data/res_partner_data.xml
models/health_insurance.py
+1
-1
1 addition, 1 deletion
models/health_insurance.py
with
2 additions
and
3 deletions
data/res_partner_data.xml
+
1
−
2
View file @
df56a81f
...
...
@@ -20,8 +20,7 @@
</record>
<record
id=
"seq_res_partner_insurance_ref"
model=
"ir.sequence"
>
<field
name=
"name"
>
REF sequence insurance
</field>
<field
name=
"code"
>
res.partner.patient
</field>
<field
name=
"prefix"
>
in
</field>
<field
name=
"code"
>
res.partner.insurance
</field>
<field
name=
"padding"
>
5
</field>
</record>
</data>
...
...
This diff is collapsed.
Click to expand it.
models/health_insurance.py
+
1
−
1
View file @
df56a81f
...
...
@@ -51,7 +51,7 @@ class Partner(models.Model):
@api.model
def
create
(
self
,
vals
):
if
'
ref
'
not
in
vals
.
keys
()
and
vals
.
get
(
'
partner_type
'
,
''
)
==
'
insurance
'
:
if
not
vals
[
'
ref
'
]
and
self
.
env
.
context
[
'
default_
partner_type
'
]
==
'
insurance
'
:
vals
[
'
ref
'
]
=
str
(
self
.
env
[
'
ir.sequence
'
].
next_by_code
(
'
res.partner.insurance
'
))
return
super
(
Partner
,
self
).
create
(
vals
)
...
...
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