add report sale_internal
This commit is contained in:
parent
88b413eec9
commit
52bc550098
@ -324,13 +324,16 @@ class ChangePropietary(ModelView):
|
||||
'Change of Propietary Equipment'
|
||||
__name__ = 'optical_equipment.change_propietary.form'
|
||||
|
||||
old_propietary = fields.Many2One('party.party', 'Old Propietary')
|
||||
old_propietary = fields.Many2One('party.party', 'Old Propietary',
|
||||
states={'required': True})
|
||||
equipments = fields.Many2Many('optical_equipment.equipment', None, None, "Equipments",
|
||||
domain=[('propietary', '=', Eval('old_propietary'))],
|
||||
depends=['old_propietary'])
|
||||
new_propietary = fields.Many2One('party.party', "New Propietary")
|
||||
new_propietary = fields.Many2One('party.party', "New Propietary",
|
||||
states={'required': True})
|
||||
new_address = fields.Many2One('party.address', "New Address", required=True,
|
||||
domain=[('party', '=', Eval('new_propietary'))],)
|
||||
domain=[('party', '=', Eval('new_propietary'))],
|
||||
states={'required': True})
|
||||
change_date = fields.Date("Change Date", readonly=True)
|
||||
|
||||
@classmethod
|
||||
|
@ -426,7 +426,6 @@ msgctxt "field:optical_equipment.contract,invoice_address:"
|
||||
msgid "Invoice Address"
|
||||
msgstr "Dirección de Facturación"
|
||||
|
||||
|
||||
msgctxt "field:optical_equipment.contract,start_date:"
|
||||
msgid "Start Date"
|
||||
msgstr "Fecha Inicio"
|
||||
@ -695,6 +694,10 @@ msgctxt "field:optical_equipment_maintenance.service,description:"
|
||||
msgid "Description"
|
||||
msgstr "Descripción"
|
||||
|
||||
msgctxt "field:sale.sale,description:sale."
|
||||
msgid "Description"
|
||||
msgstr "Tiempo de Entrega"
|
||||
|
||||
msgctxt "field:optical_equipment_maintenance.service,sale_date:"
|
||||
msgid "Sale Date"
|
||||
msgstr "Fecha de Venta"
|
||||
|
@ -156,11 +156,13 @@ class Template(metaclass=PoolMeta):
|
||||
|
||||
#### calibration parameters
|
||||
use_pattern = fields.Selection([
|
||||
('No Aplíca', ""),
|
||||
('ojo_esquematico', "Ojo esquematico"),
|
||||
('lente_prueba', "Lente de Prueba"),
|
||||
('pesas_calibration', "Pesas de Calibración"),
|
||||
('esferas_calibration', "Esferas de Calibración")], "Patrón Utilizado", states={'required': Eval('calibration', True)})
|
||||
measuring_range = fields.Selection([
|
||||
('No Aplíca', ""),
|
||||
('dioptria', "Dioptria"),
|
||||
('mmhg', "mmHg")], "Rango de Medición", states={'required': Eval('calibration', True)})
|
||||
MEP = fields.Float("MEP", states={'required': Eval('calibration', False)},)
|
||||
|
3429
report/Contract.fodt
3429
report/Contract.fodt
File diff suppressed because it is too large
Load Diff
4678
report/Sale.fodt
4678
report/Sale.fodt
File diff suppressed because it is too large
Load Diff
5597
report/Sale_Internal.fodt
Normal file
5597
report/Sale_Internal.fodt
Normal file
File diff suppressed because it is too large
Load Diff
12
sale.xml
12
sale.xml
@ -23,4 +23,16 @@
|
||||
<field name="model">sale.sale,-1</field>
|
||||
<field name="action" ref="report_sale"/>
|
||||
</record>
|
||||
<record model="ir.action.report" id="report_sale_internal">
|
||||
<field name="name">Sale Equipments Internal</field>
|
||||
<field name="model">sale.sale</field>
|
||||
<field name="report_name">sale.sale</field>
|
||||
<field name="report">optical_equipment/report/Sale_Internal.fodt</field>
|
||||
<field name="single" eval="True"/>
|
||||
</record>
|
||||
<record model="ir.action.keyword" id="report_sale_internal_keyword">
|
||||
<field name="keyword">form_print</field>
|
||||
<field name="model">sale.sale,-1</field>
|
||||
<field name="action" ref="report_sale_internal"/>
|
||||
</record>
|
||||
</tryton>
|
||||
|
Loading…
Reference in New Issue
Block a user