nuevo addon product_state desde OCA/product_attribute
This commit is contained in:
parent
ada6c142c9
commit
2954c8694f
23 changed files with 2254 additions and 0 deletions
103
product_state/README.rst
Normal file
103
product_state/README.rst
Normal file
|
@ -0,0 +1,103 @@
|
|||
=============
|
||||
Product State
|
||||
=============
|
||||
|
||||
.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
!! This file is generated by oca-gen-addon-readme !!
|
||||
!! changes will be overwritten. !!
|
||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
|
||||
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
|
||||
:target: https://odoo-community.org/page/development-status
|
||||
:alt: Beta
|
||||
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
|
||||
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
|
||||
:alt: License: AGPL-3
|
||||
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fproduct--attribute-lightgray.png?logo=github
|
||||
:target: https://github.com/OCA/product-attribute/tree/12.0/product_state
|
||||
:alt: OCA/product-attribute
|
||||
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
|
||||
:target: https://translation.odoo-community.org/projects/product-attribute-12-0/product-attribute-12-0-product_state
|
||||
:alt: Translate me on Weblate
|
||||
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
|
||||
:target: https://runbot.odoo-community.org/runbot/135/12.0
|
||||
:alt: Try me on Runbot
|
||||
|
||||
|badge1| |badge2| |badge3| |badge4| |badge5|
|
||||
|
||||
This module introduces the state field on product template and allows simple product life cycle:
|
||||
|
||||
- draft: In Development
|
||||
- sellable: Normal
|
||||
- end: End of Lifecycle
|
||||
- obsolete: Obsolete
|
||||
|
||||
**Table of contents**
|
||||
|
||||
.. contents::
|
||||
:local:
|
||||
|
||||
Usage
|
||||
=====
|
||||
|
||||
To create a new state:
|
||||
|
||||
#. Go to *Sales > Configuration > Products > Product States*.
|
||||
#. You can set its name and a description.
|
||||
|
||||
To add a product to a state:
|
||||
|
||||
#. Go to the product itself and edit.
|
||||
#. You can select the desired status in the list of buttons above the form.
|
||||
|
||||
Bug Tracker
|
||||
===========
|
||||
|
||||
Bugs are tracked on `GitHub Issues <https://github.com/OCA/product-attribute/issues>`_.
|
||||
In case of trouble, please check there if your issue has already been reported.
|
||||
If you spotted it first, help us smashing it by providing a detailed and welcomed
|
||||
`feedback <https://github.com/OCA/product-attribute/issues/new?body=module:%20product_state%0Aversion:%2012.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
|
||||
|
||||
Do not contact contributors directly about support or help with technical issues.
|
||||
|
||||
Credits
|
||||
=======
|
||||
|
||||
Authors
|
||||
~~~~~~~
|
||||
|
||||
* ACSONE SA/NV
|
||||
|
||||
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>
|
||||
|
||||
Maintainers
|
||||
~~~~~~~~~~~
|
||||
|
||||
This module is maintained by the OCA.
|
||||
|
||||
.. image:: https://odoo-community.org/logo.png
|
||||
:alt: Odoo Community Association
|
||||
:target: https://odoo-community.org
|
||||
|
||||
OCA, or the Odoo Community Association, is a nonprofit organization whose
|
||||
mission is to support the collaborative development of Odoo features and
|
||||
promote its widespread use.
|
||||
|
||||
.. |maintainer-emagdalenaC2i| image:: https://github.com/emagdalenaC2i.png?size=40px
|
||||
:target: https://github.com/emagdalenaC2i
|
||||
:alt: emagdalenaC2i
|
||||
|
||||
Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:
|
||||
|
||||
|maintainer-emagdalenaC2i|
|
||||
|
||||
This module is part of the `OCA/product-attribute <https://github.com/OCA/product-attribute/tree/12.0/product_state>`_ project on GitHub.
|
||||
|
||||
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
|
4
product_state/__init__.py
Normal file
4
product_state/__init__.py
Normal file
|
@ -0,0 +1,4 @@
|
|||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
|
||||
|
||||
from . import models
|
||||
from .hooks import post_init_hook
|
20
product_state/__manifest__.py
Normal file
20
product_state/__manifest__.py
Normal file
|
@ -0,0 +1,20 @@
|
|||
# Copyright 2017 ACSONE SA/NV (<http://acsone.eu>)
|
||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
|
||||
{
|
||||
"name": "Product State",
|
||||
"summary": """
|
||||
Module introducing a state field on product template""",
|
||||
"author": "ACSONE SA/NV, Odoo Community Association (OCA)",
|
||||
"website": "https://github.com/OCA/product-attribute",
|
||||
"category": "Product",
|
||||
"version": "12.0.2.0.2",
|
||||
"license": "AGPL-3",
|
||||
"depends": ["sale", "product"],
|
||||
"data": [
|
||||
"data/product_state_data.xml",
|
||||
"security/ir.model.access.csv",
|
||||
"views/product_views.xml",
|
||||
],
|
||||
"maintainers": ["emagdalenaC2i"],
|
||||
"post_init_hook": "post_init_hook",
|
||||
}
|
26
product_state/data/product_state_data.xml
Normal file
26
product_state/data/product_state_data.xml
Normal file
|
@ -0,0 +1,26 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<data noupdate="1">
|
||||
<!-- States -->
|
||||
<record id="product_state_draft" model="product.state">
|
||||
<field name="code">draft</field>
|
||||
<field name="name">In Development</field>
|
||||
<field name="sequence">10</field>
|
||||
</record>
|
||||
<record id="product_state_sellable" model="product.state">
|
||||
<field name="code">sellable</field>
|
||||
<field name="name">Normal</field>
|
||||
<field name="sequence">20</field>
|
||||
</record>
|
||||
<record id="product_state_end" model="product.state">
|
||||
<field name="code">end</field>
|
||||
<field name="name">End of Lifecycle</field>
|
||||
<field name="sequence">30</field>
|
||||
</record>
|
||||
<record id="product_state_obsolete" model="product.state">
|
||||
<field name="code">obsolete</field>
|
||||
<field name="name">Obsolete</field>
|
||||
<field name="sequence">40</field>
|
||||
</record>
|
||||
</data>
|
||||
</odoo>
|
17
product_state/hooks.py
Normal file
17
product_state/hooks.py
Normal file
|
@ -0,0 +1,17 @@
|
|||
# Copyright 2017 ACSONE SA/NV (<http://acsone.eu>)
|
||||
# Copyright 2020 Tecnativa - Pedro M. Baeza
|
||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
|
||||
from odoo import api, SUPERUSER_ID
|
||||
|
||||
|
||||
def post_init_hook(cr, registry):
|
||||
""" This hook is used to add a state on existing products
|
||||
when module product_state is installed.
|
||||
"""
|
||||
env = api.Environment(cr, SUPERUSER_ID, {})
|
||||
product_without_state = env["product.template"].with_context(
|
||||
active_test=False,
|
||||
).search(
|
||||
[("product_state_id", "=", False), ("state", "!=", False)]
|
||||
)
|
||||
product_without_state._inverse_product_state()
|
168
product_state/i18n/ca.po
Normal file
168
product_state/i18n/ca.po
Normal file
|
@ -0,0 +1,168 @@
|
|||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * product_state
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 12.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"PO-Revision-Date: 2021-02-15 13:45+0000\n"
|
||||
"Last-Translator: claudiagn <claudia.gargallo@qubiq.es>\n"
|
||||
"Language-Team: none\n"
|
||||
"Language: ca\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: \n"
|
||||
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
||||
"X-Generator: Weblate 4.3.2\n"
|
||||
|
||||
#. module: product_state
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_form
|
||||
msgid "Code"
|
||||
msgstr "Codi"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__create_uid
|
||||
msgid "Created by"
|
||||
msgstr "Creat per"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__create_date
|
||||
msgid "Created on"
|
||||
msgstr "Creat el"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__description
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_form
|
||||
msgid "Description"
|
||||
msgstr "Descripció"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__display_name
|
||||
msgid "Display Name"
|
||||
msgstr "Nom visible"
|
||||
|
||||
#. module: product_state
|
||||
#: model:product.state,name:product_state.product_state_end
|
||||
msgid "End of Lifecycle"
|
||||
msgstr "Final del cicle de vida"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__id
|
||||
msgid "ID"
|
||||
msgstr "ID"
|
||||
|
||||
#. module: product_state
|
||||
#: model:product.state,name:product_state.product_state_draft
|
||||
msgid "In Development"
|
||||
msgstr "ID de desenvolupament"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state____last_update
|
||||
msgid "Last Modified on"
|
||||
msgstr "Última modificació en"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__write_uid
|
||||
msgid "Last Updated by"
|
||||
msgstr "última actualització per"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__write_date
|
||||
msgid "Last Updated on"
|
||||
msgstr "Última actualització el"
|
||||
|
||||
#. module: product_state
|
||||
#: model:product.state,name:product_state.product_state_sellable
|
||||
msgid "Normal"
|
||||
msgstr "Normal"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__products_count
|
||||
msgid "Number of products"
|
||||
msgstr "Nombre de productes"
|
||||
|
||||
#. module: product_state
|
||||
#: model:product.state,name:product_state.product_state_obsolete
|
||||
msgid "Obsolete"
|
||||
msgstr "Obsolet"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.actions.act_window,name:product_state.action_open_single_product_state
|
||||
#: model:ir.model,name:product_state.model_product_state
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.product_state_search_form_view
|
||||
msgid "Product State"
|
||||
msgstr "Estat del producte"
|
||||
|
||||
#. module: product_state
|
||||
#: sql_constraint:product.state:0
|
||||
msgid "Product State Code must be unique."
|
||||
msgstr "El codi d'estat del producte ha de ser únic."
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.ui.menu,name:product_state.menu_product_state
|
||||
msgid "Product States"
|
||||
msgstr "Estats dels productes"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_product__state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_template__state
|
||||
msgid "Product Status"
|
||||
msgstr "Estat del producte"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model,name:product_state.model_product_template
|
||||
msgid "Product Template"
|
||||
msgstr "Plantilla de producte"
|
||||
|
||||
#. module: product_state
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_form
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_kanban
|
||||
msgid "Products"
|
||||
msgstr "Productes"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,help:product_state.field_product_product__product_state_id
|
||||
#: model:ir.model.fields,help:product_state.field_product_template__product_state_id
|
||||
msgid "Select a state for this product"
|
||||
msgstr "Selecciona un estat per aquest producte"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__sequence
|
||||
msgid "Sequence"
|
||||
msgstr "Seqüència"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.actions.act_window,name:product_state.action_product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_product__product_state_id
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_template__product_state_id
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.view_product_template_search_state
|
||||
msgid "State"
|
||||
msgstr "Estat"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__code
|
||||
msgid "State Code"
|
||||
msgstr "Codi d'estat"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__name
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_form
|
||||
msgid "State Name"
|
||||
msgstr "Nom d'estat"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.actions.act_window,name:product_state.action_open_state_products
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__product_ids
|
||||
msgid "State Products"
|
||||
msgstr "Productes estatals"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,help:product_state.field_product_state__sequence
|
||||
msgid "Used to order the States"
|
||||
msgstr "S'utilitza per ordenar els estats"
|
||||
|
||||
#. module: product_state
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_tree
|
||||
msgid "product.state"
|
||||
msgstr "product.state"
|
174
product_state/i18n/de.po
Normal file
174
product_state/i18n/de.po
Normal file
|
@ -0,0 +1,174 @@
|
|||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * product_state
|
||||
#
|
||||
# Translators:
|
||||
# Niki Waibel <niki.waibel@gmail.com>, 2017
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 10.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2017-05-17 02:38+0000\n"
|
||||
"PO-Revision-Date: 2017-05-17 02:38+0000\n"
|
||||
"Last-Translator: Niki Waibel <niki.waibel@gmail.com>, 2017\n"
|
||||
"Language-Team: German (https://www.transifex.com/oca/teams/23907/de/)\n"
|
||||
"Language: de\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: \n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
|
||||
#. module: product_state
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_form
|
||||
msgid "Code"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__create_uid
|
||||
msgid "Created by"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__create_date
|
||||
msgid "Created on"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__description
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_form
|
||||
msgid "Description"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__display_name
|
||||
msgid "Display Name"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:product.state,name:product_state.product_state_end
|
||||
msgid "End of Lifecycle"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__id
|
||||
msgid "ID"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:product.state,name:product_state.product_state_draft
|
||||
msgid "In Development"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state____last_update
|
||||
msgid "Last Modified on"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__write_uid
|
||||
msgid "Last Updated by"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__write_date
|
||||
msgid "Last Updated on"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:product.state,name:product_state.product_state_sellable
|
||||
msgid "Normal"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__products_count
|
||||
msgid "Number of products"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:product.state,name:product_state.product_state_obsolete
|
||||
msgid "Obsolete"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.actions.act_window,name:product_state.action_open_single_product_state
|
||||
#: model:ir.model,name:product_state.model_product_state
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.product_state_search_form_view
|
||||
#, fuzzy
|
||||
msgid "Product State"
|
||||
msgstr "Produktvorlage"
|
||||
|
||||
#. module: product_state
|
||||
#: sql_constraint:product.state:0
|
||||
msgid "Product State Code must be unique."
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.ui.menu,name:product_state.menu_product_state
|
||||
#, fuzzy
|
||||
msgid "Product States"
|
||||
msgstr "Produktvorlage"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_product__state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_template__state
|
||||
#, fuzzy
|
||||
msgid "Product Status"
|
||||
msgstr "Produktvorlage"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model,name:product_state.model_product_template
|
||||
msgid "Product Template"
|
||||
msgstr "Produktvorlage"
|
||||
|
||||
#. module: product_state
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_form
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_kanban
|
||||
msgid "Products"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,help:product_state.field_product_product__product_state_id
|
||||
#: model:ir.model.fields,help:product_state.field_product_template__product_state_id
|
||||
msgid "Select a state for this product"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__sequence
|
||||
msgid "Sequence"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.actions.act_window,name:product_state.action_product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_product__product_state_id
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_template__product_state_id
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.view_product_template_search_state
|
||||
msgid "State"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__code
|
||||
msgid "State Code"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__name
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_form
|
||||
msgid "State Name"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.actions.act_window,name:product_state.action_open_state_products
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__product_ids
|
||||
msgid "State Products"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,help:product_state.field_product_state__sequence
|
||||
msgid "Used to order the States"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_tree
|
||||
#, fuzzy
|
||||
msgid "product.state"
|
||||
msgstr "Produktvorlage"
|
172
product_state/i18n/es.po
Normal file
172
product_state/i18n/es.po
Normal file
|
@ -0,0 +1,172 @@
|
|||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * product_state
|
||||
#
|
||||
# Translators:
|
||||
# Pedro M. Baeza <pedro.baeza@gmail.com>, 2018
|
||||
# enjolras <yo@miguelrevilla.com>, 2018
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 10.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2018-01-29 08:49+0000\n"
|
||||
"PO-Revision-Date: 2020-09-15 12:00+0000\n"
|
||||
"Last-Translator: claudiagn <claudia.gargallo@qubiq.es>\n"
|
||||
"Language-Team: Spanish (https://www.transifex.com/oca/teams/23907/es/)\n"
|
||||
"Language: es\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: \n"
|
||||
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
||||
"X-Generator: Weblate 3.10\n"
|
||||
|
||||
#. module: product_state
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_form
|
||||
msgid "Code"
|
||||
msgstr "Código"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__create_uid
|
||||
msgid "Created by"
|
||||
msgstr "Creado por"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__create_date
|
||||
msgid "Created on"
|
||||
msgstr "Creado en"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__description
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_form
|
||||
msgid "Description"
|
||||
msgstr "Descripción"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__display_name
|
||||
msgid "Display Name"
|
||||
msgstr "Nombre mostrado"
|
||||
|
||||
#. module: product_state
|
||||
#: model:product.state,name:product_state.product_state_end
|
||||
msgid "End of Lifecycle"
|
||||
msgstr "Fin del ciclo de vida"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__id
|
||||
msgid "ID"
|
||||
msgstr "ID"
|
||||
|
||||
#. module: product_state
|
||||
#: model:product.state,name:product_state.product_state_draft
|
||||
msgid "In Development"
|
||||
msgstr "En desarrollo"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state____last_update
|
||||
msgid "Last Modified on"
|
||||
msgstr "Última modificación en"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__write_uid
|
||||
msgid "Last Updated by"
|
||||
msgstr "Última actualización por"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__write_date
|
||||
msgid "Last Updated on"
|
||||
msgstr "Última actualización en"
|
||||
|
||||
#. module: product_state
|
||||
#: model:product.state,name:product_state.product_state_sellable
|
||||
msgid "Normal"
|
||||
msgstr "Normal"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__products_count
|
||||
msgid "Number of products"
|
||||
msgstr "Número de productos"
|
||||
|
||||
#. module: product_state
|
||||
#: model:product.state,name:product_state.product_state_obsolete
|
||||
msgid "Obsolete"
|
||||
msgstr "Obsoleto"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.actions.act_window,name:product_state.action_open_single_product_state
|
||||
#: model:ir.model,name:product_state.model_product_state
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.product_state_search_form_view
|
||||
msgid "Product State"
|
||||
msgstr "Estado del producto"
|
||||
|
||||
#. module: product_state
|
||||
#: sql_constraint:product.state:0
|
||||
msgid "Product State Code must be unique."
|
||||
msgstr "El código de estado del producto debe ser único."
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.ui.menu,name:product_state.menu_product_state
|
||||
msgid "Product States"
|
||||
msgstr "Estados del producto"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_product__state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_template__state
|
||||
msgid "Product Status"
|
||||
msgstr "Estado de producto"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model,name:product_state.model_product_template
|
||||
msgid "Product Template"
|
||||
msgstr "Plantilla de producto"
|
||||
|
||||
#. module: product_state
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_form
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_kanban
|
||||
msgid "Products"
|
||||
msgstr "Productos"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,help:product_state.field_product_product__product_state_id
|
||||
#: model:ir.model.fields,help:product_state.field_product_template__product_state_id
|
||||
msgid "Select a state for this product"
|
||||
msgstr "Selecciona un estado para este producto"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__sequence
|
||||
msgid "Sequence"
|
||||
msgstr "Secuencia"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.actions.act_window,name:product_state.action_product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_product__product_state_id
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_template__product_state_id
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.view_product_template_search_state
|
||||
msgid "State"
|
||||
msgstr "Estado"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__code
|
||||
msgid "State Code"
|
||||
msgstr "Código del estado"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__name
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_form
|
||||
msgid "State Name"
|
||||
msgstr "Nombre del estado"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.actions.act_window,name:product_state.action_open_state_products
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__product_ids
|
||||
msgid "State Products"
|
||||
msgstr "Productos del estado"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,help:product_state.field_product_state__sequence
|
||||
msgid "Used to order the States"
|
||||
msgstr "Utilizado para pedir a los estados"
|
||||
|
||||
#. module: product_state
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_tree
|
||||
msgid "product.state"
|
||||
msgstr "producto.estado"
|
177
product_state/i18n/fr.po
Normal file
177
product_state/i18n/fr.po
Normal file
|
@ -0,0 +1,177 @@
|
|||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * product_state
|
||||
#
|
||||
# Translators:
|
||||
# OCA Transbot <transbot@odoo-community.org>, 2017
|
||||
# guillaume bauer <guillaume.bauer@syentys.com>, 2017
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 10.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2017-07-29 02:55+0000\n"
|
||||
"PO-Revision-Date: 2017-07-29 02:55+0000\n"
|
||||
"Last-Translator: guillaume bauer <guillaume.bauer@syentys.com>, 2017\n"
|
||||
"Language-Team: French (https://www.transifex.com/oca/teams/23907/fr/)\n"
|
||||
"Language: fr\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: \n"
|
||||
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
|
||||
|
||||
#. module: product_state
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_form
|
||||
msgid "Code"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__create_uid
|
||||
msgid "Created by"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__create_date
|
||||
msgid "Created on"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__description
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_form
|
||||
msgid "Description"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__display_name
|
||||
msgid "Display Name"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:product.state,name:product_state.product_state_end
|
||||
msgid "End of Lifecycle"
|
||||
msgstr "Fin de vie"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__id
|
||||
msgid "ID"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:product.state,name:product_state.product_state_draft
|
||||
msgid "In Development"
|
||||
msgstr "Phase de recherche et de développement"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state____last_update
|
||||
msgid "Last Modified on"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__write_uid
|
||||
msgid "Last Updated by"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__write_date
|
||||
msgid "Last Updated on"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:product.state,name:product_state.product_state_sellable
|
||||
msgid "Normal"
|
||||
msgstr "Normal"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__products_count
|
||||
msgid "Number of products"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:product.state,name:product_state.product_state_obsolete
|
||||
msgid "Obsolete"
|
||||
msgstr "Obsolète"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.actions.act_window,name:product_state.action_open_single_product_state
|
||||
#: model:ir.model,name:product_state.model_product_state
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.product_state_search_form_view
|
||||
#, fuzzy
|
||||
msgid "Product State"
|
||||
msgstr "Modèle de produit"
|
||||
|
||||
#. module: product_state
|
||||
#: sql_constraint:product.state:0
|
||||
msgid "Product State Code must be unique."
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.ui.menu,name:product_state.menu_product_state
|
||||
#, fuzzy
|
||||
msgid "Product States"
|
||||
msgstr "Modèle de produit"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_product__state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_template__state
|
||||
#, fuzzy
|
||||
msgid "Product Status"
|
||||
msgstr "Modèle de produit"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model,name:product_state.model_product_template
|
||||
msgid "Product Template"
|
||||
msgstr "Modèle de produit"
|
||||
|
||||
#. module: product_state
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_form
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_kanban
|
||||
msgid "Products"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,help:product_state.field_product_product__product_state_id
|
||||
#: model:ir.model.fields,help:product_state.field_product_template__product_state_id
|
||||
msgid "Select a state for this product"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__sequence
|
||||
msgid "Sequence"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.actions.act_window,name:product_state.action_product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_product__product_state_id
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_template__product_state_id
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.view_product_template_search_state
|
||||
#, fuzzy
|
||||
msgid "State"
|
||||
msgstr "Statut"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__code
|
||||
msgid "State Code"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__name
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_form
|
||||
msgid "State Name"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.actions.act_window,name:product_state.action_open_state_products
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__product_ids
|
||||
#, fuzzy
|
||||
msgid "State Products"
|
||||
msgstr "Statut"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,help:product_state.field_product_state__sequence
|
||||
msgid "Used to order the States"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_tree
|
||||
#, fuzzy
|
||||
msgid "product.state"
|
||||
msgstr "Modèle de produit"
|
177
product_state/i18n/hr.po
Normal file
177
product_state/i18n/hr.po
Normal file
|
@ -0,0 +1,177 @@
|
|||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * product_state
|
||||
#
|
||||
# Translators:
|
||||
# Bole <bole@dajmi5.com>, 2018
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 10.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2018-01-29 08:49+0000\n"
|
||||
"PO-Revision-Date: 2018-01-29 08:49+0000\n"
|
||||
"Last-Translator: Bole <bole@dajmi5.com>, 2018\n"
|
||||
"Language-Team: Croatian (https://www.transifex.com/oca/teams/23907/hr/)\n"
|
||||
"Language: hr\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: \n"
|
||||
"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
|
||||
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n"
|
||||
|
||||
#. module: product_state
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_form
|
||||
msgid "Code"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__create_uid
|
||||
msgid "Created by"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__create_date
|
||||
msgid "Created on"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__description
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_form
|
||||
msgid "Description"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__display_name
|
||||
msgid "Display Name"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:product.state,name:product_state.product_state_end
|
||||
msgid "End of Lifecycle"
|
||||
msgstr "Kraj životnog ciklusa"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__id
|
||||
msgid "ID"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:product.state,name:product_state.product_state_draft
|
||||
msgid "In Development"
|
||||
msgstr "U razvoju"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state____last_update
|
||||
msgid "Last Modified on"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__write_uid
|
||||
msgid "Last Updated by"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__write_date
|
||||
msgid "Last Updated on"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:product.state,name:product_state.product_state_sellable
|
||||
msgid "Normal"
|
||||
msgstr "Normalno"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__products_count
|
||||
msgid "Number of products"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:product.state,name:product_state.product_state_obsolete
|
||||
msgid "Obsolete"
|
||||
msgstr "Zastarjelo"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.actions.act_window,name:product_state.action_open_single_product_state
|
||||
#: model:ir.model,name:product_state.model_product_state
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.product_state_search_form_view
|
||||
#, fuzzy
|
||||
msgid "Product State"
|
||||
msgstr "Predložak proizvoda"
|
||||
|
||||
#. module: product_state
|
||||
#: sql_constraint:product.state:0
|
||||
msgid "Product State Code must be unique."
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.ui.menu,name:product_state.menu_product_state
|
||||
#, fuzzy
|
||||
msgid "Product States"
|
||||
msgstr "Predložak proizvoda"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_product__state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_template__state
|
||||
#, fuzzy
|
||||
msgid "Product Status"
|
||||
msgstr "Predložak proizvoda"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model,name:product_state.model_product_template
|
||||
msgid "Product Template"
|
||||
msgstr "Predložak proizvoda"
|
||||
|
||||
#. module: product_state
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_form
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_kanban
|
||||
msgid "Products"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,help:product_state.field_product_product__product_state_id
|
||||
#: model:ir.model.fields,help:product_state.field_product_template__product_state_id
|
||||
msgid "Select a state for this product"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__sequence
|
||||
msgid "Sequence"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.actions.act_window,name:product_state.action_product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_product__product_state_id
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_template__product_state_id
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.view_product_template_search_state
|
||||
#, fuzzy
|
||||
msgid "State"
|
||||
msgstr "Status"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__code
|
||||
msgid "State Code"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__name
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_form
|
||||
msgid "State Name"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.actions.act_window,name:product_state.action_open_state_products
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__product_ids
|
||||
#, fuzzy
|
||||
msgid "State Products"
|
||||
msgstr "Status"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,help:product_state.field_product_state__sequence
|
||||
msgid "Used to order the States"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_tree
|
||||
#, fuzzy
|
||||
msgid "product.state"
|
||||
msgstr "Predložak proizvoda"
|
175
product_state/i18n/nl_NL.po
Normal file
175
product_state/i18n/nl_NL.po
Normal file
|
@ -0,0 +1,175 @@
|
|||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * product_state
|
||||
#
|
||||
# Translators:
|
||||
# Peter Hageman <hageman.p@gmail.com>, 2017
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 10.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2017-05-27 04:44+0000\n"
|
||||
"PO-Revision-Date: 2017-05-27 04:44+0000\n"
|
||||
"Last-Translator: Peter Hageman <hageman.p@gmail.com>, 2017\n"
|
||||
"Language-Team: Dutch (Netherlands) (https://www.transifex.com/oca/"
|
||||
"teams/23907/nl_NL/)\n"
|
||||
"Language: nl_NL\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: \n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
|
||||
#. module: product_state
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_form
|
||||
msgid "Code"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__create_uid
|
||||
msgid "Created by"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__create_date
|
||||
msgid "Created on"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__description
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_form
|
||||
msgid "Description"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__display_name
|
||||
msgid "Display Name"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:product.state,name:product_state.product_state_end
|
||||
msgid "End of Lifecycle"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__id
|
||||
msgid "ID"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:product.state,name:product_state.product_state_draft
|
||||
msgid "In Development"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state____last_update
|
||||
msgid "Last Modified on"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__write_uid
|
||||
msgid "Last Updated by"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__write_date
|
||||
msgid "Last Updated on"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:product.state,name:product_state.product_state_sellable
|
||||
msgid "Normal"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__products_count
|
||||
msgid "Number of products"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:product.state,name:product_state.product_state_obsolete
|
||||
msgid "Obsolete"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.actions.act_window,name:product_state.action_open_single_product_state
|
||||
#: model:ir.model,name:product_state.model_product_state
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.product_state_search_form_view
|
||||
#, fuzzy
|
||||
msgid "Product State"
|
||||
msgstr "Productsjabloon"
|
||||
|
||||
#. module: product_state
|
||||
#: sql_constraint:product.state:0
|
||||
msgid "Product State Code must be unique."
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.ui.menu,name:product_state.menu_product_state
|
||||
#, fuzzy
|
||||
msgid "Product States"
|
||||
msgstr "Productsjabloon"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_product__state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_template__state
|
||||
#, fuzzy
|
||||
msgid "Product Status"
|
||||
msgstr "Productsjabloon"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model,name:product_state.model_product_template
|
||||
msgid "Product Template"
|
||||
msgstr "Productsjabloon"
|
||||
|
||||
#. module: product_state
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_form
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_kanban
|
||||
msgid "Products"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,help:product_state.field_product_product__product_state_id
|
||||
#: model:ir.model.fields,help:product_state.field_product_template__product_state_id
|
||||
msgid "Select a state for this product"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__sequence
|
||||
msgid "Sequence"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.actions.act_window,name:product_state.action_product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_product__product_state_id
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_template__product_state_id
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.view_product_template_search_state
|
||||
msgid "State"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__code
|
||||
msgid "State Code"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__name
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_form
|
||||
msgid "State Name"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.actions.act_window,name:product_state.action_open_state_products
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__product_ids
|
||||
msgid "State Products"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,help:product_state.field_product_state__sequence
|
||||
msgid "Used to order the States"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_tree
|
||||
#, fuzzy
|
||||
msgid "product.state"
|
||||
msgstr "Productsjabloon"
|
168
product_state/i18n/pt.po
Normal file
168
product_state/i18n/pt.po
Normal file
|
@ -0,0 +1,168 @@
|
|||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * product_state
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 12.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"PO-Revision-Date: 2020-10-18 21:08+0000\n"
|
||||
"Last-Translator: Pedro Castro Silva <pedrocs@exo.pt>\n"
|
||||
"Language-Team: none\n"
|
||||
"Language: pt\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: \n"
|
||||
"Plural-Forms: nplurals=2; plural=n > 1;\n"
|
||||
"X-Generator: Weblate 3.10\n"
|
||||
|
||||
#. module: product_state
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_form
|
||||
msgid "Code"
|
||||
msgstr "Código"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__create_uid
|
||||
msgid "Created by"
|
||||
msgstr "Criado por"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__create_date
|
||||
msgid "Created on"
|
||||
msgstr "Criado em"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__description
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_form
|
||||
msgid "Description"
|
||||
msgstr "Descrição"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__display_name
|
||||
msgid "Display Name"
|
||||
msgstr "Nome a Exibir"
|
||||
|
||||
#. module: product_state
|
||||
#: model:product.state,name:product_state.product_state_end
|
||||
msgid "End of Lifecycle"
|
||||
msgstr "Fim de Ciclo de Vida"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__id
|
||||
msgid "ID"
|
||||
msgstr "Id"
|
||||
|
||||
#. module: product_state
|
||||
#: model:product.state,name:product_state.product_state_draft
|
||||
msgid "In Development"
|
||||
msgstr "Em Desenvolvimento"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state____last_update
|
||||
msgid "Last Modified on"
|
||||
msgstr "Última Modificação em"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__write_uid
|
||||
msgid "Last Updated by"
|
||||
msgstr "Última Atualização por"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__write_date
|
||||
msgid "Last Updated on"
|
||||
msgstr "Última Atualização em"
|
||||
|
||||
#. module: product_state
|
||||
#: model:product.state,name:product_state.product_state_sellable
|
||||
msgid "Normal"
|
||||
msgstr "Normal"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__products_count
|
||||
msgid "Number of products"
|
||||
msgstr "Número de Produtos"
|
||||
|
||||
#. module: product_state
|
||||
#: model:product.state,name:product_state.product_state_obsolete
|
||||
msgid "Obsolete"
|
||||
msgstr "Obsoleto"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.actions.act_window,name:product_state.action_open_single_product_state
|
||||
#: model:ir.model,name:product_state.model_product_state
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.product_state_search_form_view
|
||||
msgid "Product State"
|
||||
msgstr "Estado do Produto"
|
||||
|
||||
#. module: product_state
|
||||
#: sql_constraint:product.state:0
|
||||
msgid "Product State Code must be unique."
|
||||
msgstr "O Código de Estado do Produto tem que ser único."
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.ui.menu,name:product_state.menu_product_state
|
||||
msgid "Product States"
|
||||
msgstr "Estados de Produtos"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_product__state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_template__state
|
||||
msgid "Product Status"
|
||||
msgstr "Estado de Produto"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model,name:product_state.model_product_template
|
||||
msgid "Product Template"
|
||||
msgstr "Modelo de Produto"
|
||||
|
||||
#. module: product_state
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_form
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_kanban
|
||||
msgid "Products"
|
||||
msgstr "Produtos"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,help:product_state.field_product_product__product_state_id
|
||||
#: model:ir.model.fields,help:product_state.field_product_template__product_state_id
|
||||
msgid "Select a state for this product"
|
||||
msgstr "Selecione um estado para este produto"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__sequence
|
||||
msgid "Sequence"
|
||||
msgstr "Sequência"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.actions.act_window,name:product_state.action_product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_product__product_state_id
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_template__product_state_id
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.view_product_template_search_state
|
||||
msgid "State"
|
||||
msgstr "Estado"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__code
|
||||
msgid "State Code"
|
||||
msgstr "Código do Estado"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__name
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_form
|
||||
msgid "State Name"
|
||||
msgstr "Nome do Estado"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.actions.act_window,name:product_state.action_open_state_products
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__product_ids
|
||||
msgid "State Products"
|
||||
msgstr "Produtos do Estado"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,help:product_state.field_product_state__sequence
|
||||
msgid "Used to order the States"
|
||||
msgstr "Usado para ordenar os Estados"
|
||||
|
||||
#. module: product_state
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_tree
|
||||
msgid "product.state"
|
||||
msgstr ""
|
175
product_state/i18n/sl.po
Normal file
175
product_state/i18n/sl.po
Normal file
|
@ -0,0 +1,175 @@
|
|||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * product_state
|
||||
#
|
||||
# Translators:
|
||||
# OCA Transbot <transbot@odoo-community.org>, 2018
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 10.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2018-01-27 03:49+0000\n"
|
||||
"PO-Revision-Date: 2018-01-27 03:49+0000\n"
|
||||
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2018\n"
|
||||
"Language-Team: Slovenian (https://www.transifex.com/oca/teams/23907/sl/)\n"
|
||||
"Language: sl\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: \n"
|
||||
"Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n"
|
||||
"%100==4 ? 2 : 3);\n"
|
||||
|
||||
#. module: product_state
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_form
|
||||
msgid "Code"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__create_uid
|
||||
msgid "Created by"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__create_date
|
||||
msgid "Created on"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__description
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_form
|
||||
msgid "Description"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__display_name
|
||||
msgid "Display Name"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:product.state,name:product_state.product_state_end
|
||||
msgid "End of Lifecycle"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__id
|
||||
msgid "ID"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:product.state,name:product_state.product_state_draft
|
||||
msgid "In Development"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state____last_update
|
||||
msgid "Last Modified on"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__write_uid
|
||||
msgid "Last Updated by"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__write_date
|
||||
msgid "Last Updated on"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:product.state,name:product_state.product_state_sellable
|
||||
msgid "Normal"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__products_count
|
||||
msgid "Number of products"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:product.state,name:product_state.product_state_obsolete
|
||||
msgid "Obsolete"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.actions.act_window,name:product_state.action_open_single_product_state
|
||||
#: model:ir.model,name:product_state.model_product_state
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.product_state_search_form_view
|
||||
#, fuzzy
|
||||
msgid "Product State"
|
||||
msgstr "Predloga proizvoda"
|
||||
|
||||
#. module: product_state
|
||||
#: sql_constraint:product.state:0
|
||||
msgid "Product State Code must be unique."
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.ui.menu,name:product_state.menu_product_state
|
||||
#, fuzzy
|
||||
msgid "Product States"
|
||||
msgstr "Predloga proizvoda"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_product__state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_template__state
|
||||
#, fuzzy
|
||||
msgid "Product Status"
|
||||
msgstr "Predloga proizvoda"
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model,name:product_state.model_product_template
|
||||
msgid "Product Template"
|
||||
msgstr "Predloga proizvoda"
|
||||
|
||||
#. module: product_state
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_form
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_kanban
|
||||
msgid "Products"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,help:product_state.field_product_product__product_state_id
|
||||
#: model:ir.model.fields,help:product_state.field_product_template__product_state_id
|
||||
msgid "Select a state for this product"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__sequence
|
||||
msgid "Sequence"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.actions.act_window,name:product_state.action_product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_product__product_state_id
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_template__product_state_id
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.view_product_template_search_state
|
||||
msgid "State"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__code
|
||||
msgid "State Code"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__name
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_form
|
||||
msgid "State Name"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.actions.act_window,name:product_state.action_open_state_products
|
||||
#: model:ir.model.fields,field_description:product_state.field_product_state__product_ids
|
||||
msgid "State Products"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model:ir.model.fields,help:product_state.field_product_state__sequence
|
||||
msgid "Used to order the States"
|
||||
msgstr ""
|
||||
|
||||
#. module: product_state
|
||||
#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_tree
|
||||
#, fuzzy
|
||||
msgid "product.state"
|
||||
msgstr "Predloga proizvoda"
|
7
product_state/migrations/12.0.2.0.0/post-migration.py
Normal file
7
product_state/migrations/12.0.2.0.0/post-migration.py
Normal file
|
@ -0,0 +1,7 @@
|
|||
# Copyright 2020 Tecnativa - Pedro M. Baeza
|
||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
|
||||
from odoo.addons.product_state.hooks import post_init_hook
|
||||
|
||||
|
||||
def migrate(cr, version):
|
||||
post_init_hook(cr, False)
|
4
product_state/models/__init__.py
Normal file
4
product_state/models/__init__.py
Normal file
|
@ -0,0 +1,4 @@
|
|||
# Copyright 2017 ACSONE SA/NV (<http://acsone.eu>)
|
||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
|
||||
|
||||
from . import product_template
|
79
product_state/models/product_template.py
Normal file
79
product_state/models/product_template.py
Normal file
|
@ -0,0 +1,79 @@
|
|||
# Copyright 2017 ACSONE SA/NV (<http://acsone.eu>)
|
||||
# Copyright 2020 Tecnativa - Pedro M. Baeza
|
||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
|
||||
|
||||
from odoo import api, models, fields
|
||||
|
||||
|
||||
class ProductState(models.Model):
|
||||
_name = "product.state"
|
||||
_description = "Product State"
|
||||
_order = "sequence, id"
|
||||
|
||||
name = fields.Char("State Name", required=True, translate=True)
|
||||
code = fields.Char("State Code", required=True)
|
||||
sequence = fields.Integer("Sequence", help="Used to order the States", default=25)
|
||||
description = fields.Text(translate=True)
|
||||
product_ids = fields.One2many(
|
||||
"product.template", "product_state_id", string="State Products",
|
||||
)
|
||||
products_count = fields.Integer(
|
||||
string="Number of products", compute="_compute_products_count",
|
||||
)
|
||||
|
||||
_sql_constraints = [
|
||||
("code_unique", "UNIQUE(code)", "Product State Code must be unique.")
|
||||
]
|
||||
|
||||
@api.depends("product_ids")
|
||||
def _compute_products_count(self):
|
||||
data = self.env["product.template"].read_group(
|
||||
[("product_state_id", "in", self.ids)],
|
||||
["product_state_id"],
|
||||
["product_state_id"],
|
||||
)
|
||||
mapped_data = {
|
||||
record["product_state_id"][0]: record["product_state_id_count"]
|
||||
for record in data
|
||||
}
|
||||
for state in self:
|
||||
state.products_count = mapped_data.get(state.id, 0)
|
||||
|
||||
|
||||
class ProductTemplate(models.Model):
|
||||
_inherit = "product.template"
|
||||
|
||||
state = fields.Char(
|
||||
string="Product Status",
|
||||
index=True,
|
||||
compute="_compute_product_state",
|
||||
inverse="_inverse_product_state",
|
||||
store=True,
|
||||
)
|
||||
product_state_id = fields.Many2one(
|
||||
"product.state", string="State", help="Select a state for this product",
|
||||
)
|
||||
|
||||
@api.depends("product_state_id")
|
||||
def _compute_product_state(self):
|
||||
for product_tmpl in self:
|
||||
product_tmpl.state = product_tmpl.product_state_id.code
|
||||
|
||||
def _inverse_product_state(self):
|
||||
ProductState = self.env["product.state"]
|
||||
state_mapping = {}
|
||||
for product_tmpl in self.filtered("state"):
|
||||
product_state = state_mapping.get(product_tmpl.state)
|
||||
if not product_state:
|
||||
product_state = ProductState.search(
|
||||
[("code", "=", product_tmpl.state)], limit=1
|
||||
)
|
||||
if not product_state:
|
||||
product_state = ProductState.create({
|
||||
"name": product_tmpl.state,
|
||||
"code": product_tmpl.state,
|
||||
})
|
||||
state_mapping[product_tmpl.state] = product_state
|
||||
if product_tmpl.product_state_id != product_state:
|
||||
product_tmpl.product_state_id = product_state
|
||||
self.filtered(lambda x: not x.state).write({'product_state_id': False})
|
5
product_state/readme/CONTRIBUTORS.rst
Normal file
5
product_state/readme/CONTRIBUTORS.rst
Normal file
|
@ -0,0 +1,5 @@
|
|||
* 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>
|
6
product_state/readme/DESCRIPTION.rst
Normal file
6
product_state/readme/DESCRIPTION.rst
Normal file
|
@ -0,0 +1,6 @@
|
|||
This module introduces the state field on product template and allows simple product life cycle:
|
||||
|
||||
- draft: In Development
|
||||
- sellable: Normal
|
||||
- end: End of Lifecycle
|
||||
- obsolete: Obsolete
|
9
product_state/readme/USAGE.rst
Normal file
9
product_state/readme/USAGE.rst
Normal file
|
@ -0,0 +1,9 @@
|
|||
To create a new state:
|
||||
|
||||
#. Go to *Sales > Configuration > Products > Product States*.
|
||||
#. You can set its name and a description.
|
||||
|
||||
To add a product to a state:
|
||||
|
||||
#. Go to the product itself and edit.
|
||||
#. You can select the desired status in the list of buttons above the form.
|
3
product_state/security/ir.model.access.csv
Normal file
3
product_state/security/ir.model.access.csv
Normal file
|
@ -0,0 +1,3 @@
|
|||
"id","name","model_id:id","group_id:id","perm_read","perm_write","perm_create","perm_unlink"
|
||||
"access_product_state_product_manager","product.state","model_product_state","base.group_partner_manager",1,1,1,1
|
||||
"access_product_state_public","product.state.public","model_product_state",,1,0,0,0
|
|
BIN
product_state/static/description/icon.png
Normal file
BIN
product_state/static/description/icon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 9.2 KiB |
445
product_state/static/description/index.html
Normal file
445
product_state/static/description/index.html
Normal file
|
@ -0,0 +1,445 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<meta name="generator" content="Docutils 0.15.1: http://docutils.sourceforge.net/" />
|
||||
<title>Product State</title>
|
||||
<style type="text/css">
|
||||
|
||||
/*
|
||||
:Author: David Goodger (goodger@python.org)
|
||||
:Id: $Id: html4css1.css 7952 2016-07-26 18:15:59Z milde $
|
||||
:Copyright: This stylesheet has been placed in the public domain.
|
||||
|
||||
Default cascading style sheet for the HTML output of Docutils.
|
||||
|
||||
See http://docutils.sf.net/docs/howto/html-stylesheets.html for how to
|
||||
customize this style sheet.
|
||||
*/
|
||||
|
||||
/* used to remove borders from tables and images */
|
||||
.borderless, table.borderless td, table.borderless th {
|
||||
border: 0 }
|
||||
|
||||
table.borderless td, table.borderless th {
|
||||
/* Override padding for "table.docutils td" with "! important".
|
||||
The right padding separates the table cells. */
|
||||
padding: 0 0.5em 0 0 ! important }
|
||||
|
||||
.first {
|
||||
/* Override more specific margin styles with "! important". */
|
||||
margin-top: 0 ! important }
|
||||
|
||||
.last, .with-subtitle {
|
||||
margin-bottom: 0 ! important }
|
||||
|
||||
.hidden {
|
||||
display: none }
|
||||
|
||||
.subscript {
|
||||
vertical-align: sub;
|
||||
font-size: smaller }
|
||||
|
||||
.superscript {
|
||||
vertical-align: super;
|
||||
font-size: smaller }
|
||||
|
||||
a.toc-backref {
|
||||
text-decoration: none ;
|
||||
color: black }
|
||||
|
||||
blockquote.epigraph {
|
||||
margin: 2em 5em ; }
|
||||
|
||||
dl.docutils dd {
|
||||
margin-bottom: 0.5em }
|
||||
|
||||
object[type="image/svg+xml"], object[type="application/x-shockwave-flash"] {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* Uncomment (and remove this text!) to get bold-faced definition list terms
|
||||
dl.docutils dt {
|
||||
font-weight: bold }
|
||||
*/
|
||||
|
||||
div.abstract {
|
||||
margin: 2em 5em }
|
||||
|
||||
div.abstract p.topic-title {
|
||||
font-weight: bold ;
|
||||
text-align: center }
|
||||
|
||||
div.admonition, div.attention, div.caution, div.danger, div.error,
|
||||
div.hint, div.important, div.note, div.tip, div.warning {
|
||||
margin: 2em ;
|
||||
border: medium outset ;
|
||||
padding: 1em }
|
||||
|
||||
div.admonition p.admonition-title, div.hint p.admonition-title,
|
||||
div.important p.admonition-title, div.note p.admonition-title,
|
||||
div.tip p.admonition-title {
|
||||
font-weight: bold ;
|
||||
font-family: sans-serif }
|
||||
|
||||
div.attention p.admonition-title, div.caution p.admonition-title,
|
||||
div.danger p.admonition-title, div.error p.admonition-title,
|
||||
div.warning p.admonition-title, .code .error {
|
||||
color: red ;
|
||||
font-weight: bold ;
|
||||
font-family: sans-serif }
|
||||
|
||||
/* Uncomment (and remove this text!) to get reduced vertical space in
|
||||
compound paragraphs.
|
||||
div.compound .compound-first, div.compound .compound-middle {
|
||||
margin-bottom: 0.5em }
|
||||
|
||||
div.compound .compound-last, div.compound .compound-middle {
|
||||
margin-top: 0.5em }
|
||||
*/
|
||||
|
||||
div.dedication {
|
||||
margin: 2em 5em ;
|
||||
text-align: center ;
|
||||
font-style: italic }
|
||||
|
||||
div.dedication p.topic-title {
|
||||
font-weight: bold ;
|
||||
font-style: normal }
|
||||
|
||||
div.figure {
|
||||
margin-left: 2em ;
|
||||
margin-right: 2em }
|
||||
|
||||
div.footer, div.header {
|
||||
clear: both;
|
||||
font-size: smaller }
|
||||
|
||||
div.line-block {
|
||||
display: block ;
|
||||
margin-top: 1em ;
|
||||
margin-bottom: 1em }
|
||||
|
||||
div.line-block div.line-block {
|
||||
margin-top: 0 ;
|
||||
margin-bottom: 0 ;
|
||||
margin-left: 1.5em }
|
||||
|
||||
div.sidebar {
|
||||
margin: 0 0 0.5em 1em ;
|
||||
border: medium outset ;
|
||||
padding: 1em ;
|
||||
background-color: #ffffee ;
|
||||
width: 40% ;
|
||||
float: right ;
|
||||
clear: right }
|
||||
|
||||
div.sidebar p.rubric {
|
||||
font-family: sans-serif ;
|
||||
font-size: medium }
|
||||
|
||||
div.system-messages {
|
||||
margin: 5em }
|
||||
|
||||
div.system-messages h1 {
|
||||
color: red }
|
||||
|
||||
div.system-message {
|
||||
border: medium outset ;
|
||||
padding: 1em }
|
||||
|
||||
div.system-message p.system-message-title {
|
||||
color: red ;
|
||||
font-weight: bold }
|
||||
|
||||
div.topic {
|
||||
margin: 2em }
|
||||
|
||||
h1.section-subtitle, h2.section-subtitle, h3.section-subtitle,
|
||||
h4.section-subtitle, h5.section-subtitle, h6.section-subtitle {
|
||||
margin-top: 0.4em }
|
||||
|
||||
h1.title {
|
||||
text-align: center }
|
||||
|
||||
h2.subtitle {
|
||||
text-align: center }
|
||||
|
||||
hr.docutils {
|
||||
width: 75% }
|
||||
|
||||
img.align-left, .figure.align-left, object.align-left, table.align-left {
|
||||
clear: left ;
|
||||
float: left ;
|
||||
margin-right: 1em }
|
||||
|
||||
img.align-right, .figure.align-right, object.align-right, table.align-right {
|
||||
clear: right ;
|
||||
float: right ;
|
||||
margin-left: 1em }
|
||||
|
||||
img.align-center, .figure.align-center, object.align-center {
|
||||
display: block;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
table.align-center {
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
.align-left {
|
||||
text-align: left }
|
||||
|
||||
.align-center {
|
||||
clear: both ;
|
||||
text-align: center }
|
||||
|
||||
.align-right {
|
||||
text-align: right }
|
||||
|
||||
/* reset inner alignment in figures */
|
||||
div.align-right {
|
||||
text-align: inherit }
|
||||
|
||||
/* div.align-center * { */
|
||||
/* text-align: left } */
|
||||
|
||||
.align-top {
|
||||
vertical-align: top }
|
||||
|
||||
.align-middle {
|
||||
vertical-align: middle }
|
||||
|
||||
.align-bottom {
|
||||
vertical-align: bottom }
|
||||
|
||||
ol.simple, ul.simple {
|
||||
margin-bottom: 1em }
|
||||
|
||||
ol.arabic {
|
||||
list-style: decimal }
|
||||
|
||||
ol.loweralpha {
|
||||
list-style: lower-alpha }
|
||||
|
||||
ol.upperalpha {
|
||||
list-style: upper-alpha }
|
||||
|
||||
ol.lowerroman {
|
||||
list-style: lower-roman }
|
||||
|
||||
ol.upperroman {
|
||||
list-style: upper-roman }
|
||||
|
||||
p.attribution {
|
||||
text-align: right ;
|
||||
margin-left: 50% }
|
||||
|
||||
p.caption {
|
||||
font-style: italic }
|
||||
|
||||
p.credits {
|
||||
font-style: italic ;
|
||||
font-size: smaller }
|
||||
|
||||
p.label {
|
||||
white-space: nowrap }
|
||||
|
||||
p.rubric {
|
||||
font-weight: bold ;
|
||||
font-size: larger ;
|
||||
color: maroon ;
|
||||
text-align: center }
|
||||
|
||||
p.sidebar-title {
|
||||
font-family: sans-serif ;
|
||||
font-weight: bold ;
|
||||
font-size: larger }
|
||||
|
||||
p.sidebar-subtitle {
|
||||
font-family: sans-serif ;
|
||||
font-weight: bold }
|
||||
|
||||
p.topic-title {
|
||||
font-weight: bold }
|
||||
|
||||
pre.address {
|
||||
margin-bottom: 0 ;
|
||||
margin-top: 0 ;
|
||||
font: inherit }
|
||||
|
||||
pre.literal-block, pre.doctest-block, pre.math, pre.code {
|
||||
margin-left: 2em ;
|
||||
margin-right: 2em }
|
||||
|
||||
pre.code .ln { color: grey; } /* line numbers */
|
||||
pre.code, code { background-color: #eeeeee }
|
||||
pre.code .comment, code .comment { color: #5C6576 }
|
||||
pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold }
|
||||
pre.code .literal.string, code .literal.string { color: #0C5404 }
|
||||
pre.code .name.builtin, code .name.builtin { color: #352B84 }
|
||||
pre.code .deleted, code .deleted { background-color: #DEB0A1}
|
||||
pre.code .inserted, code .inserted { background-color: #A3D289}
|
||||
|
||||
span.classifier {
|
||||
font-family: sans-serif ;
|
||||
font-style: oblique }
|
||||
|
||||
span.classifier-delimiter {
|
||||
font-family: sans-serif ;
|
||||
font-weight: bold }
|
||||
|
||||
span.interpreted {
|
||||
font-family: sans-serif }
|
||||
|
||||
span.option {
|
||||
white-space: nowrap }
|
||||
|
||||
span.pre {
|
||||
white-space: pre }
|
||||
|
||||
span.problematic {
|
||||
color: red }
|
||||
|
||||
span.section-subtitle {
|
||||
/* font-size relative to parent (h1..h6 element) */
|
||||
font-size: 80% }
|
||||
|
||||
table.citation {
|
||||
border-left: solid 1px gray;
|
||||
margin-left: 1px }
|
||||
|
||||
table.docinfo {
|
||||
margin: 2em 4em }
|
||||
|
||||
table.docutils {
|
||||
margin-top: 0.5em ;
|
||||
margin-bottom: 0.5em }
|
||||
|
||||
table.footnote {
|
||||
border-left: solid 1px black;
|
||||
margin-left: 1px }
|
||||
|
||||
table.docutils td, table.docutils th,
|
||||
table.docinfo td, table.docinfo th {
|
||||
padding-left: 0.5em ;
|
||||
padding-right: 0.5em ;
|
||||
vertical-align: top }
|
||||
|
||||
table.docutils th.field-name, table.docinfo th.docinfo-name {
|
||||
font-weight: bold ;
|
||||
text-align: left ;
|
||||
white-space: nowrap ;
|
||||
padding-left: 0 }
|
||||
|
||||
/* "booktabs" style (no vertical lines) */
|
||||
table.docutils.booktabs {
|
||||
border: 0px;
|
||||
border-top: 2px solid;
|
||||
border-bottom: 2px solid;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
table.docutils.booktabs * {
|
||||
border: 0px;
|
||||
}
|
||||
table.docutils.booktabs th {
|
||||
border-bottom: thin solid;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
h1 tt.docutils, h2 tt.docutils, h3 tt.docutils,
|
||||
h4 tt.docutils, h5 tt.docutils, h6 tt.docutils {
|
||||
font-size: 100% }
|
||||
|
||||
ul.auto-toc {
|
||||
list-style-type: none }
|
||||
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="document" id="product-state">
|
||||
<h1 class="title">Product State</h1>
|
||||
|
||||
<!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
!! This file is generated by oca-gen-addon-readme !!
|
||||
!! changes will be overwritten. !!
|
||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
|
||||
<p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/OCA/product-attribute/tree/12.0/product_state"><img alt="OCA/product-attribute" src="https://img.shields.io/badge/github-OCA%2Fproduct--attribute-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/product-attribute-12-0/product-attribute-12-0-product_state"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/135/12.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p>
|
||||
<p>This module introduces the state field on product template and allows simple product life cycle:</p>
|
||||
<ul class="simple">
|
||||
<li>draft: In Development</li>
|
||||
<li>sellable: Normal</li>
|
||||
<li>end: End of Lifecycle</li>
|
||||
<li>obsolete: Obsolete</li>
|
||||
</ul>
|
||||
<p><strong>Table of contents</strong></p>
|
||||
<div class="contents local topic" id="contents">
|
||||
<ul class="simple">
|
||||
<li><a class="reference internal" href="#usage" id="id1">Usage</a></li>
|
||||
<li><a class="reference internal" href="#bug-tracker" id="id2">Bug Tracker</a></li>
|
||||
<li><a class="reference internal" href="#credits" id="id3">Credits</a><ul>
|
||||
<li><a class="reference internal" href="#authors" id="id4">Authors</a></li>
|
||||
<li><a class="reference internal" href="#contributors" id="id5">Contributors</a></li>
|
||||
<li><a class="reference internal" href="#maintainers" id="id6">Maintainers</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="section" id="usage">
|
||||
<h1><a class="toc-backref" href="#id1">Usage</a></h1>
|
||||
<p>To create a new state:</p>
|
||||
<ol class="arabic simple">
|
||||
<li>Go to <em>Sales > Configuration > Products > Product States</em>.</li>
|
||||
<li>You can set its name and a description.</li>
|
||||
</ol>
|
||||
<p>To add a product to a state:</p>
|
||||
<ol class="arabic simple">
|
||||
<li>Go to the product itself and edit.</li>
|
||||
<li>You can select the desired status in the list of buttons above the form.</li>
|
||||
</ol>
|
||||
</div>
|
||||
<div class="section" id="bug-tracker">
|
||||
<h1><a class="toc-backref" href="#id2">Bug Tracker</a></h1>
|
||||
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/product-attribute/issues">GitHub Issues</a>.
|
||||
In case of trouble, please check there if your issue has already been reported.
|
||||
If you spotted it first, help us smashing it by providing a detailed and welcomed
|
||||
<a class="reference external" href="https://github.com/OCA/product-attribute/issues/new?body=module:%20product_state%0Aversion:%2012.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
|
||||
<p>Do not contact contributors directly about support or help with technical issues.</p>
|
||||
</div>
|
||||
<div class="section" id="credits">
|
||||
<h1><a class="toc-backref" href="#id3">Credits</a></h1>
|
||||
<div class="section" id="authors">
|
||||
<h2><a class="toc-backref" href="#id4">Authors</a></h2>
|
||||
<ul class="simple">
|
||||
<li>ACSONE SA/NV</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="section" id="contributors">
|
||||
<h2><a class="toc-backref" href="#id5">Contributors</a></h2>
|
||||
<ul class="simple">
|
||||
<li>Cedric Pigeon <<a class="reference external" href="mailto:cedric.pigeon@acsone.eu">cedric.pigeon@acsone.eu</a>></li>
|
||||
<li>Alexandre Saunier <<a class="reference external" href="mailto:alexandre.saunier@camptocamp.com">alexandre.saunier@camptocamp.com</a>></li>
|
||||
<li>Nikul Chaudhary <<a class="reference external" href="mailto:nikulchaudhary2112@gmail.com">nikulchaudhary2112@gmail.com</a>></li>
|
||||
<li>Eduardo Magdalena <<a class="reference external" href="mailto:emagdalena@c2i.es">emagdalena@c2i.es</a>> (C2i Change 2 improve <a class="reference external" href="http://www.c2i.es">http://www.c2i.es</a>)</li>
|
||||
<li>Andrii Skrypka <<a class="reference external" href="mailto:andrijskrypa@ukr.net">andrijskrypa@ukr.net</a>></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="section" id="maintainers">
|
||||
<h2><a class="toc-backref" href="#id6">Maintainers</a></h2>
|
||||
<p>This module is maintained by the OCA.</p>
|
||||
<a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a>
|
||||
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
|
||||
mission is to support the collaborative development of Odoo features and
|
||||
promote its widespread use.</p>
|
||||
<p>Current <a class="reference external" href="https://odoo-community.org/page/maintainer-role">maintainer</a>:</p>
|
||||
<p><a class="reference external" href="https://github.com/emagdalenaC2i"><img alt="emagdalenaC2i" src="https://github.com/emagdalenaC2i.png?size=40px" /></a></p>
|
||||
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/product-attribute/tree/12.0/product_state">OCA/product-attribute</a> project on GitHub.</p>
|
||||
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
140
product_state/views/product_views.xml
Normal file
140
product_state/views/product_views.xml
Normal file
|
@ -0,0 +1,140 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<record id="product_state_search_form_view" model="ir.ui.view">
|
||||
<field name="name">product.state.search.form</field>
|
||||
<field name="model">product.state</field>
|
||||
<field name="arch" type="xml">
|
||||
<search string="Product State">
|
||||
<field name="name"/>
|
||||
</search>
|
||||
</field>
|
||||
</record>
|
||||
<act_window
|
||||
id="action_open_state_products"
|
||||
name="State Products"
|
||||
res_model="product.template"
|
||||
view_type="form"
|
||||
view_mode="kanban,form,tree"
|
||||
domain="[('product_state_id', '=', active_id)]"/>
|
||||
<act_window
|
||||
id="action_open_single_product_state"
|
||||
name="Product State"
|
||||
res_model="product.state"
|
||||
view_type="form"
|
||||
view_mode="kanban,form,tree"
|
||||
target="current"
|
||||
domain="[('product_ids', 'in', active_id)]"/>
|
||||
<record id="view_product_state_form" model="ir.ui.view">
|
||||
<field name="name">product.state.form</field>
|
||||
<field name="model">product.state</field>
|
||||
<field name="arch" type="xml">
|
||||
<form>
|
||||
<sheet>
|
||||
<div class="oe_button_box" name="button_box">
|
||||
<button name="%(action_open_state_products)d"
|
||||
type="action"
|
||||
class="oe_stat_button"
|
||||
icon="fa-cubes">
|
||||
<field name="products_count" widget="statinfo" string="Products"/>
|
||||
</button>
|
||||
</div>
|
||||
<div class="oe_title">
|
||||
<label for="name" string="State Name" class="oe_edit_only"/>
|
||||
<h1>
|
||||
<field name="name"/>
|
||||
</h1>
|
||||
</div>
|
||||
<group string="Code">
|
||||
<field name="code" nolabel="1"/>
|
||||
</group>
|
||||
<group string="Description">
|
||||
<field name="description" nolabel="1"/>
|
||||
</group>
|
||||
</sheet>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
<record id="view_product_state_tree" model="ir.ui.view">
|
||||
<field name="name">product.state.tree</field>
|
||||
<field name="model">product.state</field>
|
||||
<field name="arch" type="xml">
|
||||
<tree string="product.state">
|
||||
<field name="name"/>
|
||||
<field name="description"/>
|
||||
</tree>
|
||||
</field>
|
||||
</record>
|
||||
<record id="view_product_state_kanban" model="ir.ui.view">
|
||||
<field name="name">product.state.kanban</field>
|
||||
<field name="model">product.state</field>
|
||||
<field name="arch" type="xml">
|
||||
<kanban>
|
||||
<field name="id"/>
|
||||
<field name="products_count"/>
|
||||
<field name="description"/>
|
||||
<templates>
|
||||
<t t-name="kanban-box">
|
||||
<div class="oe_kanban_global_click">
|
||||
<div class="oe_kanban_details">
|
||||
<h4>
|
||||
<field name="name"/>
|
||||
</h4>
|
||||
<div>
|
||||
<a name="%(product_state.action_open_state_products)d" type="action">
|
||||
<t t-esc="record.products_count.value"/> Products
|
||||
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</t>
|
||||
</templates>
|
||||
</kanban>
|
||||
</field>
|
||||
</record>
|
||||
<record id="view_product_template_search_state" model="ir.ui.view">
|
||||
<field name="name">product.template.search.state</field>
|
||||
<field name="model">product.template</field>
|
||||
<field name="inherit_id" ref="product.product_template_search_view"/>
|
||||
<field name="arch" type="xml">
|
||||
<field name="name" position="after">
|
||||
<field name="product_state_id"/>
|
||||
<filter string="State" name="groupby_state" domain="[]"
|
||||
context="{'group_by' : 'product_state_id'}"/>
|
||||
<separator/>
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
<record id="product_template_form_view" model="ir.ui.view">
|
||||
<field name="name">product.template.common.form</field>
|
||||
<field name="model">product.template</field>
|
||||
<field name="inherit_id" ref="product.product_template_form_view"/>
|
||||
<field name="arch" type="xml">
|
||||
<header position="inside">
|
||||
<field name="product_state_id" widget="statusbar" clickable="True"/>
|
||||
<field name="state" invisible="1"/>
|
||||
</header>
|
||||
</field>
|
||||
</record>
|
||||
<record id="product_template_view_tree_inherit_product_state_id" model="ir.ui.view">
|
||||
<field name="name">product.template.tree (product_state_id)</field>
|
||||
<field name="model">product.template</field>
|
||||
<field name="inherit_id" ref="product.product_template_tree_view"/>
|
||||
<field name="priority">50</field>
|
||||
<field name="arch" type="xml">
|
||||
<field name="type" position="after">
|
||||
<field name="state"/></field>
|
||||
</field>
|
||||
</record>
|
||||
<record model="ir.actions.act_window" id="action_product_state">
|
||||
<field name="name">State</field>
|
||||
<field name="res_model">product.state</field>
|
||||
<field name="view_type">form</field>
|
||||
<field name="view_mode">kanban,form,tree</field>
|
||||
</record>
|
||||
<menuitem
|
||||
name="Product States"
|
||||
id="menu_product_state"
|
||||
action="action_product_state"
|
||||
parent="sale.prod_config_main"/>
|
||||
</odoo>
|
Loading…
Add table
Reference in a new issue