-
-
Notifications
You must be signed in to change notification settings - Fork 714
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by StefanRijnhart
- Loading branch information
Showing
59 changed files
with
5,559 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
================ | ||
Product Sequence | ||
================ | ||
|
||
.. | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!! This file is generated by oca-gen-addon-readme !! | ||
!! changes will be overwritten. !! | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!! source digest: sha256:721cb40dcc59ac2a2e56aa749db8c021f7a1e9384b66290a46f694ae7753a5ee | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
.. |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/18.0/product_sequence | ||
: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-18-0/product-attribute-18-0-product_sequence | ||
:alt: Translate me on Weblate | ||
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png | ||
:target: https://runboat.odoo-community.org/builds?repo=OCA/product-attribute&target_branch=18.0 | ||
:alt: Try me on Runboat | ||
|
||
|badge1| |badge2| |badge3| |badge4| |badge5| | ||
|
||
This module allows to associate a sequence to the product reference. The | ||
reference (default code) is unique (SQL constraint) and required. | ||
|
||
You can optionally specify different sequences for different product | ||
categories. | ||
|
||
**Table of contents** | ||
|
||
.. contents:: | ||
:local: | ||
|
||
Usage | ||
===== | ||
|
||
To specify a different sequence for a product category proceed as | ||
follows: | ||
|
||
1. Go to the a Product Category form view. (**note:** you will need to | ||
install Inventory app to be able to access to the form view, | ||
*Inventory > Configuration > Products > Products Categories*; or | ||
create a menuitem manually). | ||
2. Fill the *Prefix for Product Internal Reference* as desired. | ||
3. Under the settings (Settings -> General Settings -> Product | ||
Sequences), you can specify whether the prefix of the parent category | ||
should be used if no prefix has been specified for the category. | ||
|
||
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 to smash it by providing a detailed and welcomed | ||
`feedback <https://github.com/OCA/product-attribute/issues/new?body=module:%20product_sequence%0Aversion:%2018.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 | ||
------- | ||
|
||
* Zikzakmedia SL | ||
* Sodexis | ||
|
||
Contributors | ||
------------ | ||
|
||
- Angel Moya <[email protected]> | ||
- Graeme Gellatly <[email protected]> | ||
- Sodexis <[email protected]> | ||
- Lois Rilo <[email protected]> | ||
- Sudhir Arya <[email protected]> | ||
- Alexandre Díaz <[email protected]> | ||
- Sergio Teruel <[email protected]> | ||
- Watthanun Khorchai <[email protected]> | ||
- Marie Lejeune <[email protected]> | ||
- Nils Coenen <[email protected]> | ||
- Chris Bergman <[email protected]> | ||
|
||
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. | ||
|
||
This module is part of the `OCA/product-attribute <https://github.com/OCA/product-attribute/tree/18.0/product_sequence>`_ project on GitHub. | ||
|
||
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
from . import models | ||
from .hooks import pre_init_hook |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Copyright 2004 Tiny SPRL | ||
# Copyright 2016 Sodexis | ||
# Copyright 2018 ForgeFlow S.L. | ||
# (http://www.forgeflow.com) | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). | ||
|
||
{ | ||
"name": "Product Sequence", | ||
"version": "18.0.1.0.0", | ||
"author": "Zikzakmedia SL, Sodexis, Odoo Community Association (OCA)", | ||
"website": "https://github.com/OCA/product-attribute", | ||
"license": "AGPL-3", | ||
"category": "Product", | ||
"depends": ["product"], | ||
"data": [ | ||
"data/product_sequence.xml", | ||
"views/product_category.xml", | ||
"views/res_config_settings_views.xml", | ||
], | ||
"pre_init_hook": "pre_init_hook", | ||
"installable": True, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<odoo noupdate="1"> | ||
<record id="seq_product_auto" model="ir.sequence"> | ||
<field name="name">Product</field> | ||
<field name="code">product.product</field> | ||
<field eval="5" name="padding" /> | ||
<field name="prefix">PR/</field> | ||
</record> | ||
</odoo> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Copyright 2004 Tiny SPRL | ||
# Copyright 2016 Sodexis | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). | ||
|
||
|
||
def pre_init_hook(env): | ||
""" | ||
Updates existing codes matching the default '/' or | ||
empty. Primarily this ensures installation does not | ||
fail for demo data. | ||
:param cr: database cursor | ||
:return: void | ||
""" | ||
env.cr.execute( | ||
"UPDATE product_product " | ||
"SET default_code = '!!mig!!' || id " | ||
"WHERE default_code IS NULL OR default_code = '/';" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,117 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * product_sequence | ||
# | ||
# Translators: | ||
# OCA Transbot <[email protected]>, 2016 | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 10.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2016-11-01 20:03+0000\n" | ||
"PO-Revision-Date: 2016-11-01 20:03+0000\n" | ||
"Last-Translator: OCA Transbot <[email protected]>, 2016\n" | ||
"Language-Team: Arabic (https://www.transifex.com/oca/teams/23907/ar/)\n" | ||
"Language: ar\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: \n" | ||
"Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 " | ||
"&& n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n" | ||
|
||
#. module: product_sequence | ||
#. odoo-python | ||
#: code:addons/product_sequence/models/product_product.py:0 | ||
#, python-format | ||
msgid "-copy" | ||
msgstr "" | ||
|
||
#. module: product_sequence | ||
#: model:ir.model,name:product_sequence.model_res_company | ||
msgid "Companies" | ||
msgstr "" | ||
|
||
#. module: product_sequence | ||
#: model:ir.model,name:product_sequence.model_res_config_settings | ||
msgid "Config Settings" | ||
msgstr "" | ||
|
||
#. module: product_sequence | ||
#: model:ir.model.fields,field_description:product_sequence.field_product_product__default_code | ||
msgid "Internal Reference" | ||
msgstr "" | ||
|
||
#. module: product_sequence | ||
#: model:ir.model.fields,field_description:product_sequence.field_product_category__code_prefix | ||
msgid "Prefix for Product Internal Reference" | ||
msgstr "" | ||
|
||
#. module: product_sequence | ||
#: model:ir.model.fields,help:product_sequence.field_product_category__code_prefix | ||
msgid "" | ||
"Prefix used to generate the internal reference for products created with " | ||
"this category. If blank the default sequence will be used." | ||
msgstr "" | ||
|
||
#. module: product_sequence | ||
#: model:ir.model,name:product_sequence.model_product_category | ||
msgid "Product Category" | ||
msgstr "" | ||
|
||
#. module: product_sequence | ||
#: model:ir.model.fields,field_description:product_sequence.field_product_category__sequence_id | ||
msgid "Product Sequence" | ||
msgstr "" | ||
|
||
#. module: product_sequence | ||
#: model_terms:ir.ui.view,arch_db:product_sequence.res_config_settings_view_form | ||
msgid "Product Sequences" | ||
msgstr "" | ||
|
||
#. module: product_sequence | ||
#: model:ir.model,name:product_sequence.model_product_product | ||
msgid "Product Variant" | ||
msgstr "" | ||
|
||
#. module: product_sequence | ||
#: model:ir.model,name:product_sequence.model_ir_sequence | ||
msgid "Sequence" | ||
msgstr "" | ||
|
||
#. module: product_sequence | ||
#: model:ir.model.fields,help:product_sequence.field_product_product__default_code | ||
msgid "" | ||
"Set to '/' and save if you want a new internal reference to be proposed." | ||
msgstr "" | ||
|
||
#. module: product_sequence | ||
#: model:ir.model.fields,help:product_sequence.field_product_category__sequence_id | ||
msgid "" | ||
"This field contains the information related to the numbering of the journal " | ||
"entries of this journal." | ||
msgstr "" | ||
|
||
#. module: product_sequence | ||
#: model:ir.model.fields,field_description:product_sequence.field_res_company__use_parent_categories_to_determine_prefix | ||
#: model:ir.model.fields,field_description:product_sequence.field_res_config_settings__use_parent_categories_to_determine_prefix | ||
#: model_terms:ir.ui.view,arch_db:product_sequence.res_config_settings_view_form | ||
msgid "Use parent categories to determine the prefix" | ||
msgstr "" | ||
|
||
#. module: product_sequence | ||
#: model_terms:ir.ui.view,arch_db:product_sequence.res_config_settings_view_form | ||
msgid "" | ||
"Use parent categories to determine the prefix if the category has no " | ||
"settings for the prefix" | ||
msgstr "" | ||
|
||
#. module: product_sequence | ||
#: model:ir.model.fields,help:product_sequence.field_res_company__use_parent_categories_to_determine_prefix | ||
#: model:ir.model.fields,help:product_sequence.field_res_config_settings__use_parent_categories_to_determine_prefix | ||
msgid "" | ||
"Use parent categories to determine the prefix if the category has no " | ||
"settings for the prefix." | ||
msgstr "" | ||
|
||
#~ msgid "Manufacturer" | ||
#~ msgstr "مصنّع" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,116 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * product_sequence | ||
# | ||
# Translators: | ||
# OCA Transbot <[email protected]>, 2016 | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 10.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2016-11-01 20:03+0000\n" | ||
"PO-Revision-Date: 2016-11-01 20:03+0000\n" | ||
"Last-Translator: OCA Transbot <[email protected]>, 2016\n" | ||
"Language-Team: Bulgarian (https://www.transifex.com/oca/teams/23907/bg/)\n" | ||
"Language: bg\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_sequence | ||
#. odoo-python | ||
#: code:addons/product_sequence/models/product_product.py:0 | ||
#, python-format | ||
msgid "-copy" | ||
msgstr "" | ||
|
||
#. module: product_sequence | ||
#: model:ir.model,name:product_sequence.model_res_company | ||
msgid "Companies" | ||
msgstr "" | ||
|
||
#. module: product_sequence | ||
#: model:ir.model,name:product_sequence.model_res_config_settings | ||
msgid "Config Settings" | ||
msgstr "" | ||
|
||
#. module: product_sequence | ||
#: model:ir.model.fields,field_description:product_sequence.field_product_product__default_code | ||
msgid "Internal Reference" | ||
msgstr "" | ||
|
||
#. module: product_sequence | ||
#: model:ir.model.fields,field_description:product_sequence.field_product_category__code_prefix | ||
msgid "Prefix for Product Internal Reference" | ||
msgstr "" | ||
|
||
#. module: product_sequence | ||
#: model:ir.model.fields,help:product_sequence.field_product_category__code_prefix | ||
msgid "" | ||
"Prefix used to generate the internal reference for products created with " | ||
"this category. If blank the default sequence will be used." | ||
msgstr "" | ||
|
||
#. module: product_sequence | ||
#: model:ir.model,name:product_sequence.model_product_category | ||
msgid "Product Category" | ||
msgstr "" | ||
|
||
#. module: product_sequence | ||
#: model:ir.model.fields,field_description:product_sequence.field_product_category__sequence_id | ||
msgid "Product Sequence" | ||
msgstr "" | ||
|
||
#. module: product_sequence | ||
#: model_terms:ir.ui.view,arch_db:product_sequence.res_config_settings_view_form | ||
msgid "Product Sequences" | ||
msgstr "" | ||
|
||
#. module: product_sequence | ||
#: model:ir.model,name:product_sequence.model_product_product | ||
msgid "Product Variant" | ||
msgstr "" | ||
|
||
#. module: product_sequence | ||
#: model:ir.model,name:product_sequence.model_ir_sequence | ||
msgid "Sequence" | ||
msgstr "" | ||
|
||
#. module: product_sequence | ||
#: model:ir.model.fields,help:product_sequence.field_product_product__default_code | ||
msgid "" | ||
"Set to '/' and save if you want a new internal reference to be proposed." | ||
msgstr "" | ||
|
||
#. module: product_sequence | ||
#: model:ir.model.fields,help:product_sequence.field_product_category__sequence_id | ||
msgid "" | ||
"This field contains the information related to the numbering of the journal " | ||
"entries of this journal." | ||
msgstr "" | ||
|
||
#. module: product_sequence | ||
#: model:ir.model.fields,field_description:product_sequence.field_res_company__use_parent_categories_to_determine_prefix | ||
#: model:ir.model.fields,field_description:product_sequence.field_res_config_settings__use_parent_categories_to_determine_prefix | ||
#: model_terms:ir.ui.view,arch_db:product_sequence.res_config_settings_view_form | ||
msgid "Use parent categories to determine the prefix" | ||
msgstr "" | ||
|
||
#. module: product_sequence | ||
#: model_terms:ir.ui.view,arch_db:product_sequence.res_config_settings_view_form | ||
msgid "" | ||
"Use parent categories to determine the prefix if the category has no " | ||
"settings for the prefix" | ||
msgstr "" | ||
|
||
#. module: product_sequence | ||
#: model:ir.model.fields,help:product_sequence.field_res_company__use_parent_categories_to_determine_prefix | ||
#: model:ir.model.fields,help:product_sequence.field_res_config_settings__use_parent_categories_to_determine_prefix | ||
msgid "" | ||
"Use parent categories to determine the prefix if the category has no " | ||
"settings for the prefix." | ||
msgstr "" | ||
|
||
#~ msgid "Manufacturer" | ||
#~ msgstr "Производител" |
Oops, something went wrong.