Bug Fixes

This commit is contained in:
jopster 2025-04-01 10:57:17 +02:00
parent 5a181ae12d
commit 819a3ce506
7 changed files with 20 additions and 3 deletions

View File

@ -995,3 +995,16 @@ class dsscontracts(models.Model):
def pyaction_vnoxx_action3(self):
return ""
def pyaction_dss_contract_update_partner(self):
self.client.company_name = self.client_short_company
self.client.dsspartner_vorname = self.client_short_vorname
self.client.dsspartner_name = self.client_short_name
self.client.dsspartner = True,
self.client.dsspartner_werbung = True
self.client.street = self.client_short_strasse
self.client.city = self.client_short_ort
self.client.zip = self.client_short_plz
self.client.phone = self.client_short_telefon
self.client.mobile = self.client_short_mobil
self.client.email = self.client_short_email

View File

@ -1,3 +1,4 @@
import uuid
from odoo import api, fields, models, _
from odoo import tools

View File

@ -413,7 +413,7 @@
</group>
</group>
<div class="row">
<span><bold>² - Kunde wird über Kontaktmanager verwaltet .. Bitte Daten dort ändern ... </bold></span>
<span><bold>² - Kunde wird über Kontaktmanager verwaltet .. Bitte Daten unter Interne Informationen ändern und Kunde Updaten ... </bold></span>
</div>
</div>
<div class="row" string="Kundendaten Schnellanlage" name="client_short_edit" attrs="{'invisible':[('client','!=',False)]}">
@ -540,7 +540,7 @@
</div>
<div class="col-4">
<group>
<field name="start_date" string="1.Kampagne - Datum 1. Ausstrahlung "/>
<field name="start_date" string="Vertragsstart - Datum 1. Ausstrahlung "/>
</group>
</div>
</div>
@ -896,6 +896,7 @@
</div>
</div>
</div>
<button string="Kunde updaten" name="pyaction_dss_contract_update_partner" type="object" class="btn-primary o_open_tasks"/>
</page>
</notebook>
</page>

View File

@ -24,6 +24,7 @@
<field name="priority" eval="17"/>
<field name="arch" type="xml">
<tree string="Vertragsuebersicht">
<field name="uuid"/>
</tree>
</field>
</record>
@ -36,6 +37,7 @@
<form>
<sheet>
<group name="interval" string="Intervaldaten">
<field name="uuid"/>
</group>
</sheet>
<div class="oe_chatter">