bemade_fsm: updates to PDF for work orders.
This commit is contained in:
parent
70d8893178
commit
b367169579
2 changed files with 7 additions and 4 deletions
|
|
@ -72,7 +72,7 @@ class SaleOrder(models.Model):
|
|||
class SaleOrderLine(models.Model):
|
||||
_inherit = 'sale.order.line'
|
||||
valid_equipment_ids = fields.One2many(comodel_name="bemade_fsm.equipment",
|
||||
related="order_id.partner_id.owned_equipment_ids")
|
||||
related="order_id.valid_equipment_ids")
|
||||
visit_ids = fields.One2many(comodel_name="bemade_fsm.visit",
|
||||
inverse_name="so_section_id",)
|
||||
visit_id = fields.Many2one(comodel_name="bemade_fsm.visit",
|
||||
|
|
|
|||
|
|
@ -93,9 +93,12 @@
|
|||
<div class="col-12 mb16 tb16">
|
||||
<h4><strong>
|
||||
<span t-field="intervention.name"/>
|
||||
(<span t-field="intervention.equipment_ids"
|
||||
t-options="{'widget': 'many2many_tags'}"/>
|
||||
)
|
||||
<t t-foreach="intervention.equipment_ids"
|
||||
t-as="equipment">
|
||||
<span t-field="equipment.name"/>
|
||||
<span t-if="intervention_index < intervention_size - 1"
|
||||
t-out="', '" />
|
||||
</t>
|
||||
</strong></h4>
|
||||
<p class="mb16" t-field="intervention.description"/>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in a new issue