Skip to content

Commit 7821446

Browse files
committed
fix(spp_programs): align in-kind entitlement item form layout with wizard
1 parent 5a04d3a commit 7821446

1 file changed

Lines changed: 66 additions & 21 deletions

File tree

spp_programs/views/managers/entitlement_manager_inkind_view.xml

Lines changed: 66 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -30,21 +30,35 @@ Part of OpenSPP. See LICENSE file for full copyright and licensing details.
3030
<div class="oe_title mb24">
3131
<label for="name" string="Name:" />
3232
<h1>
33-
<field id="name" name="name" placeholder="Enter the Manager Name..." />
33+
<field
34+
id="name"
35+
name="name"
36+
placeholder="Enter the Manager Name..."
37+
/>
3438
</h1>
3539
</div>
3640
<div colspan="2">
3741
<field name="manage_inventory" />
38-
<label for="manage_inventory" string="Manage stock movements (inventory)" />
42+
<label
43+
for="manage_inventory"
44+
string="Manage stock movements (inventory)"
45+
/>
3946
</div>
4047
<div colspan="2">
4148
<field name="is_evaluate_single_item" />
42-
<label for="is_evaluate_single_item" string="Evaluate one item" />
49+
<label
50+
for="is_evaluate_single_item"
51+
string="Evaluate one item"
52+
/>
4353
</div>
4454
<notebook>
4555
<page string="Items">
4656
<group colspan="4" col="4">
47-
<field name="entitlement_item_ids" nolabel="1" colspan="4">
57+
<field
58+
name="entitlement_item_ids"
59+
nolabel="1"
60+
colspan="4"
61+
>
4862
<list>
4963
<field name='sequence' widget='handle' />
5064
<field name="product_id" />
@@ -60,22 +74,36 @@ Part of OpenSPP. See LICENSE file for full copyright and licensing details.
6074
options="{'no_open':True,'no_create':True,'no_create_edit':True}"
6175
colspan="4"
6276
/>
63-
<field name="quantity" />
64-
<field
65-
name="uom_id"
66-
options="{'no_open':True,'no_create':True,'no_create_edit':True}"
67-
/>
77+
</group>
78+
<group colspan="4" col="4">
79+
<group colspan="2">
80+
<field name="quantity" />
81+
</group>
82+
<group colspan="2">
83+
<field
84+
name="uom_id"
85+
options="{'no_open':True,'no_create':True,'no_create_edit':True}"
86+
/>
87+
</group>
88+
</group>
89+
<group colspan="4" col="4">
6890
<field
6991
name="condition"
7092
colspan="4"
7193
widget="domain"
7294
options="{'model': 'res.partner'}"
7395
/>
74-
<field
75-
name="multiplier_field"
76-
options="{'no_open':True,'no_create':True,'no_create_edit':True}"
77-
/>
78-
<field name="max_multiplier" />
96+
</group>
97+
<group colspan="4" col="4">
98+
<group colspan="2">
99+
<field
100+
name="multiplier_field"
101+
options="{'no_open':True,'no_create':True,'no_create_edit':True}"
102+
/>
103+
</group>
104+
<group colspan="2">
105+
<field name="max_multiplier" />
106+
</group>
79107
</group>
80108
</form>
81109
</field>
@@ -96,13 +124,20 @@ Part of OpenSPP. See LICENSE file for full copyright and licensing details.
96124
/>
97125
</group>
98126
</page>
99-
<page string="Inventory Settings" invisible="not manage_inventory">
127+
<page
128+
string="Inventory Settings"
129+
invisible="not manage_inventory"
130+
>
100131
<group colspan="4" col="4">
101132
<field
102133
name="warehouse_id"
103134
options="{'no_open':True,'no_create':True,'no_create_edit':True}"
104135
/>
105-
<field name="company_id" invisible="1" options="{'no_open':True}" />
136+
<field
137+
name="company_id"
138+
invisible="1"
139+
options="{'no_open':True}"
140+
/>
106141
</group>
107142
</page>
108143
</notebook>
@@ -120,7 +155,11 @@ Part of OpenSPP. See LICENSE file for full copyright and licensing details.
120155
<field name="name" />
121156
<field name="program_id" />
122157
<group>
123-
<filter string="Program" name="grp_program_id" context="{'group_by': 'program_id'}" />
158+
<filter
159+
string="Program"
160+
name="grp_program_id"
161+
context="{'group_by': 'program_id'}"
162+
/>
124163
</group>
125164
<!--<searchpanel>
126165
<field name="group" icon="fa-users"/>
@@ -140,24 +179,30 @@ Part of OpenSPP. See LICENSE file for full copyright and licensing details.
140179
<field name="help" type="html">
141180
<p class="o_view_nocontent_smiling_face">
142181
Add an Entitlement Manager!
143-
</p><p>
182+
</p>
183+
<p>
144184
Click the create button to enter a new in-kind entitlement manager.
145185
</p>
146186
</field>
147187
</record>
148188

149-
<record id="action_entitlement_manager_inkind_tree_view" model="ir.actions.act_window.view">
189+
<record
190+
id="action_entitlement_manager_inkind_tree_view"
191+
model="ir.actions.act_window.view"
192+
>
150193
<field name="sequence" eval="1" />
151194
<field name="view_mode">list</field>
152195
<field name="view_id" ref="view_entitlement_manager_inkind_tree" />
153196
<field name="act_window_id" ref="action_entitlement_manager_inkind" />
154197
</record>
155198

156-
<record id="action_entitlement_manager_inkind_form_view" model="ir.actions.act_window.view">
199+
<record
200+
id="action_entitlement_manager_inkind_form_view"
201+
model="ir.actions.act_window.view"
202+
>
157203
<field name="sequence" eval="1" />
158204
<field name="view_mode">form</field>
159205
<field name="view_id" ref="view_entitlement_manager_inkind_form" />
160206
<field name="act_window_id" ref="action_entitlement_manager_inkind" />
161207
</record>
162-
163208
</odoo>

0 commit comments

Comments
 (0)