Bonjour,
Je me permets de vous remonter un bug d'actualisation au niveau des catégories de charges ("Copropriété - Les catégrories de charges").
Diacamma Syndic Version 2.1.6.16123016 - Linux Mint 18.1
En effet, lorsque vous créez et supprimez une catégorie de charges, la nouvelle catégorie de charges n'apparaît pas toujours dans le menu déroulant "Comptabilité analytique" d'une écriture comptable. Par contre, celle supprimée apparaît toujours dans la liste.
Sur certaines catégories de charges dont je veux renseigner le budget, le message d'erreur suivant s'affiche:
UNIQUE constraint failed: accounting_costaccounting.name
Onglet Pile d'appel:
/var/lucterios2/virtual_for_lucterios/lib/python3.5/site-packages/django/views/generic/base.py in line 88 in dispatch : return handler(request, *args, **kwargs)
/var/lucterios2/virtual_for_lucterios/lib/python3.5/site-packages/lucterios/framework/xferbasic.py in line 318 in post : return self.get(request, *args, **kwargs)
/var/lucterios2/virtual_for_lucterios/lib/python3.5/site-packages/lucterios/framework/xferbasic.py in line 309 in get : self.fillresponse(**self._get_params())
/var/lucterios2/virtual_for_lucterios/lib/python3.5/site-packages/diacamma/condominium/views_classload.py in line 147 in fillresponse : XferShowEditor.fillresponse(self)
/var/lucterios2/virtual_for_lucterios/lib/python3.5/site-packages/lucterios/framework/xferadvance.py in line 208 in fillresponse : self.fill_from_model(1, max_row, True)
/var/lucterios2/virtual_for_lucterios/lib/python3.5/site-packages/lucterios/framework/xfergraphic.py in line 574 in fill_from_model : col, row, readonly, current_desc_fields)
/var/lucterios2/virtual_for_lucterios/lib/python3.5/site-packages/lucterios/framework/xfergraphic.py in line 541 in filltab_from_model : comp = self.get_reading_comp(field_name)
/var/lucterios2/virtual_for_lucterios/lib/python3.5/site-packages/lucterios/framework/xfergraphic.py in line 387 in get_reading_comp : sub_value = getattr(sub_value, fieldname)
/var/lucterios2/virtual_for_lucterios/lib/python3.5/site-packages/diacamma/condominium/models.py in line 123 in current_cost_accounting : new_set_cost = self.create_new_cost()
/var/lucterios2/virtual_for_lucterios/lib/python3.5/site-packages/diacamma/condominium/models.py in line 149 in create_new_cost : last_costaccounting=last_cost, is_protected=True)
/var/lucterios2/virtual_for_lucterios/lib/python3.5/site-packages/django/db/models/manager.py in line 85 in manager_method : return getattr(self.get_queryset(), name)(*args, **kwargs)
/var/lucterios2/virtual_for_lucterios/lib/python3.5/site-packages/django/db/models/query.py in line 399 in create : obj.save(force_insert=True, using=self.db)
/var/lucterios2/virtual_for_lucterios/lib/python3.5/site-packages/django/db/models/base.py in line 796 in save : force_update=force_update, update_fields=update_fields)
/var/lucterios2/virtual_for_lucterios/lib/python3.5/site-packages/django/db/models/base.py in line 824 in save_base : updated = self._save_table(raw, cls, force_insert, force_update, using, update_fields)
/var/lucterios2/virtual_for_lucterios/lib/python3.5/site-packages/django/db/models/base.py in line 908 in _save_table : result = self._do_insert(cls._base_manager, using, fields, update_pk, raw)
/var/lucterios2/virtual_for_lucterios/lib/python3.5/site-packages/django/db/models/base.py in line 947 in _do_insert : using=using, raw=raw)
/var/lucterios2/virtual_for_lucterios/lib/python3.5/site-packages/django/db/models/manager.py in line 85 in manager_method : return getattr(self.get_queryset(), name)(*args, **kwargs)
/var/lucterios2/virtual_for_lucterios/lib/python3.5/site-packages/django/db/models/query.py in line 1045 in _insert : return query.get_compiler(using=using).execute_sql(return_id)
/var/lucterios2/virtual_for_lucterios/lib/python3.5/site-packages/django/db/models/sql/compiler.py in line 1054 in execute_sql : cursor.execute(sql, params)
/var/lucterios2/virtual_for_lucterios/lib/python3.5/site-packages/django/db/backends/utils.py in line 79 in execute : return super(CursorDebugWrapper, self).execute(sql, params)
/var/lucterios2/virtual_for_lucterios/lib/python3.5/site-packages/django/db/backends/utils.py in line 64 in execute : return self.cursor.execute(sql, params)
/var/lucterios2/virtual_for_lucterios/lib/python3.5/site-packages/django/db/utils.py in line 94 in __exit__ : six.reraise(dj_exc_type, dj_exc_value, traceback)
/var/lucterios2/virtual_for_lucterios/lib/python3.5/site-packages/django/utils/six.py in line 685 in reraise : raise value.with_traceback(tb)
/var/lucterios2/virtual_for_lucterios/lib/python3.5/site-packages/django/db/backends/utils.py in line 64 in execute : return self.cursor.execute(sql, params)
/var/lucterios2/virtual_for_lucterios/lib/python3.5/site-packages/django/db/backends/sqlite3/base.py in line 337 in execute : return Database.Cursor.execute(self, query, params)
Onglet Extra:
IntegrityError
Onglet Requête:
diacamma.condominium/setShow?&set=18&show_inactive=n
Voilà j'espère que cela peut vous aider à régler le problème.
Merci