Compare commits
6 Commits
Reportes
...
4826687b3b
| Author | SHA1 | Date | |
|---|---|---|---|
| 4826687b3b | |||
| bd62abb43f | |||
| 18d06374fe | |||
| d5ca112bff | |||
| d1ad40203b | |||
| 9c368809f9 |
@@ -7,7 +7,7 @@
|
|||||||
[ ! -d "$SRC" ] && die "no se ubica ruta en SRC"
|
[ ! -d "$SRC" ] && die "no se ubica ruta en SRC"
|
||||||
|
|
||||||
# dependencias minimas
|
# dependencias minimas
|
||||||
pip3 install psycopg2 proteus inotify honcho
|
pip3 install psycopg2 proteus==6.8 inotify honcho
|
||||||
|
|
||||||
# instalar dependencias de tryton desde paquete
|
# instalar dependencias de tryton desde paquete
|
||||||
python3 setup.py install
|
python3 setup.py install
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ FROM node as builder-node
|
|||||||
|
|
||||||
ENV SERIES 6.8
|
ENV SERIES 6.8
|
||||||
RUN npm install -g bower
|
RUN npm install -g bower
|
||||||
RUN curl https://downloads.tryton.org/${SERIES}/tryton-sao-last.tgz | tar zxf - -C /
|
RUN curl https://downloads.tryton.org/${SERIES}/tryton-sao-6.8.4.tgz | tar zxf - -C /
|
||||||
RUN cd /package && bower install --allow-root
|
RUN cd /package && bower install --allow-root
|
||||||
|
|
||||||
FROM python:3.9-bullseye
|
FROM python:3.9-bullseye
|
||||||
|
|||||||
@@ -51,6 +51,11 @@ class Prospect(ModelSQL, ModelView, DeactivableMixin):
|
|||||||
def default_state(cls):
|
def default_state(cls):
|
||||||
return 'unassigned'
|
return 'unassigned'
|
||||||
|
|
||||||
|
@fields.depends('prospect_trace', 'contact_methods')
|
||||||
|
def on_change_contact_methods(self):
|
||||||
|
for contact in self.contact_methods:
|
||||||
|
contact.prospect_trace = self.prospect_trace
|
||||||
|
|
||||||
@fields.depends('city', 'department')
|
@fields.depends('city', 'department')
|
||||||
def on_change_city(self):
|
def on_change_city(self):
|
||||||
if self.city:
|
if self.city:
|
||||||
|
|||||||
@@ -365,7 +365,14 @@ Crear un usuario de rol administrador::
|
|||||||
>>> admin.user_admin == True
|
>>> admin.user_admin == True
|
||||||
True
|
True
|
||||||
|
|
||||||
|
Agregar un nuevo método de contacto desde prospecto
|
||||||
|
>>> contact_method = prospect1.contact_methods.new(value='0000000000', name='Nuevo', job='Puesto increíble')
|
||||||
|
>>> prospect1.save()
|
||||||
|
|
||||||
|
>>> prospect1.contact_methods[-1].value
|
||||||
|
'0000000000'
|
||||||
|
>>> prospect_trace.prospect_contacts[-1].value
|
||||||
|
'0000000000'
|
||||||
|
|
||||||
--------
|
--------
|
||||||
Reportes
|
Reportes
|
||||||
|
|||||||
Reference in New Issue
Block a user