Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[16.0][ADD] responsive views for line_ids in purchase_request module with Form and Kanban support #2526

Open
wants to merge 5 commits into
base: 16.0
Choose a base branch
from
63 changes: 63 additions & 0 deletions purchase_request/views/purchase_request_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@
<page string="Products">
<field
name="line_ids"
mode="tree,kanban"
attrs="{'readonly': [('state', '!=', 'draft')]}"
>
<tree
Expand Down Expand Up @@ -222,6 +223,68 @@
options='{"warn": true}'
/>
</tree>
<kanban class="o_kanban_mobile">
<field name="name" />
<field name="product_id" />
<field name="product_qty" />
<field
name="product_uom_category_id"
invisible="1"
/>
<field
name="product_uom_id"
invisible="1"
groups="!uom.group_uom"
/>
<field
name="product_uom_id"
groups="uom.group_uom"
/>
<templates>
<t t-name="kanban-box">
<div class="oe_kanban_global_click">
<div class="oe_kanban_details">
<strong>
<field name="product_id" />
</strong>
<div>
<field name="product_qty" />
<field name="product_uom_id" />
</div>
</div>
</div>
</t>
</templates>
</kanban>
<form>
<group>
<field name="product_id" />
<field name="name" />
<field name="product_qty" />
<field name="product_uom_id" />
<field
name="product_uom_category_id"
invisible="1"
/>
<field name="date_required" />
<field
name="estimated_cost"
widget="monetary"
/>
<field name="currency_id" invisible="1" />
<field
name="company_id"
groups="base.group_multi_company"
widget="selection"
/>
<field name="cancelled" invisible="1" />
<field name="is_editable" invisible="1" />
</group>
<group>
<field name="purchased_qty" />
<field name="purchase_state" />
</group>
</form>
</field>
<group class="oe_subtotal_footer oe_right">
<field name="currency_id" invisible="1" />
Expand Down
Loading