libracore / erpnextswiss

ERPNext application for Switzerland-specific use cases
GNU Affero General Public License v3.0
74 stars 63 forks source link

Contract DocType wird zerstört #105

Closed pgruener closed 2 years ago

pgruener commented 2 years ago

Expected behvauour

Bei Installation von erpnextswiss sollten nur Zusatzfunktionen hinzugefügt werden, nicht aber bestehende Funktionalität zerstört werden.

Actual behaviour

In der Basis ERPNext Installation ist im CRM Modul der DocType Contract vorhanden. Seit der Installation von erpnextswiss konnte ich keine Contracts mehr finden.

Dabei ist mir in der DocType Liste aufgefallen, dass es einen "neuen" Contract DocType im ERPNextSwiss Modul gibt.

Nach Deinstallation der App wurde der originale Contract leider auch nicht wieder hergestellt.

--> Wie können wir den originalen Contract DocType wieder herstellen?

Observed in (version)

Aktueller v13 Branch

Steps to reproduce

In ERPNext v13 Umgebung erpnextswiss v13 Branch installieren

lasalesi commented 2 years ago

Die Ursache ist ein Konflikt mit dem Contract Doctype, den Frappe später in ERPNext eingebaut hat. Zerstört wird dabei aber natürlich nichts. Wichtig ist, dass Contract in ERPNextSwiss mit der IT-Domain zusammenhängt: diese Domain muss aktiv sein, damit der Doctype verfügbar ist.

Domäne auswählen -> IT hinzufügen -> Contract ist da.

pgruener commented 2 years ago

Wie bekomme ich denn den ERPNext Contract DocType wieder in das System? Er ist ja jetzt weg.. darüber mache ich mir aktuell noch mehr Gedanken, als über den noch nicht genutzten DocType von ERPNextSwiss.

sabgaby commented 2 years ago

@pgruener Did you manage to find a solution? I am encountering the same issue myself. The Contract Doctype for the CRM is not available. I need to develop Contracts for Suppliers and Employees, so the way Contract is designed in ERPnext is more suitable.

@lasalesi, The Contract Doctype was overwritten by ERPnextSwiss as you can see in the screenshot. Please advise. FYI:

ERPNext: v13.33.0 (version-13)
ERPNextSwiss: v1.14.0 (v13)
Frappe Framework: v13.32.0 (version-13)
Screenshot 2022-06-23 at 17 50 47
pgruener commented 2 years ago

@sabgaby Unfortunately not in a good way. I uninstalled erpnextswiss, and after the next upgrade (probably dependent of the next "bench migrate") the original DocType was there again. But all data lost of course.. bad hustle to grab them from the backups... however.

sabgaby commented 2 years ago

@pgruener, well I contacted 2itea--our IT vendor servicing our ERPnext instance--and they fixed it 👍. The "did a bench migrate and changed the name of the erpnextswiss doctype contract."

pgruener commented 2 years ago

The "did a bench migrate and changed the name of the erpnextswiss doctype contract."

Ok, so I expect in an own fork?