Skip to content

Commit

Permalink
IMP: document kanban view on product
Browse files Browse the repository at this point in the history
  • Loading branch information
mboscolo committed Mar 20, 2023
1 parent 6c3242d commit 5a74565
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
3 changes: 2 additions & 1 deletion plm/views/ir_attachment_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,8 @@
<div style="margin-right: 3px;border-left: 1px solid lightgray;border-right: 1px solid lightgray;">
<field name="preview"
widget="image"
options="{'zoom': true, 'zoom_delay': 800, 'width':150,'height':150}"
class="oe_avatar"
options="{'zoom': true, 'zoom_delay': 800, 'size':[100,100]}"
/>
</div>
<table style="width: 100%; line-height: 1;">
Expand Down
19 changes: 10 additions & 9 deletions plm/views/product_product.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
domain="[('create_date','&gt;=',(datetime.date.today() - datetime.timedelta(weeks=2)).strftime('%%Y-%%m-%%d'))]"/>
<separator orientation="vertical"/>
<field name="engineering_code"/>
<field name="description" invisible="1"/>
<field name="name"/>
<field name="description" invisible="1"/>
<separator orientation="vertical"/>
<filter
name="string"
Expand Down Expand Up @@ -386,17 +386,18 @@
</group>
</page>
<page string="Linked Documents" name="linkeddocuments">
<group>
<group colspan="4">
<button class="oe_inline oe_stat_button" type="object" icon="fa-list-alt"
name="action_rev_docs" string="Revision Rel Docs"/>
</group>
<group>
<field name="linkeddocuments" nolabel="1" mode="kanban" domain="[('is_plm', '=', True)]"
context="{ 'odooPLM': True,
'kanban_view_ref':'plm.document_kanban_view',
'tree_view_ref':'plm.ir_attachment_tree',
'form_view_ref':'plm.view_attachment_form_plm_hinerit'}"/>
</group>

<field name="linkeddocuments" nolabel="1" mode="kanban" domain="[('is_plm', '=', True)]"
widget="hierarchy_kanban"
context="{ 'odooPLM': True,
'kanban_view_ref':'plm.document_kanban_view',
'tree_view_ref':'plm.ir_attachment_tree',
'form_view_ref':'plm.view_attachment_form_plm_hinerit'}"/>

</page>
</xpath>
</field>
Expand Down

0 comments on commit 5a74565

Please sign in to comment.