Aesthetic updates to FSM.
This commit is contained in:
parent
ff05ff5a4e
commit
ddd8ea2a82
5 changed files with 17 additions and 19 deletions
|
|
@ -20,7 +20,7 @@
|
|||
########################################################################################
|
||||
{
|
||||
'name': 'Improved Field Service Management',
|
||||
'version': '15.0.1.0.12',
|
||||
'version': '15.0.1.0.13',
|
||||
'summary': 'Adds functionality necessary for managing field service operations at Durpro.',
|
||||
'description': 'Adds functionality necessary for managing field service operations at Durpro.',
|
||||
'category': 'Services/Field Service',
|
||||
|
|
|
|||
|
|
@ -723,6 +723,11 @@ msgstr "Planifier comme service terrain"
|
|||
msgid "Planned end:"
|
||||
msgstr "Fin planifiée :"
|
||||
|
||||
#. module: bemade_fsm
|
||||
#: model_terms:ir.ui.view,arch_db:bemade_fsm.workorder_page_info_block
|
||||
msgid "Purchase Order:"
|
||||
msgstr "Commande :"
|
||||
|
||||
#. module: bemade_fsm
|
||||
#: model_terms:ir.ui.view,arch_db:bemade_fsm.workorder_page_info_block
|
||||
msgid "Planned start:"
|
||||
|
|
|
|||
|
|
@ -235,9 +235,8 @@
|
|||
<thead>
|
||||
<tr>
|
||||
<th width="7%">Status</th>
|
||||
<th width="30%">Task</th>
|
||||
<th width="18%">Technician</th>
|
||||
<th width="45%">Comments</th>
|
||||
<th width="39%">Task</th>
|
||||
<th width="54%">Comments</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
|
@ -247,11 +246,6 @@
|
|||
<td>
|
||||
<span t-out="task.name"/>
|
||||
</td>
|
||||
<td>
|
||||
<t t-foreach="task.user_ids" t-as="user">
|
||||
<span t-out="user.name + (', ' if not user_last else '')"/>
|
||||
</t>
|
||||
</td>
|
||||
<td t-out="task.description or ''"/>
|
||||
</tr>
|
||||
<tr class="mt-0 pt-0">
|
||||
|
|
@ -260,7 +254,6 @@
|
|||
<t t-call="bemade_fsm.subtask_list"/>
|
||||
</td>
|
||||
<td/>
|
||||
<td/>
|
||||
</tr>
|
||||
</t>
|
||||
</tbody>
|
||||
|
|
@ -272,10 +265,10 @@
|
|||
</template>
|
||||
<template id="workorder_page_info_block">
|
||||
<h1>
|
||||
<span name="work_order_number" t-out="doc.work_order_number"/>
|
||||
<span name="work_order_number" t-out="doc.name"/>
|
||||
</h1>
|
||||
<h4>
|
||||
<span t-if="doc.sale_order_id and doc.sale_order_id.client_order_ref"
|
||||
<h4 t-if="doc.sale_order_id and doc.sale_order_id.client_order_ref">
|
||||
Purchase Order: <span
|
||||
name="po_number"
|
||||
t-out="doc.sale_order_id.client_order_ref"/>
|
||||
</h4>
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
<field name="report_file">bemade_fsm.work_order</field>
|
||||
<field name="print_report_name">'%s %s' % (
|
||||
object.planned_date_begin.strftime('%Y-%m-%d') if object.planned_date_begin else time.strftime('%Y-%m-%d'),
|
||||
object.work_order_number
|
||||
object.name
|
||||
)
|
||||
</field>
|
||||
<field name="report_type">qweb-pdf</field>
|
||||
|
|
|
|||
|
|
@ -18,20 +18,20 @@
|
|||
<field name="owned_equipment_ids" invisible="True"/>
|
||||
<group>
|
||||
<field name="site_contacts"
|
||||
attrs="{'invisible': [('company_type','=','person')]}"
|
||||
attrs="{'invisible': [('type','!=','delivery')]}"
|
||||
context="{'tree_view_ref': 'bemade_fsm.fsm_contacts_view_tree'}"/>
|
||||
<field name="work_order_contacts"
|
||||
attrs="{'invisible': [('company_type','=','person')]}"
|
||||
attrs="{'invisible': [('type','!=','delivery')]}"
|
||||
context="{'tree_view_ref': 'bemade_fsm.fsm_contacts_view_tree'}"/>
|
||||
<field name="equipment_ids" attrs="{'invisible': [('company_type','=','person')]}"
|
||||
<field name="equipment_ids" attrs="{'invisible': [('type','!=','delivery')]}"
|
||||
context="{'tree_view_ref': 'bemade_fsm.fsm_equipment_view_tree'}"
|
||||
readonly="False"/>
|
||||
<field attrs="{'invisible': ['|', ('company_type','=','person'), ('owned_equipment_ids','=',False)]}"
|
||||
<field attrs="{'invisible': ['|', ('type','!=','delivery'), ('owned_equipment_ids','=',False)]}"
|
||||
context="{'tree_view_ref': 'bemade_fsm.fsm_equipment_view_tree'}"
|
||||
name="owned_equipment_ids"
|
||||
readonly="True"/>
|
||||
<field name="site_ids"
|
||||
attrs="{'invisible': [('company_type','=','company')]}">
|
||||
attrs="{'invisible': [('company_type','=','company'), ('type', '=', 'delivery')]}">
|
||||
<tree editable="bottom">
|
||||
<field name="name" widget="res_partner_many2one"/>
|
||||
</tree>
|
||||
|
|
|
|||
Loading…
Reference in a new issue