Skip to content

Commit

Permalink
[IMP] ddmrp: add option to install ddmrp_purchase_hide_onhand_status
Browse files Browse the repository at this point in the history
  • Loading branch information
JordiBForgeFlow committed Oct 2, 2023
1 parent 87cfb40 commit a8c0e68
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ddmrp/wizards/res_config_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ class ResConfigSettings(models.TransientModel):
module_ddmrp_chatter = fields.Boolean(
string="Chatter in Stock Buffers",
)
module_ddmrp_purchase_hide_onhand_status = fields.Boolean(
string="Hide Purchase On-Hand Status",
)
ddmrp_auto_update_nfp = fields.Boolean(
related="company_id.ddmrp_auto_update_nfp", readonly=False
)
Expand Down
13 changes: 13 additions & 0 deletions ddmrp/wizards/res_config_settings_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,19 @@
</div>
</div>
</div>
<div class="col-xs-12 col-md-6 o_setting_box">
<div class="o_setting_left_pane">
<field
name="module_ddmrp_purchase_hide_onhand_status"
/>
</div>
<div class="o_setting_right_pane">
<label for="module_ddmrp_purchase_hide_onhand_status" />
<div class="text-muted">
Hides on-hand status from purchase order line.
</div>
</div>
</div>
<div class="col-xs-12 col-md-6 o_setting_box">
<div class="o_setting_left_pane">
<field name="module_ddmrp_warning" />
Expand Down

0 comments on commit a8c0e68

Please sign in to comment.