-
-
Notifications
You must be signed in to change notification settings - Fork 173
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 gurneyalex
- Loading branch information
Showing
21 changed files
with
1,713 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,100 @@ | ||
=================== | ||
Product FAO Fishing | ||
=================== | ||
|
||
.. | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!! This file is generated by oca-gen-addon-readme !! | ||
!! changes will be overwritten. !! | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!! source digest: sha256:c3f59b7e2f9e0f9a856b80d761e3df11548e7d9afedd26c1ef8d4c685bdccc18 | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
.. |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%2Fcommunity--data--files-lightgray.png?logo=github | ||
:target: https://github.com/OCA/community-data-files/tree/17.0/product_fao_fishing | ||
:alt: OCA/community-data-files | ||
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png | ||
:target: https://translation.odoo-community.org/projects/community-data-files-17-0/community-data-files-17-0-product_fao_fishing | ||
: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/community-data-files&target_branch=17.0 | ||
:alt: Try me on Runboat | ||
|
||
|badge1| |badge2| |badge3| |badge4| |badge5| | ||
|
||
This module extends the functionality of product module to allow to set | ||
some data related to fishing areas and capture technologies as | ||
attributes. | ||
|
||
**Table of contents** | ||
|
||
.. contents:: | ||
:local: | ||
|
||
Configuration | ||
============= | ||
|
||
1. Go to *Sales > Configuration > Products > Attribute Values* | ||
|
||
- Update fish FAO areas if you want | ||
|
||
Usage | ||
===== | ||
|
||
1. Go to *Sales > Configuration > Settings* | ||
|
||
- Active "Variants and Options" and apply changes | ||
|
||
2. Go to *Sales > Products > Products* | ||
|
||
- In *Variants* tab you can add *FAO Fishing Areas* attribute and | ||
select an attribute value. | ||
|
||
Bug Tracker | ||
=========== | ||
|
||
Bugs are tracked on `GitHub Issues <https://github.com/OCA/community-data-files/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/community-data-files/issues/new?body=module:%20product_fao_fishing%0Aversion:%2017.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 | ||
------- | ||
|
||
* Tecnativa | ||
|
||
Contributors | ||
------------ | ||
|
||
- `Tecnativa <https://www.tecnativa.com>`__: | ||
|
||
- Sergio Teruel | ||
- Ernesto Tejeda | ||
|
||
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/community-data-files <https://github.com/OCA/community-data-files/tree/17.0/product_fao_fishing>`_ 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,3 @@ | ||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). | ||
|
||
from . import models |
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,19 @@ | ||
# Copyright 2018 Tecnativa - Sergio Teruel | ||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). | ||
{ | ||
"name": "Product FAO Fishing", | ||
"summary": "Set fishing areas and capture technology", | ||
"version": "17.0.1.0.0", | ||
"development_status": "Beta", | ||
"category": "Fishing", | ||
"website": "https://github.com/OCA/community-data-files", | ||
"author": "Tecnativa, Odoo Community Association (OCA)", | ||
"license": "AGPL-3", | ||
"installable": True, | ||
"depends": ["product"], | ||
"data": [ | ||
"data/product_fao_fishing_data.xml", | ||
"data/product_fao_fishing_technique_data.xml", | ||
"views/product_attribute_views.xml", | ||
], | ||
} |
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,153 @@ | ||
<?xml version="1.0" ?> | ||
<odoo noupdate="1"> | ||
<record id="fao_fishing_area" model="product.attribute"> | ||
<field name="name">FAO Fishing Areas</field> | ||
<field name="create_variant">no_variant</field> | ||
<field name="display_type">select</field> | ||
</record> | ||
<record id="fao_fishing_area_1" model="product.attribute.value"> | ||
<field name="fao_zone_code" eval="1" /> | ||
<field name="name">Africa - Inland waters</field> | ||
<field name="attribute_id" ref="fao_fishing_area" /> | ||
</record> | ||
<record id="fao_fishing_area_2" model="product.attribute.value"> | ||
<field name="fao_zone_code" eval="2" /> | ||
<field name="name">America, North - Inland waters</field> | ||
<field name="attribute_id" ref="fao_fishing_area" /> | ||
</record> | ||
<record id="fao_fishing_area_3" model="product.attribute.value"> | ||
<field name="fao_zone_code" eval="3" /> | ||
<field name="name">America, South - Inland waters</field> | ||
<field name="attribute_id" ref="fao_fishing_area" /> | ||
</record> | ||
<record id="fao_fishing_area_4" model="product.attribute.value"> | ||
<field name="fao_zone_code" eval="4" /> | ||
<field name="name">Asia - Inland waters</field> | ||
<field name="attribute_id" ref="fao_fishing_area" /> | ||
</record> | ||
<record id="fao_fishing_area_5" model="product.attribute.value"> | ||
<field name="fao_zone_code" eval="5" /> | ||
<field name="name">Europe - Inland waters</field> | ||
<field name="attribute_id" ref="fao_fishing_area" /> | ||
</record> | ||
<record id="fao_fishing_area_6" model="product.attribute.value"> | ||
<field name="fao_zone_code" eval="6" /> | ||
<field name="name">Oceania - Inland waters</field> | ||
<field name="attribute_id" ref="fao_fishing_area" /> | ||
</record> | ||
<record id="fao_fishing_area_7" model="product.attribute.value"> | ||
<field name="fao_zone_code" eval="7" /> | ||
<field name="name">Former USSR area - Inland waters</field> | ||
<field name="attribute_id" ref="fao_fishing_area" /> | ||
</record> | ||
<record id="fao_fishing_area_8" model="product.attribute.value"> | ||
<field name="fao_zone_code" eval="8" /> | ||
<field name="name">Antarctica - Inland waters</field> | ||
<field name="attribute_id" ref="fao_fishing_area" /> | ||
</record> | ||
<record id="fao_fishing_area_18" model="product.attribute.value"> | ||
<field name="fao_zone_code" eval="18" /> | ||
<field name="name">Arctic Sea</field> | ||
<field name="attribute_id" ref="fao_fishing_area" /> | ||
</record> | ||
<record id="fao_fishing_area_21" model="product.attribute.value"> | ||
<field name="fao_zone_code" eval="21" /> | ||
<field name="name">Atlantic, Northwest</field> | ||
<field name="attribute_id" ref="fao_fishing_area" /> | ||
</record> | ||
<record id="fao_fishing_area_27" model="product.attribute.value"> | ||
<field name="fao_zone_code" eval="27" /> | ||
<field name="name">Atlantic, Northeast</field> | ||
<field name="attribute_id" ref="fao_fishing_area" /> | ||
</record> | ||
<record id="fao_fishing_area_31" model="product.attribute.value"> | ||
<field name="fao_zone_code" eval="31" /> | ||
<field name="name">Atlantic, Western Central</field> | ||
<field name="attribute_id" ref="fao_fishing_area" /> | ||
</record> | ||
<record id="fao_fishing_area_34" model="product.attribute.value"> | ||
<field name="fao_zone_code" eval="34" /> | ||
<field name="name">Atlantic, Eastern Central</field> | ||
<field name="attribute_id" ref="fao_fishing_area" /> | ||
</record> | ||
<record id="fao_fishing_area_37" model="product.attribute.value"> | ||
<field name="fao_zone_code" eval="37" /> | ||
<field name="name">Mediterranean and Black Sea</field> | ||
<field name="attribute_id" ref="fao_fishing_area" /> | ||
</record> | ||
<record id="fao_fishing_area_41" model="product.attribute.value"> | ||
<field name="fao_zone_code" eval="41" /> | ||
<field name="name">Atlantic, Southwest</field> | ||
<field name="attribute_id" ref="fao_fishing_area" /> | ||
</record> | ||
<record id="fao_fishing_area_47" model="product.attribute.value"> | ||
<field name="fao_zone_code" eval="47" /> | ||
<field name="name">Atlantic, Southeast</field> | ||
<field name="attribute_id" ref="fao_fishing_area" /> | ||
</record> | ||
<record id="fao_fishing_area_48" model="product.attribute.value"> | ||
<field name="fao_zone_code" eval="48" /> | ||
<field name="name">Atlantic, Antarctic</field> | ||
<field name="attribute_id" ref="fao_fishing_area" /> | ||
</record> | ||
<record id="fao_fishing_area_51" model="product.attribute.value"> | ||
<field name="fao_zone_code" eval="51" /> | ||
<field name="name">Indian Ocean, Western</field> | ||
<field name="attribute_id" ref="fao_fishing_area" /> | ||
</record> | ||
<record id="fao_fishing_area_57" model="product.attribute.value"> | ||
<field name="fao_zone_code" eval="57" /> | ||
<field name="name">Indian Ocean, Eastern</field> | ||
<field name="attribute_id" ref="fao_fishing_area" /> | ||
</record> | ||
<record id="fao_fishing_area_58" model="product.attribute.value"> | ||
<field name="fao_zone_code" eval="58" /> | ||
<field name="name">Indian Ocean, Antarctic</field> | ||
<field name="attribute_id" ref="fao_fishing_area" /> | ||
</record> | ||
<record id="fao_fishing_area_61" model="product.attribute.value"> | ||
<field name="fao_zone_code" eval="61" /> | ||
<field name="name">Pacific, Northwest</field> | ||
<field name="attribute_id" ref="fao_fishing_area" /> | ||
</record> | ||
<record id="fao_fishing_area_67" model="product.attribute.value"> | ||
<field name="fao_zone_code" eval="67" /> | ||
<field name="name">Pacific, Northeast</field> | ||
<field name="attribute_id" ref="fao_fishing_area" /> | ||
</record> | ||
<record id="fao_fishing_area_71" model="product.attribute.value"> | ||
<field name="fao_zone_code" eval="71" /> | ||
<field name="name">Pacific, Western Central</field> | ||
<field name="attribute_id" ref="fao_fishing_area" /> | ||
</record> | ||
<record id="fao_fishing_area_77" model="product.attribute.value"> | ||
<field name="fao_zone_code" eval="77" /> | ||
<field name="name">Pacific, Eastern Central</field> | ||
<field name="attribute_id" ref="fao_fishing_area" /> | ||
</record> | ||
<record id="fao_fishing_area_81" model="product.attribute.value"> | ||
<field name="fao_zone_code" eval="81" /> | ||
<field name="name">Pacific, Southwest</field> | ||
<field name="attribute_id" ref="fao_fishing_area" /> | ||
</record> | ||
<record id="fao_fishing_area_87" model="product.attribute.value"> | ||
<field name="fao_zone_code" eval="87" /> | ||
<field name="name">Pacific, Southeast</field> | ||
<field name="attribute_id" ref="fao_fishing_area" /> | ||
</record> | ||
<record id="fao_fishing_area_88" model="product.attribute.value"> | ||
<field name="fao_zone_code" eval="88" /> | ||
<field name="name">Pacific, Antarctic</field> | ||
<field name="attribute_id" ref="fao_fishing_area" /> | ||
</record> | ||
<record id="fao_fishing_area_98" model="product.attribute.value"> | ||
<field name="fao_zone_code" eval="98" /> | ||
<field name="name">Antarctic areas nei</field> | ||
<field name="attribute_id" ref="fao_fishing_area" /> | ||
</record> | ||
<record id="fao_fishing_area_99" model="product.attribute.value"> | ||
<field name="fao_zone_code" eval="99" /> | ||
<field name="name">Marine areas outside the Antarctic</field> | ||
<field name="attribute_id" ref="fao_fishing_area" /> | ||
</record> | ||
</odoo> |
53 changes: 53 additions & 0 deletions
53
product_fao_fishing/data/product_fao_fishing_technique_data.xml
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,53 @@ | ||
<?xml version="1.0" ?> | ||
<odoo noupdate="1"> | ||
<record id="fao_fishing_technique" model="product.attribute"> | ||
<field name="name">FAO Fishing Technique</field> | ||
<field name="create_variant">no_variant</field> | ||
<field name="display_type">select</field> | ||
</record> | ||
<record | ||
id="fishing_technique_att_value_spearfishing" | ||
model="product.attribute.value" | ||
> | ||
<field name="name">Spearfishing</field> | ||
<field name="attribute_id" ref="fao_fishing_technique" /> | ||
</record> | ||
<record id="fishing_technique_att_value_netting" model="product.attribute.value"> | ||
<field name="name">Netting</field> | ||
<field name="attribute_id" ref="fao_fishing_technique" /> | ||
</record> | ||
<record id="fishing_technique_att_value_trawl_nets" model="product.attribute.value"> | ||
<field name="name">Trawl nets</field> | ||
<field name="attribute_id" ref="fao_fishing_technique" /> | ||
</record> | ||
<record | ||
id="fishing_technique_att_value_enmanelle_nets" | ||
model="product.attribute.value" | ||
> | ||
<field name="name">Enmanelle nets and similar</field> | ||
<field name="attribute_id" ref="fao_fishing_technique" /> | ||
</record> | ||
<record id="fishing_technique_att_value_purse_nets" model="product.attribute.value"> | ||
<field name="name">Purse seines and nets hoisted</field> | ||
<field name="attribute_id" ref="fao_fishing_technique" /> | ||
</record> | ||
<record id="fishing_technique_att_value_angling" model="product.attribute.value"> | ||
<field name="name">Angling</field> | ||
<field name="attribute_id" ref="fao_fishing_technique" /> | ||
</record> | ||
<record id="fishing_technique_att_value_harrows" model="product.attribute.value"> | ||
<field name="name">Harrows</field> | ||
<field name="attribute_id" ref="fao_fishing_technique" /> | ||
</record> | ||
<record id="fishing_technique_att_value_trapping" model="product.attribute.value"> | ||
<field name="name">Trapping</field> | ||
<field name="attribute_id" ref="fao_fishing_technique" /> | ||
</record> | ||
<record | ||
id="fishing_technique_att_value_aquaculture" | ||
model="product.attribute.value" | ||
> | ||
<field name="name">Aquaculture</field> | ||
<field name="attribute_id" ref="fao_fishing_technique" /> | ||
</record> | ||
</odoo> |
Oops, something went wrong.