Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
argensun
partner_crud
Merge requests
!10
[fix] mig
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
[fix] mig
fix_mig
into
12.0-stage
Overview
0
Commits
1
Pipelines
0
Changes
3
Merged
Santiago Apel
requested to merge
fix_mig
into
12.0-stage
2 years ago
Overview
0
Commits
1
Pipelines
0
Changes
3
Expand
0
0
Merge request reports
Compare
12.0-stage
12.0-stage (base)
and
latest version
latest version
e851dc8b
1 commit,
2 years ago
3 files
+
88
−
91
Expand all files
Preferences
File browser
List view
Tree view
Compare changes
Inline
Side-by-side
Show whitespace changes
Show one file at a time
Search (e.g. *.vue) (Ctrl+P)
models/supplier_type.py
+
1
−
1
Options
@@ -39,7 +39,7 @@ class SupplierType(models.Model):
count
=
len
(
record
.
supplier_ids
)
record
.
partner_count
=
count
partner_count
=
fields
.
Integer
(
compute
=
count_partners
)
partner_count
=
fields
.
Integer
(
compute
=
count_partners
,
string
=
"
Qty
"
)
supplier_ids
=
fields
.
One2many
(
'
res.partner
'
,
'
supplier_type_id
'
)
customer_ids
=
fields
.
One2many
(
'
res.partner
'
,
'
customer_type_id
'
)
Menu
Explore
Projects
Groups
Topics
Snippets