Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 16 additions & 16 deletions product_state/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ Product State
This module introduces the state field on product template and allows
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please don't do this change.

simple product life cycle:

- draft: In Development
- sellable: Normal
- end: End of Lifecycle
- obsolete: Obsolete
- draft: In Development
- sellable: Normal
- end: End of Lifecycle
- obsolete: Obsolete

**Table of contents**

Expand Down Expand Up @@ -75,18 +75,18 @@ Authors
Contributors
------------

- Cedric Pigeon <cedric.pigeon@acsone.eu>
- Alexandre Saunier <alexandre.saunier@camptocamp.com>
- Nikul Chaudhary <nikulchaudhary2112@gmail.com>
- Eduardo Magdalena <emagdalena@c2i.es> (C2i Change 2 improve
http://www.c2i.es)
- Andrii Skrypka <andrijskrypa@ukr.net>
- Denis Roussel <denis.roussel@acsone.eu>
- Riccardo Fresco <riccardo.fresco@bt-group.com>
- Nils Coenen <nils.coenen@nico-solutions.de>
- `Trobz <https://trobz.com>`__:

- Tuan Nguyen <tuanna@trobz.com>
- Cedric Pigeon <cedric.pigeon@acsone.eu>
- Alexandre Saunier <alexandre.saunier@camptocamp.com>
- Nikul Chaudhary <nikulchaudhary2112@gmail.com>
- Eduardo Magdalena <emagdalena@c2i.es> (C2i Change 2 improve
http://www.c2i.es)
- Andrii Skrypka <andrijskrypa@ukr.net>
- Denis Roussel <denis.roussel@acsone.eu>
- Riccardo Fresco <riccardo.fresco@bt-group.com>
- Nils Coenen <nils.coenen@nico-solutions.de>
- `Trobz <https://trobz.com>`__:

- Tuan Nguyen <tuanna@trobz.com>

Other credits
-------------
Expand Down
2 changes: 1 addition & 1 deletion product_state/views/product_template_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,6 @@
<field name="res_model">product.template</field>
<field name="view_mode">kanban,form,list</field>
<field name="context">{}</field>
<field name="domain">[('product_state_id', '=', id)]</field>
<field name="domain">[('product_state_id', '=', active_id)]</field>
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure this active_id will always contain the correct data.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It works with active_id when I trigger it from the state form, but yeah, not sure if that’s always safe.

Do you have a best practice for this?

</record>
</odoo>
Loading