add traslations
This commit is contained in:
parent
b387f2b10b
commit
7cab021a5e
@ -233,7 +233,7 @@ class OpticalEquipment(DeactivableMixin, Workflow, ModelSQL, ModelView):
|
|||||||
@fields.depends('propietary', 'maintenance_frequency')
|
@fields.depends('propietary', 'maintenance_frequency')
|
||||||
def on_change_propietary(self):
|
def on_change_propietary(self):
|
||||||
if self.propietary:
|
if self.propietary:
|
||||||
if self.propietary.client_type == 'ips':
|
if self.propietary.customer_type == 'ips':
|
||||||
self.maintenance_frequency = "6"
|
self.maintenance_frequency = "6"
|
||||||
else:
|
else:
|
||||||
self.maintenance_frequency = "12"
|
self.maintenance_frequency = "12"
|
||||||
@ -374,7 +374,7 @@ class NewPropietary(Wizard):
|
|||||||
equipment.propietarys += (equipment.propietary,)
|
equipment.propietarys += (equipment.propietary,)
|
||||||
equipment.propietary = new_propietary
|
equipment.propietary = new_propietary
|
||||||
equipment.propietary_address = new_address
|
equipment.propietary_address = new_address
|
||||||
equipment.maintenance_frequency = "6" if new_propietary.client_type == 'ips' else "12"
|
equipment.maintenance_frequency = "6" if new_propietary.customer_type == 'ips' else "12"
|
||||||
equipment.save()
|
equipment.save()
|
||||||
|
|
||||||
|
|
||||||
|
18
locale/es.po
18
locale/es.po
@ -1437,4 +1437,20 @@ msgstr "Cambiar Propietario al Servicio de Mantenimiento"
|
|||||||
|
|
||||||
msgctxt "model:ir.action,name:maintenance_create_contract"
|
msgctxt "model:ir.action,name:maintenance_create_contract"
|
||||||
msgid "Create Contract"
|
msgid "Create Contract"
|
||||||
msgstr "Crear Contrato"
|
msgstr "Crear Contrato"
|
||||||
|
|
||||||
|
msgctxt "model:optical_equipment.use_pattern,name:schematic_eye"
|
||||||
|
msgid "Schematic Eye"
|
||||||
|
msgstr "Ojo Esquemático"
|
||||||
|
|
||||||
|
msgctxt "model:optical_equipment.use_pattern,name:trial_lens"
|
||||||
|
msgid "Trial Lens"
|
||||||
|
msgstr "Lentes de Prueba"
|
||||||
|
|
||||||
|
msgctxt "model:optical_equipment.use_pattern,name:calibration_weights"
|
||||||
|
msgid "Calibration Weights"
|
||||||
|
msgstr "Pesas de Calibración"
|
||||||
|
|
||||||
|
msgctxt "model:optical_equipment.use_pattern,name:calibration_spheres"
|
||||||
|
msgid "Calibration Spheres"
|
||||||
|
msgstr "Esferas de Calibración"
|
@ -14,7 +14,7 @@ from trytond.modules.product import price_digits
|
|||||||
import datetime
|
import datetime
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
|
|
||||||
#from scipy.stats import t
|
from scipy.stats import t
|
||||||
import matplotlib.pyplot as plt
|
import matplotlib.pyplot as plt
|
||||||
import numpy as np
|
import numpy as np
|
||||||
import math as mt
|
import math as mt
|
||||||
|
10
sale.py
10
sale.py
@ -34,13 +34,13 @@ class Sale(metaclass=PoolMeta):
|
|||||||
'readonly': Eval('state') != 'draft'},
|
'readonly': Eval('state') != 'draft'},
|
||||||
depends=['sale_type'])
|
depends=['sale_type'])
|
||||||
|
|
||||||
#contract_ref = fields.Reference("Contract Base", selection='get_origin_contract',
|
contract_ref = fields.Reference("Contract Base", selection='get_origin_contract',
|
||||||
#domain=[('party', '=', Eval('party')),
|
#domain=[('party', '=', Eval('party')),
|
||||||
# ('state', '=', 'closed')],
|
# ('state', '=', 'closed')],
|
||||||
# states={'invisible': (Eval('sale_type') != 'maintenance')},
|
states={'invisible': (Eval('sale_type') != 'maintenance')},
|
||||||
# search_context={
|
search_context={
|
||||||
# 'related_party': Eval('party'),
|
'related_party': Eval('party'),
|
||||||
# },)
|
},)
|
||||||
agended = fields.Boolean("Scheduling",states={
|
agended = fields.Boolean("Scheduling",states={
|
||||||
'invisible': (Eval('sale_type') != 'maintenance'),
|
'invisible': (Eval('sale_type') != 'maintenance'),
|
||||||
'readonly': True})
|
'readonly': True})
|
||||||
|
Loading…
Reference in New Issue
Block a user