eo_facture: remove Facture.account_on_previous_period field (#85549)
gitea/barbacompta/pipeline/head This commit looks good
Details
gitea/barbacompta/pipeline/head This commit looks good
Details
This commit is contained in:
parent
5610e646f7
commit
3f2648532d
|
@ -0,0 +1,26 @@
|
|||
# Generated by Django 3.2.23 on 2024-01-11 12:28
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
import eo_gestion.eo_facture.models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('eo_facture', '0021_migrate_data_to_accounting_year'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RemoveField(
|
||||
model_name='facture',
|
||||
name='account_on_previous_period',
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='facture',
|
||||
name='accounting_year',
|
||||
field=models.PositiveIntegerField(
|
||||
default=eo_gestion.eo_facture.models.current_year, verbose_name='Exercice'
|
||||
),
|
||||
),
|
||||
]
|
|
@ -429,9 +429,6 @@ class Facture(models.Model):
|
|||
)
|
||||
paid = models.BooleanField(blank=True, verbose_name='Soldée', default=False, db_index=True)
|
||||
creator = models.ForeignKey(User, verbose_name='Créateur', on_delete=models.CASCADE)
|
||||
account_on_previous_period = models.BooleanField(
|
||||
verbose_name='Mettre cette facture sur l\'exercice précédent', default=False
|
||||
)
|
||||
accounting_year = models.PositiveIntegerField(
|
||||
verbose_name='Exercice',
|
||||
default=current_year,
|
||||
|
|
1074
tests/fixture.json
1074
tests/fixture.json
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue