Skip to content

Commit

Permalink
[FIX] allow_negative_stock field visibility in product form view
Browse files Browse the repository at this point in the history
  • Loading branch information
mb-andema committed Nov 15, 2024
1 parent 23bbed1 commit bdd723e
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 22 deletions.
44 changes: 23 additions & 21 deletions stock_no_negative/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -89,28 +89,28 @@ Changelog
16.0.1.0.0 (2022-10-22)
-----------------------

- [16.0][MIG] stock_no_negative
- [16.0][MIG] stock_no_negative

15.0.1.0.0 (2021-12-22)
-----------------------

- [15.0][MIG] stock_no_negative
- [15.0][MIG] stock_no_negative

14.0.1.0.0 (2020-12-14)
-----------------------

- [14.0][MIG] stock_no_negative
- [14.0][MIG] stock_no_negative

13.0.1.0.0 (2020-01-03)
-----------------------

- [13.0][MIG] stock_no_negative Remove all decorators @api.multi
- [13.0][MIG] stock_no_negative Remove all decorators @api.multi

11.0.1.1.0 (2018-12-13)
-----------------------

- Add the ability to allow negative stock for individual stock
locations.
- Add the ability to allow negative stock for individual stock
locations.

Bug Tracker
===========
Expand All @@ -133,34 +133,36 @@ Authors
Contributors
------------

- Alexis de Lattre <[email protected]>
- Alexis de Lattre <[email protected]>

- Vishnu Vanneri <[email protected]>
- Vishnu Vanneri <[email protected]>

- Serpent Consulting Services Pvt. Ltd. <[email protected]>
- Serpent Consulting Services Pvt. Ltd. <[email protected]>

- `ForgeFlow S.L. <[email protected]>`__:
- `ForgeFlow S.L. <[email protected]>`__:

- Jordi Ballester
- Joan Mateu
- Jordi Ballester
- Joan Mateu

- `Tecnativa <https://www.tecnativa.com>`__:
- `Tecnativa <https://www.tecnativa.com>`__:

- Pedro M. Baeza
- Pedro M. Baeza

- `Spacefoot <https://www.spacefoot.com>`__:
- `Spacefoot <https://www.spacefoot.com>`__:

- Quentin Delcourte
- Quentin Delcourte

- Vishnu Vanneri <[email protected]>
- Vishnu Vanneri <[email protected]>

- `OERP Canada <https://www.oerp.ca/>`__:
- `OERP Canada <https://www.oerp.ca/>`__:

- Foram Darji <[email protected]>
- Foram Darji <[email protected]>

- `Dynapps <https://www.dynapps.eu/>`__:
- `Dynapps <https://www.dynapps.eu/>`__:

- Bert Van Groenendael <[email protected]>
- Bert Van Groenendael <[email protected]>

- Moaad Bourhim

Maintainers
-----------
Expand Down
2 changes: 2 additions & 0 deletions stock_no_negative/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,5 @@

- [Dynapps](https://www.dynapps.eu/):
- Bert Van Groenendael \<<[email protected]>\>

- Moaad Bourhim
1 change: 1 addition & 0 deletions stock_no_negative/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -516,6 +516,7 @@ <h2><a class="toc-backref" href="#toc-entry-12">Contributors</a></h2>
<li>Bert Van Groenendael &lt;<a class="reference external" href="mailto:bert.vangroenendael&#64;dynapps.eu">bert.vangroenendael&#64;dynapps.eu</a>&gt;</li>
</ul>
</li>
<li>Moaad Bourhim</li>
</ul>
</div>
<div class="section" id="maintainers">
Expand Down
5 changes: 4 additions & 1 deletion stock_no_negative/views/product_product_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@
<field name="inherit_id" ref="stock.view_template_property_form" />
<field name="arch" type="xml">
<field name="categ_id" position="after">
<field name="allow_negative_stock" invisible="type != 'product'" />
<field
name="allow_negative_stock"
invisible="type != 'consu' or is_storable == False"
/>
</field>
</field>
</record>
Expand Down

0 comments on commit bdd723e

Please sign in to comment.