Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Tryton
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tryton
Tryton
Commits
28206da0
Commit
28206da0
authored
7 years ago
by
Cédric Krier
Browse files
Options
Downloads
Patches
Plain Diff
Add report_address property on sale
issue6438 review38331002
parent
1300d9f8
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CHANGELOG
+2
-0
2 additions, 0 deletions
CHANGELOG
sale.odt
+0
-0
0 additions, 0 deletions
sale.odt
sale.py
+7
-0
7 additions, 0 deletions
sale.py
with
9 additions
and
0 deletions
CHANGELOG
+
2
−
0
View file @
28206da0
* Add report_address property on sale
Version 4.4.0 - 2017-05-01
* Bug fixes (see mercurial logs for details)
* Add sale price on product view from line
...
...
This diff is collapsed.
Click to expand it.
sale.odt
+
0
−
0
View file @
28206da0
No preview for this file type
This diff is collapsed.
Click to expand it.
sale.py
+
7
−
0
View file @
28206da0
...
...
@@ -633,6 +633,13 @@
])
return
[(
None
,
''
)]
+
[(
m
.
model
,
m
.
name
)
for
m
in
models
]
@property
def
report_address
(
self
):
if
self
.
invoice_address
:
return
self
.
invoice_address
.
full_address
else
:
return
''
@classmethod
def
validate
(
cls
,
sales
):
super
(
Sale
,
cls
).
validate
(
sales
)
...
...
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