Skip to content

Commit

Permalink
[IMP] - improve release channel form view by adding notebook
Browse files Browse the repository at this point in the history
  • Loading branch information
sbejaoui committed Mar 7, 2023
1 parent d0808c9 commit f48f458
Showing 1 changed file with 24 additions and 16 deletions.
40 changes: 24 additions & 16 deletions stock_release_channel/views/stock_release_channel_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,35 +20,43 @@
<h1>
<field name="name" />
</h1>
<group name="options" groups="stock.group_stock_manager">
<notebook>
<page
string="Options"
name="options"
groups="stock.group_stock_manager"
>
<group name="options" groups="stock.group_stock_manager">
<field name="release_forbidden" />
<field
name="auto_release"
attrs="{'invisible': [('release_forbidden', '=', True)]}"
/>
name="auto_release"
attrs="{'invisible': [('release_forbidden', '=', True)]}"
/>
<field
name="max_auto_release"
attrs="{'invisible': ['|', ('release_forbidden', '=', True), ('auto_release', '!=', 'max')]}"
/>
name="max_auto_release"
attrs="{'invisible': ['|', ('release_forbidden', '=', True), ('auto_release', '!=', 'max')]}"
/>
<field name="warehouse_id" />
<field name="picking_type_ids" options="{'no_create': True}">
<tree>
<field name="name" />
</tree>
</field>
<field
name="rule_domain"
widget="domain"
options="{'model': 'stock.picking', 'in_dialog': true}"
/>
name="rule_domain"
widget="domain"
options="{'model': 'stock.picking', 'in_dialog': true}"
/>

<field
name="code"
widget="ace"
options="{'mode': 'python'}"
placeholder="Enter Python code here."
/>
name="code"
widget="ace"
options="{'mode': 'python'}"
placeholder="Enter Python code here."
/>
</group>
</page>
</notebook>
</sheet>
</form>
</field>
Expand Down

0 comments on commit f48f458

Please sign in to comment.