Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
account_import_clearance
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
Jenck
account_import_clearance
Commits
11be29f9
Commit
11be29f9
authored
6 years ago
by
Gabriel Davini
Browse files
Options
Downloads
Plain Diff
Merge branch '8.0-stage' into 8.0-dedup_impo_expo
parents
ed7c2502
b3b810d4
Branches
8.0-dedup_impo_expo
Branches containing commit
No related tags found
2 merge requests
!38
8.0 stage
,
!26
8.0 add multicurrency
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
models/invoice.py
+3
-4
3 additions, 4 deletions
models/invoice.py
with
3 additions
and
4 deletions
models/invoice.py
+
3
−
4
View file @
11be29f9
...
...
@@ -19,7 +19,7 @@
#
##############################################################################
from
openerp
import
models
,
fields
,
api
,
exceptions
,
_
from
openerp
import
_
,
api
,
fields
,
models
class
account_invoice
(
models
.
Model
):
...
...
@@ -35,8 +35,7 @@ class account_invoice(models.Model):
al despacho de importacion.
"""
clearance_model
=
self
.
env
[
'
import.clearance
'
]
res
=
super
(
account_invoice
,
self
).
\
action_move_create
()
res
=
super
(
account_invoice
,
self
).
action_move_create
()
# Obtenemos el move, si es un clearance
for
invoice
in
self
:
...
...
@@ -44,4 +43,4 @@ class account_invoice(models.Model):
if
clearances
:
clearances
.
write
({
'
account_move_ids
'
:
[(
4
,
invoice
.
move_id
.
id
,
_
)]})
account_invoice
()
return
res
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