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
Rafaela Alimentos
rafalim_cattle_account
Merge requests
!13
Change int to float (invoice_amount)
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Change int to float (invoice_amount)
8.0-minor-fix
into
8.0-stage
Overview
0
Commits
1
Pipelines
0
Changes
1
Merged
Eric Horvat
requested to merge
8.0-minor-fix
into
8.0-stage
6 years ago
Overview
0
Commits
1
Pipelines
0
Changes
1
Expand
0
0
Merge request reports
Compare
8.0-stage
8.0-stage (base)
and
latest version
latest version
8cd8c2f5
1 commit,
6 years ago
1 file
+
1
−
1
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
models/purchase_data.py
+
1
−
1
Options
@@ -28,7 +28,7 @@ class PurchaseData(models.Model):
invoiced
=
fields
.
Boolean
(
compute
=
'
_compute_invoiced
'
)
total_invoices
=
fields
.
Integer
(
compute
=
'
_get_invoice_count
'
,
string
=
'
Invoice Count
'
)
invoices_untaxed_total
=
fields
.
Integer
(
compute
=
'
_compute_invoice_total
'
,
string
=
'
Invoice Total
'
)
invoices_untaxed_total
=
fields
.
Float
(
compute
=
'
_compute_invoice_total
'
,
string
=
'
Invoice Total
'
)
@api.depends
(
'
invoice_ids
'
)
def
_get_invoice_count
(
self
):
Menu
Explore
Projects
Groups
Topics
Snippets