Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
re2o
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nounous
re2o
Commits
74a2e265
Commit
74a2e265
authored
Aug 25, 2018
by
Hugo LEVY-FALK
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Donne la bonne date lors de l'import des factures dans BaseInvoice.
parent
5208a9ca
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
cotisations/migrations/0032_custom_invoice.py
cotisations/migrations/0032_custom_invoice.py
+3
-1
No files found.
cotisations/migrations/0032_custom_invoice.py
View file @
74a2e265
...
...
@@ -14,7 +14,9 @@ def reattribute_ids(apps, schema_editor):
BaseInvoice
=
apps
.
get_model
(
'cotisations'
,
'BaseInvoice'
)
for
f
in
Facture
.
objects
.
all
():
base
=
BaseInvoice
.
objects
.
create
(
id
=
f
.
pk
,
date
=
f
.
date
)
base
=
BaseInvoice
.
objects
.
create
(
id
=
f
.
pk
)
base
.
date
=
f
.
date
base
.
save
()
f
.
baseinvoice_ptr
=
base
f
.
save
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment