2018-12-31 22:58:37 +00:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
# Generated by Django 1.10.7 on 2018-12-29 21:03
|
|
|
|
from __future__ import unicode_literals
|
|
|
|
|
|
|
|
from django.db import migrations, models
|
|
|
|
import django.db.models.deletion
|
|
|
|
|
|
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
|
2019-11-04 16:55:03 +00:00
|
|
|
dependencies = [("cotisations", "0036_custominvoice_remark")]
|
2018-12-31 22:58:37 +00:00
|
|
|
|
|
|
|
operations = [
|
|
|
|
migrations.CreateModel(
|
2019-11-04 16:55:03 +00:00
|
|
|
name="CostEstimate",
|
2018-12-31 22:58:37 +00:00
|
|
|
fields=[
|
2019-11-04 16:55:03 +00:00
|
|
|
(
|
|
|
|
"custominvoice_ptr",
|
|
|
|
models.OneToOneField(
|
|
|
|
auto_created=True,
|
|
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
|
|
parent_link=True,
|
|
|
|
primary_key=True,
|
|
|
|
serialize=False,
|
|
|
|
to="cotisations.CustomInvoice",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
("validity", models.DurationField(verbose_name="Period of validity")),
|
|
|
|
(
|
|
|
|
"final_invoice",
|
|
|
|
models.ForeignKey(
|
|
|
|
blank=True,
|
|
|
|
null=True,
|
|
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
|
|
related_name="origin_cost_estimate",
|
|
|
|
to="cotisations.CustomInvoice",
|
|
|
|
),
|
|
|
|
),
|
2018-12-31 22:58:37 +00:00
|
|
|
],
|
|
|
|
options={
|
2019-11-04 16:55:03 +00:00
|
|
|
"permissions": (
|
|
|
|
("view_costestimate", "Can view a cost estimate object"),
|
|
|
|
)
|
2018-12-31 22:58:37 +00:00
|
|
|
},
|
2019-11-04 16:55:03 +00:00
|
|
|
bases=("cotisations.custominvoice",),
|
|
|
|
)
|
2018-12-31 22:58:37 +00:00
|
|
|
]
|