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
!197
[FIX]No remove summary lines when state is manage_romaneo
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
[FIX]No remove summary lines when state is manage_romaneo
12.0-fix-summary-lines
into
12.0
Overview
0
Commits
1
Pipelines
0
Changes
1
Merged
Gastón Bertolani
requested to merge
12.0-fix-summary-lines
into
12.0
2 years ago
Overview
0
Commits
1
Pipelines
0
Changes
1
Expand
0
0
Merge request reports
Compare
12.0
12.0 (base)
and
latest version
latest version
17f88159
1 commit,
2 years ago
1 file
+
10
−
0
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
+
10
−
0
Options
@@ -8,6 +8,8 @@
from
odoo
import
_
,
api
,
fields
,
models
from
odoo.addons.rafalim_cattle_ranch.models.purchase_data
import
manage_romaneo_state
import
logging
@@ -147,3 +149,11 @@ class PurchaseData(models.Model):
act_window
[
"
view_mode
"
]
=
"
tree,form
"
return
act_window
@api.multi
def
weight_ranking
(
self
):
# Moved from rafalim_cattle_ranch
# No remove summary_lines
if
self
.
state
==
manage_romaneo_state
and
self
.
invoice_ids
:
return
True
return
super
(
PurchaseData
,
self
).
weight_ranking
()
Menu
Explore
Projects
Groups
Topics
Snippets