├── purchase_report_date_format ├── __init__.py ├── pyproject.toml ├── readme │ ├── CONTRIBUTORS.md │ └── DESCRIPTION.md ├── static │ └── description │ │ ├── icon.png │ │ └── index.html ├── i18n │ ├── purchase_report_date_format.pot │ ├── it.po │ └── pt_BR.po ├── reports │ └── purchase_quotation_templates.xml ├── __manifest__.py └── README.rst ├── purchase_packaging_report ├── __init__.py ├── report │ ├── __init__.py │ ├── purchase_order_templates.xml │ ├── purchase_quotation_templates.xml │ ├── purchase_report.py │ └── purchase_report_views.xml ├── tests │ ├── __init__.py │ └── test_purchase_packaging_report.py ├── pyproject.toml ├── static │ └── description │ │ ├── icon.png │ │ └── index.html ├── readme │ ├── DESCRIPTION.md │ ├── CONTRIBUTORS.md │ ├── CONFIGURE.md │ └── USAGE.md ├── __manifest__.py ├── i18n │ ├── purchase_packaging_report.pot │ ├── it.po │ └── es.po └── README.rst ├── purchase_report_shipping_address ├── __init__.py ├── models │ ├── __init__.py │ └── stock_warehouse.py ├── pyproject.toml ├── readme │ ├── CONTRIBUTORS.md │ ├── CONFIGURE.md │ └── DESCRIPTION.md ├── static │ └── description │ │ ├── icon.png │ │ └── index.html ├── views │ └── stock_warehouse_views.xml ├── __manifest__.py ├── i18n │ ├── purchase_report_shipping_address.pot │ ├── ja.po │ └── it.po ├── reports │ ├── purchase_order_templates.xml │ └── purchase_quotation_templates.xml └── README.rst ├── checklog-odoo.cfg ├── purchase_comment_template ├── pyproject.toml ├── __init__.py ├── models │ ├── __init__.py │ └── purchase_order.py ├── tests │ ├── __init__.py │ └── test_purchase_order_report.py ├── static │ └── description │ │ ├── icon.png │ │ └── index.html ├── readme │ ├── INSTALL.md │ ├── CONTRIBUTORS.md │ └── DESCRIPTION.md ├── security │ └── ir.model.access.csv ├── views │ ├── purchase_order_view.xml │ ├── report_quotation.xml │ ├── report_purchaseorder.xml │ └── base_comment_template_view.xml ├── __manifest__.py ├── i18n │ ├── purchase_comment_template.pot │ ├── fr.po │ ├── es.po │ ├── de.po │ └── it.po └── README.rst ├── prettier.config.cjs ├── setup └── _metapackage │ └── pyproject.toml ├── .editorconfig ├── .ruff.toml ├── .copier-answers.yml ├── .gitignore ├── .github └── workflows │ ├── pre-commit.yml │ ├── test.yml │ └── stale.yml ├── README.md ├── .pylintrc-mandatory ├── .pylintrc ├── .pre-commit-config.yaml ├── eslint.config.cjs └── LICENSE /purchase_report_date_format/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /purchase_packaging_report/__init__.py: -------------------------------------------------------------------------------- 1 | from . import report 2 | -------------------------------------------------------------------------------- /purchase_report_shipping_address/__init__.py: -------------------------------------------------------------------------------- 1 | from . import models 2 | -------------------------------------------------------------------------------- /purchase_packaging_report/report/__init__.py: -------------------------------------------------------------------------------- 1 | from . import purchase_report 2 | -------------------------------------------------------------------------------- /purchase_report_shipping_address/models/__init__.py: -------------------------------------------------------------------------------- 1 | from . import stock_warehouse 2 | -------------------------------------------------------------------------------- /checklog-odoo.cfg: -------------------------------------------------------------------------------- 1 | [checklog-odoo] 2 | ignore= 3 | WARNING.* 0 failed, 0 error\(s\).* 4 | -------------------------------------------------------------------------------- /purchase_packaging_report/tests/__init__.py: -------------------------------------------------------------------------------- 1 | from . import test_purchase_packaging_report 2 | -------------------------------------------------------------------------------- /purchase_comment_template/pyproject.toml: -------------------------------------------------------------------------------- 1 | [build-system] 2 | requires = ["whool"] 3 | build-backend = "whool.buildapi" 4 | -------------------------------------------------------------------------------- /purchase_packaging_report/pyproject.toml: -------------------------------------------------------------------------------- 1 | [build-system] 2 | requires = ["whool"] 3 | build-backend = "whool.buildapi" 4 | -------------------------------------------------------------------------------- /purchase_report_date_format/pyproject.toml: -------------------------------------------------------------------------------- 1 | [build-system] 2 | requires = ["whool"] 3 | build-backend = "whool.buildapi" 4 | -------------------------------------------------------------------------------- /purchase_report_shipping_address/pyproject.toml: -------------------------------------------------------------------------------- 1 | [build-system] 2 | requires = ["whool"] 3 | build-backend = "whool.buildapi" 4 | -------------------------------------------------------------------------------- /purchase_comment_template/__init__.py: -------------------------------------------------------------------------------- 1 | # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). 2 | 3 | from . import models 4 | -------------------------------------------------------------------------------- /purchase_report_date_format/readme/CONTRIBUTORS.md: -------------------------------------------------------------------------------- 1 | - [Heliconia Solutions Pvt. Ltd.](https://www.heliconia.io) 2 | - Bhavesh Heliconia 3 | -------------------------------------------------------------------------------- /purchase_report_shipping_address/readme/CONTRIBUTORS.md: -------------------------------------------------------------------------------- 1 | - [Heliconia Solutions Pvt. Ltd.](https://www.heliconia.io) 2 | - Bhavesh Heliconia 3 | -------------------------------------------------------------------------------- /purchase_comment_template/models/__init__.py: -------------------------------------------------------------------------------- 1 | # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). 2 | 3 | from . import purchase_order 4 | -------------------------------------------------------------------------------- /purchase_comment_template/tests/__init__.py: -------------------------------------------------------------------------------- 1 | # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). 2 | 3 | from . import test_purchase_order_report 4 | -------------------------------------------------------------------------------- /purchase_comment_template/static/description/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/purchase-reporting/HEAD/purchase_comment_template/static/description/icon.png -------------------------------------------------------------------------------- /purchase_packaging_report/static/description/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/purchase-reporting/HEAD/purchase_packaging_report/static/description/icon.png -------------------------------------------------------------------------------- /purchase_report_date_format/static/description/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/purchase-reporting/HEAD/purchase_report_date_format/static/description/icon.png -------------------------------------------------------------------------------- /purchase_report_shipping_address/static/description/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/purchase-reporting/HEAD/purchase_report_shipping_address/static/description/icon.png -------------------------------------------------------------------------------- /purchase_packaging_report/readme/DESCRIPTION.md: -------------------------------------------------------------------------------- 1 | This module displays packaging data (quantity and type) in: 2 | 3 | - Purchase order printed reports. 4 | - Purchase BI reports. 5 | -------------------------------------------------------------------------------- /purchase_comment_template/readme/INSTALL.md: -------------------------------------------------------------------------------- 1 | To install this module, you need to have the module [Base Comment 2 | Template](https://github.com/OCA/reporting-engine/tree/16.0/base_comment_template). 3 | -------------------------------------------------------------------------------- /purchase_packaging_report/readme/CONTRIBUTORS.md: -------------------------------------------------------------------------------- 1 | * Eduardo de Miguel (`Moduon `__) 2 | - [Heliconia Solutions Pvt. Ltd.](https://www.heliconia.io) 3 | - Bhavesh Heliconia 4 | -------------------------------------------------------------------------------- /purchase_comment_template/readme/CONTRIBUTORS.md: -------------------------------------------------------------------------------- 1 | - Miquel Raïch \<\> 2 | - Alan Ramos \<\> 3 | - [Aion Tech](https://aiontech.company/): 4 | - Simone Rubino \<\> 5 | -------------------------------------------------------------------------------- /purchase_report_shipping_address/readme/CONFIGURE.md: -------------------------------------------------------------------------------- 1 | #\. Go to *Inventory \> Configuration \> Warehouses* and open a 2 | warehouse record for which the address presentation should be adjusted 3 | for purchase reports. \#. Update Warehouse Address Details field. 4 | -------------------------------------------------------------------------------- /purchase_packaging_report/readme/CONFIGURE.md: -------------------------------------------------------------------------------- 1 | To configure this module, you need to: 2 | 3 | #. Go to *Purchase > Configuration > Settings*. 4 | #. Enable *Product Packagings*. 5 | #. Save. 6 | 7 | Now, make sure the products you use for testing this module have some packaging 8 | configured. 9 | -------------------------------------------------------------------------------- /purchase_comment_template/models/purchase_order.py: -------------------------------------------------------------------------------- 1 | # Copyright 2018 ForgeFlow S.L. 2 | # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). 3 | 4 | from odoo import models 5 | 6 | 7 | class PurchaseOrder(models.Model): 8 | _name = "purchase.order" 9 | _inherit = ["purchase.order", "comment.template"] 10 | -------------------------------------------------------------------------------- /purchase_comment_template/readme/DESCRIPTION.md: -------------------------------------------------------------------------------- 1 | Adds comments on 2 | 3 | 1. Purchases orders: 4 | 5 | The comments can be edited directly on the purchases orders or 6 | loaded from templates. 7 | 8 | Two positions are available for the comments: 9 | 10 | - Above purchase order lines 11 | - Below purchase order lines 12 | -------------------------------------------------------------------------------- /purchase_report_shipping_address/models/stock_warehouse.py: -------------------------------------------------------------------------------- 1 | # Copyright 2023 Quartile Limited 2 | # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). 3 | 4 | from odoo import fields, models 5 | 6 | 7 | class StockWarehouse(models.Model): 8 | _inherit = "stock.warehouse" 9 | 10 | warehouse_address_details = fields.Html( 11 | translate=True, 12 | ) 13 | -------------------------------------------------------------------------------- /purchase_report_shipping_address/readme/DESCRIPTION.md: -------------------------------------------------------------------------------- 1 | This module adds the translatable Warehouse Address Details field in 2 | warehouse to show in purchase reports. 3 | 4 | Purchase documents are printed in supplier's language, however Odoo by 5 | default does not come with the ability to present the warehouse address 6 | in different languages. This module intends to take care of this 7 | shortcoming. 8 | -------------------------------------------------------------------------------- /purchase_report_date_format/readme/DESCRIPTION.md: -------------------------------------------------------------------------------- 1 | Shows following datetime fields of purchase reports in date format 2 | instead of datetime, since presenting dates up to seconds is too much or 3 | unnecessary in many purchase transactions. 4 | 5 | Request for Quotation print: 6 | 7 | - Expected Date 8 | 9 | Purchase Order print: 10 | 11 | - Order Date 12 | - Order Deadline 13 | - Requested Date 14 | -------------------------------------------------------------------------------- /prettier.config.cjs: -------------------------------------------------------------------------------- 1 | /** @type {import('prettier').Config} */ 2 | 3 | const config = { 4 | // https://github.com/prettier/prettier/issues/15388#issuecomment-1717746872 5 | plugins: [require.resolve("@prettier/plugin-xml")], 6 | bracketSpacing: false, 7 | printWidth: 88, 8 | proseWrap: "always", 9 | semi: true, 10 | trailingComma: "es5", 11 | xmlWhitespaceSensitivity: "preserve", 12 | }; 13 | 14 | module.exports = config; 15 | -------------------------------------------------------------------------------- /purchase_packaging_report/readme/USAGE.md: -------------------------------------------------------------------------------- 1 | To print purchase order packaging data: 2 | 3 | #. Go to *Purchase > Orders > Quotations* and pick or create one. 4 | #. Add some product(s) with packaging information (type and quantity). 5 | #. Print it. 6 | 7 | To query purchase packaging BI data: 8 | 9 | #. Go to *Purchase > Reporting > Purchase*. 10 | #. Use the new options at will: 11 | - *Measures > Packaging Qty* 12 | - *Group By > Packaging*. 13 | -------------------------------------------------------------------------------- /purchase_report_date_format/i18n/purchase_report_date_format.pot: -------------------------------------------------------------------------------- 1 | # Translation of Odoo Server. 2 | # This file contains the translation of the following modules: 3 | # 4 | msgid "" 5 | msgstr "" 6 | "Project-Id-Version: Odoo Server 18.0\n" 7 | "Report-Msgid-Bugs-To: \n" 8 | "Last-Translator: \n" 9 | "Language-Team: \n" 10 | "MIME-Version: 1.0\n" 11 | "Content-Type: text/plain; charset=UTF-8\n" 12 | "Content-Transfer-Encoding: \n" 13 | "Plural-Forms: \n" 14 | -------------------------------------------------------------------------------- /purchase_comment_template/security/ir.model.access.csv: -------------------------------------------------------------------------------- 1 | id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink 2 | access_base_comment_template_purchase_user,access_base_comment_template purchase user,base_comment_template.model_base_comment_template,purchase.group_purchase_user,1,0,0,0 3 | access_base_comment_template_purchase_manager,access_base_comment_template purchase manager,base_comment_template.model_base_comment_template,purchase.group_purchase_manager,1,1,1,1 4 | -------------------------------------------------------------------------------- /purchase_report_date_format/reports/purchase_quotation_templates.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 11 | 12 | -------------------------------------------------------------------------------- /purchase_report_date_format/i18n/it.po: -------------------------------------------------------------------------------- 1 | # Translation of Odoo Server. 2 | # This file contains the translation of the following modules: 3 | # 4 | msgid "" 5 | msgstr "" 6 | "Project-Id-Version: Odoo Server 16.0\n" 7 | "Report-Msgid-Bugs-To: \n" 8 | "Last-Translator: Automatically generated\n" 9 | "Language-Team: none\n" 10 | "Language: it\n" 11 | "MIME-Version: 1.0\n" 12 | "Content-Type: text/plain; charset=UTF-8\n" 13 | "Content-Transfer-Encoding: \n" 14 | "Plural-Forms: nplurals=2; plural=n != 1;\n" 15 | -------------------------------------------------------------------------------- /purchase_report_date_format/i18n/pt_BR.po: -------------------------------------------------------------------------------- 1 | # Translation of Odoo Server. 2 | # This file contains the translation of the following modules: 3 | # 4 | msgid "" 5 | msgstr "" 6 | "Project-Id-Version: Odoo Server 16.0\n" 7 | "Report-Msgid-Bugs-To: \n" 8 | "Last-Translator: Automatically generated\n" 9 | "Language-Team: none\n" 10 | "Language: pt_BR\n" 11 | "MIME-Version: 1.0\n" 12 | "Content-Type: text/plain; charset=UTF-8\n" 13 | "Content-Transfer-Encoding: \n" 14 | "Plural-Forms: nplurals=2; plural=n > 1;\n" 15 | -------------------------------------------------------------------------------- /setup/_metapackage/pyproject.toml: -------------------------------------------------------------------------------- 1 | [project] 2 | name = "odoo-addons-oca-purchase-reporting" 3 | version = "18.0.20250605.2" 4 | dependencies = [ 5 | "odoo-addon-purchase_comment_template==18.0.*", 6 | "odoo-addon-purchase_packaging_report==18.0.*", 7 | "odoo-addon-purchase_report_date_format==18.0.*", 8 | "odoo-addon-purchase_report_shipping_address==18.0.*", 9 | ] 10 | classifiers=[ 11 | "Programming Language :: Python", 12 | "Framework :: Odoo", 13 | "Framework :: Odoo :: 18.0", 14 | ] 15 | -------------------------------------------------------------------------------- /purchase_report_date_format/__manifest__.py: -------------------------------------------------------------------------------- 1 | # Copyright 2023 Quartile Limited 2 | # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). 3 | { 4 | "name": "Purchase Report Date Format", 5 | "category": "Reporting", 6 | "version": "18.0.1.0.0", 7 | "author": "Quartile Limited, Odoo Community Association (OCA)", 8 | "website": "https://github.com/OCA/purchase-reporting", 9 | "license": "AGPL-3", 10 | "depends": ["purchase"], 11 | "data": [ 12 | "reports/purchase_quotation_templates.xml", 13 | ], 14 | "installable": True, 15 | } 16 | -------------------------------------------------------------------------------- /purchase_report_shipping_address/views/stock_warehouse_views.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | stock.warehouse 5 | stock.warehouse 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | # Configuration for known file extensions 2 | [*.{css,js,json,less,md,py,rst,sass,scss,xml,yaml,yml}] 3 | charset = utf-8 4 | end_of_line = lf 5 | indent_size = 4 6 | indent_style = space 7 | insert_final_newline = true 8 | trim_trailing_whitespace = true 9 | 10 | [*.{json,yml,yaml,rst,md}] 11 | indent_size = 2 12 | 13 | # Do not configure editor for libs and autogenerated content 14 | [{*/static/{lib,src/lib}/**,*/static/description/index.html,*/readme/../README.rst}] 15 | charset = unset 16 | end_of_line = unset 17 | indent_size = unset 18 | indent_style = unset 19 | insert_final_newline = false 20 | trim_trailing_whitespace = false 21 | -------------------------------------------------------------------------------- /purchase_report_shipping_address/__manifest__.py: -------------------------------------------------------------------------------- 1 | # Copyright 2023 Quartile Limited 2 | # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). 3 | { 4 | "name": "Purchase Report Shipping Address", 5 | "version": "18.0.1.0.0", 6 | "category": "Reporting", 7 | "website": "https://github.com/OCA/purchase-reporting", 8 | "license": "AGPL-3", 9 | "author": "Quartile Limited, Odoo Community Association (OCA)", 10 | "depends": ["purchase_stock"], 11 | "data": [ 12 | "views/stock_warehouse_views.xml", 13 | "reports/purchase_order_templates.xml", 14 | "reports/purchase_quotation_templates.xml", 15 | ], 16 | "installable": True, 17 | } 18 | -------------------------------------------------------------------------------- /purchase_packaging_report/report/purchase_order_templates.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 19 | 20 | -------------------------------------------------------------------------------- /.ruff.toml: -------------------------------------------------------------------------------- 1 | 2 | target-version = "py310" 3 | fix = true 4 | 5 | [lint] 6 | extend-select = [ 7 | "B", 8 | "C90", 9 | "E501", # line too long (default 88) 10 | "I", # isort 11 | "UP", # pyupgrade 12 | ] 13 | extend-safe-fixes = ["UP008"] 14 | exclude = ["setup/*"] 15 | 16 | [format] 17 | exclude = ["setup/*"] 18 | 19 | [lint.per-file-ignores] 20 | "__init__.py" = ["F401", "I001"] # ignore unused and unsorted imports in __init__.py 21 | "__manifest__.py" = ["B018"] # useless expression 22 | 23 | [lint.isort] 24 | section-order = ["future", "standard-library", "third-party", "odoo", "odoo-addons", "first-party", "local-folder"] 25 | 26 | [lint.isort.sections] 27 | "odoo" = ["odoo"] 28 | "odoo-addons" = ["odoo.addons"] 29 | 30 | [lint.mccabe] 31 | max-complexity = 16 32 | -------------------------------------------------------------------------------- /purchase_comment_template/views/purchase_order_view.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | comment_template.purchase.order.form 4 | purchase.order 5 | 6 | 7 | 8 | 9 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /purchase_packaging_report/report/purchase_quotation_templates.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 19 | 20 | -------------------------------------------------------------------------------- /purchase_packaging_report/__manifest__.py: -------------------------------------------------------------------------------- 1 | # Copyright 2024 Moduon Team S.L. 2 | # License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl-3.0) 3 | 4 | { 5 | "name": "Purchase Packaging Report", 6 | "summary": "Packaging data in purchase reports", 7 | "version": "18.0.1.0.0", 8 | "development_status": "Alpha", 9 | "category": "Inventory/Purchase", 10 | "website": "https://github.com/OCA/purchase-reporting", 11 | "author": "Moduon, Odoo Community Association (OCA)", 12 | "maintainers": ["Shide"], 13 | "license": "LGPL-3", 14 | "application": False, 15 | "installable": True, 16 | "depends": [ 17 | "purchase", 18 | ], 19 | "data": [ 20 | "report/purchase_report_views.xml", 21 | "report/purchase_order_templates.xml", 22 | "report/purchase_quotation_templates.xml", 23 | ], 24 | } 25 | -------------------------------------------------------------------------------- /purchase_report_shipping_address/i18n/purchase_report_shipping_address.pot: -------------------------------------------------------------------------------- 1 | # Translation of Odoo Server. 2 | # This file contains the translation of the following modules: 3 | # * purchase_report_shipping_address 4 | # 5 | msgid "" 6 | msgstr "" 7 | "Project-Id-Version: Odoo Server 18.0\n" 8 | "Report-Msgid-Bugs-To: \n" 9 | "Last-Translator: \n" 10 | "Language-Team: \n" 11 | "MIME-Version: 1.0\n" 12 | "Content-Type: text/plain; charset=UTF-8\n" 13 | "Content-Transfer-Encoding: \n" 14 | "Plural-Forms: \n" 15 | 16 | #. module: purchase_report_shipping_address 17 | #: model:ir.model,name:purchase_report_shipping_address.model_stock_warehouse 18 | msgid "Warehouse" 19 | msgstr "" 20 | 21 | #. module: purchase_report_shipping_address 22 | #: model:ir.model.fields,field_description:purchase_report_shipping_address.field_stock_warehouse__warehouse_address_details 23 | msgid "Warehouse Address Details" 24 | msgstr "" 25 | -------------------------------------------------------------------------------- /purchase_comment_template/__manifest__.py: -------------------------------------------------------------------------------- 1 | # Copyright 2018 ForgeFlow S.L. 2 | # Copyright 2024 Simone Rubino - Aion Tech 3 | # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). 4 | 5 | { 6 | "name": "Purchase Comments", 7 | "summary": "Comments texts templates on Purchase documents", 8 | "version": "18.0.1.0.2", 9 | "category": "Purchase", 10 | "website": "https://github.com/OCA/purchase-reporting", 11 | "author": "ForgeFlow, Odoo Community Association (OCA)", 12 | "license": "AGPL-3", 13 | "depends": [ 14 | "purchase", 15 | "base_comment_template", 16 | ], 17 | "data": [ 18 | "security/ir.model.access.csv", 19 | "views/purchase_order_view.xml", 20 | "views/base_comment_template_view.xml", 21 | "views/report_purchaseorder.xml", 22 | "views/report_quotation.xml", 23 | ], 24 | "installable": True, 25 | } 26 | -------------------------------------------------------------------------------- /.copier-answers.yml: -------------------------------------------------------------------------------- 1 | # Do NOT update manually; changes here will be overwritten by Copier 2 | _commit: v1.29 3 | _src_path: git+https://github.com/OCA/oca-addons-repo-template 4 | additional_ruff_rules: [] 5 | ci: GitHub 6 | convert_readme_fragments_to_markdown: true 7 | enable_checklog_odoo: true 8 | generate_requirements_txt: true 9 | github_check_license: true 10 | github_ci_extra_env: {} 11 | github_enable_codecov: true 12 | github_enable_makepot: true 13 | github_enable_stale_action: true 14 | github_enforce_dev_status_compatibility: true 15 | include_wkhtmltopdf: false 16 | odoo_test_flavor: Both 17 | odoo_version: 18.0 18 | org_name: Odoo Community Association (OCA) 19 | org_slug: OCA 20 | rebel_module_groups: [] 21 | repo_description: purchase-reporting 22 | repo_name: purchase-reporting 23 | repo_slug: purchase-reporting 24 | repo_website: https://github.com/OCA/purchase-reporting 25 | use_pyproject_toml: true 26 | use_ruff: true 27 | 28 | -------------------------------------------------------------------------------- /purchase_report_shipping_address/i18n/ja.po: -------------------------------------------------------------------------------- 1 | # Translation of Odoo Server. 2 | # This file contains the translation of the following modules: 3 | # * purchase_report_shipping_address 4 | # 5 | msgid "" 6 | msgstr "" 7 | "Project-Id-Version: Odoo Server 18.0\n" 8 | "Report-Msgid-Bugs-To: \n" 9 | "Last-Translator: Automatically generated\n" 10 | "Language-Team: none\n" 11 | "Language: ja\n" 12 | "MIME-Version: 1.0\n" 13 | "Content-Type: text/plain; charset=UTF-8\n" 14 | "Content-Transfer-Encoding: \n" 15 | "Plural-Forms: nplurals=1; plural=0;\n" 16 | 17 | #. module: purchase_report_shipping_address 18 | #: model:ir.model,name:purchase_report_shipping_address.model_stock_warehouse 19 | msgid "Warehouse" 20 | msgstr "" 21 | 22 | #. module: purchase_report_shipping_address 23 | #: model:ir.model.fields,field_description:purchase_report_shipping_address.field_stock_warehouse__warehouse_address_details 24 | msgid "Warehouse Address Details" 25 | msgstr "" 26 | -------------------------------------------------------------------------------- /purchase_report_shipping_address/i18n/it.po: -------------------------------------------------------------------------------- 1 | # Translation of Odoo Server. 2 | # This file contains the translation of the following modules: 3 | # * purchase_report_shipping_address 4 | # 5 | msgid "" 6 | msgstr "" 7 | "Project-Id-Version: Odoo Server 16.0\n" 8 | "Report-Msgid-Bugs-To: \n" 9 | "PO-Revision-Date: 2023-12-26 14:38+0000\n" 10 | "Last-Translator: mymage \n" 11 | "Language-Team: none\n" 12 | "Language: it\n" 13 | "MIME-Version: 1.0\n" 14 | "Content-Type: text/plain; charset=UTF-8\n" 15 | "Content-Transfer-Encoding: \n" 16 | "Plural-Forms: nplurals=2; plural=n != 1;\n" 17 | "X-Generator: Weblate 4.17\n" 18 | 19 | #. module: purchase_report_shipping_address 20 | #: model:ir.model,name:purchase_report_shipping_address.model_stock_warehouse 21 | msgid "Warehouse" 22 | msgstr "Magazzino" 23 | 24 | #. module: purchase_report_shipping_address 25 | #: model:ir.model.fields,field_description:purchase_report_shipping_address.field_stock_warehouse__warehouse_address_details 26 | msgid "Warehouse Address Details" 27 | msgstr "Dettagli indirizzo magazzino" 28 | -------------------------------------------------------------------------------- /purchase_report_shipping_address/reports/purchase_order_templates.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 26 | 27 | -------------------------------------------------------------------------------- /purchase_report_shipping_address/reports/purchase_quotation_templates.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 26 | 27 | -------------------------------------------------------------------------------- /purchase_comment_template/views/report_quotation.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 28 | 29 | -------------------------------------------------------------------------------- /purchase_comment_template/views/report_purchaseorder.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 28 | 29 | -------------------------------------------------------------------------------- /purchase_comment_template/views/base_comment_template_view.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | Purchase Orders Comments 9 | ir.actions.act_window 10 | base.comment.template 11 | list,form 12 | [('model_ids', '=', 'purchase.order')] 13 | {'default_models': 'purchase.order'} 14 | 18 | 19 | 25 | 26 | -------------------------------------------------------------------------------- /purchase_packaging_report/i18n/purchase_packaging_report.pot: -------------------------------------------------------------------------------- 1 | # Translation of Odoo Server. 2 | # This file contains the translation of the following modules: 3 | # * purchase_packaging_report 4 | # 5 | msgid "" 6 | msgstr "" 7 | "Project-Id-Version: Odoo Server 18.0\n" 8 | "Report-Msgid-Bugs-To: \n" 9 | "Last-Translator: \n" 10 | "Language-Team: \n" 11 | "MIME-Version: 1.0\n" 12 | "Content-Type: text/plain; charset=UTF-8\n" 13 | "Content-Transfer-Encoding: \n" 14 | "Plural-Forms: \n" 15 | 16 | #. module: purchase_packaging_report 17 | #: model:ir.model.fields,field_description:purchase_packaging_report.field_purchase_report__product_packaging_id 18 | msgid "Packaging" 19 | msgstr "" 20 | 21 | #. module: purchase_packaging_report 22 | #: model:ir.model.fields,field_description:purchase_packaging_report.field_purchase_report__product_packaging_qty 23 | msgid "Packaging Qty" 24 | msgstr "" 25 | 26 | #. module: purchase_packaging_report 27 | #: model_terms:ir.ui.view,arch_db:purchase_packaging_report.view_purchase_order_search 28 | msgid "Product Packaging" 29 | msgstr "" 30 | 31 | #. module: purchase_packaging_report 32 | #: model:ir.model,name:purchase_packaging_report.model_purchase_report 33 | msgid "Purchase Report" 34 | msgstr "" 35 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Byte-compiled / optimized / DLL files 2 | __pycache__/ 3 | *.py[cod] 4 | /.venv 5 | /.pytest_cache 6 | /.ruff_cache 7 | 8 | # C extensions 9 | *.so 10 | 11 | # Distribution / packaging 12 | .Python 13 | env/ 14 | bin/ 15 | build/ 16 | develop-eggs/ 17 | dist/ 18 | eggs/ 19 | lib64/ 20 | parts/ 21 | sdist/ 22 | var/ 23 | *.egg-info/ 24 | .installed.cfg 25 | *.egg 26 | *.eggs 27 | 28 | # Windows installers 29 | *.msi 30 | 31 | # Debian packages 32 | *.deb 33 | 34 | # Redhat packages 35 | *.rpm 36 | 37 | # MacOS packages 38 | *.dmg 39 | *.pkg 40 | 41 | # Installer logs 42 | pip-log.txt 43 | pip-delete-this-directory.txt 44 | 45 | # Unit test / coverage reports 46 | htmlcov/ 47 | .tox/ 48 | .coverage 49 | .cache 50 | nosetests.xml 51 | coverage.xml 52 | 53 | # Translations 54 | *.mo 55 | 56 | # Pycharm 57 | .idea 58 | 59 | # Eclipse 60 | .settings 61 | 62 | # Visual Studio cache/options directory 63 | .vs/ 64 | .vscode 65 | 66 | # OSX Files 67 | .DS_Store 68 | 69 | # Django stuff: 70 | *.log 71 | 72 | # Mr Developer 73 | .mr.developer.cfg 74 | .project 75 | .pydevproject 76 | 77 | # Rope 78 | .ropeproject 79 | 80 | # Sphinx documentation 81 | docs/_build/ 82 | 83 | # Backup files 84 | *~ 85 | *.swp 86 | 87 | # OCA rules 88 | !static/lib/ 89 | -------------------------------------------------------------------------------- /purchase_packaging_report/report/purchase_report.py: -------------------------------------------------------------------------------- 1 | # Copyright 2023 Moduon Team S.L. 2 | # License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl-3.0) 3 | 4 | 5 | from odoo import fields, models 6 | from odoo.tools import SQL 7 | 8 | 9 | class PurchaseReport(models.Model): 10 | _inherit = "purchase.report" 11 | 12 | product_packaging_id = fields.Many2one( 13 | "product.packaging", 14 | string="Packaging", 15 | readonly=True, 16 | ) 17 | product_packaging_qty = fields.Float( 18 | string="Packaging Qty", 19 | readonly=True, 20 | ) 21 | 22 | def _select(self): 23 | return SQL( 24 | """ 25 | %s, 26 | l.product_packaging_id AS product_packaging_id, 27 | SUM(l.product_packaging_qty) AS product_packaging_qty 28 | """, 29 | super()._select(), 30 | ) 31 | 32 | def _from(self): 33 | return SQL( 34 | """ 35 | %s 36 | LEFT JOIN product_packaging ON l.product_packaging_id = product_packaging.id 37 | """, 38 | super()._from(), 39 | ) 40 | 41 | def _group_by(self): 42 | return SQL( 43 | """ 44 | %s, 45 | l.product_packaging_id 46 | """, 47 | super()._group_by(), 48 | ) 49 | -------------------------------------------------------------------------------- /purchase_comment_template/i18n/purchase_comment_template.pot: -------------------------------------------------------------------------------- 1 | # Translation of Odoo Server. 2 | # This file contains the translation of the following modules: 3 | # * purchase_comment_template 4 | # 5 | msgid "" 6 | msgstr "" 7 | "Project-Id-Version: Odoo Server 18.0\n" 8 | "Report-Msgid-Bugs-To: \n" 9 | "Last-Translator: \n" 10 | "Language-Team: \n" 11 | "MIME-Version: 1.0\n" 12 | "Content-Type: text/plain; charset=UTF-8\n" 13 | "Content-Transfer-Encoding: \n" 14 | "Plural-Forms: \n" 15 | 16 | #. module: purchase_comment_template 17 | #: model:ir.model.fields,field_description:purchase_comment_template.field_purchase_order__comment_template_ids 18 | msgid "Comment Template" 19 | msgstr "" 20 | 21 | #. module: purchase_comment_template 22 | #: model_terms:ir.ui.view,arch_db:purchase_comment_template.purchase_order_form_add_comment 23 | msgid "Comments" 24 | msgstr "" 25 | 26 | #. module: purchase_comment_template 27 | #: model:ir.ui.menu,name:purchase_comment_template.menu_base_comment_template_purchase 28 | msgid "Document Comments" 29 | msgstr "" 30 | 31 | #. module: purchase_comment_template 32 | #: model:ir.model,name:purchase_comment_template.model_purchase_order 33 | msgid "Purchase Order" 34 | msgstr "" 35 | 36 | #. module: purchase_comment_template 37 | #: model:ir.actions.act_window,name:purchase_comment_template.action_purchase_order_comment_template 38 | msgid "Purchase Orders Comments" 39 | msgstr "" 40 | -------------------------------------------------------------------------------- /purchase_packaging_report/i18n/it.po: -------------------------------------------------------------------------------- 1 | # Translation of Odoo Server. 2 | # This file contains the translation of the following modules: 3 | # * purchase_packaging_report 4 | # 5 | msgid "" 6 | msgstr "" 7 | "Project-Id-Version: Odoo Server 16.0\n" 8 | "Report-Msgid-Bugs-To: \n" 9 | "PO-Revision-Date: 2024-06-04 15:39+0000\n" 10 | "Last-Translator: mymage \n" 11 | "Language-Team: none\n" 12 | "Language: it\n" 13 | "MIME-Version: 1.0\n" 14 | "Content-Type: text/plain; charset=UTF-8\n" 15 | "Content-Transfer-Encoding: \n" 16 | "Plural-Forms: nplurals=2; plural=n != 1;\n" 17 | "X-Generator: Weblate 4.17\n" 18 | 19 | #. module: purchase_packaging_report 20 | #: model:ir.model.fields,field_description:purchase_packaging_report.field_purchase_report__product_packaging_id 21 | msgid "Packaging" 22 | msgstr "Imballaggio" 23 | 24 | #. module: purchase_packaging_report 25 | #: model:ir.model.fields,field_description:purchase_packaging_report.field_purchase_report__product_packaging_qty 26 | msgid "Packaging Qty" 27 | msgstr "Q.tà imballagio" 28 | 29 | #. module: purchase_packaging_report 30 | #: model_terms:ir.ui.view,arch_db:purchase_packaging_report.view_purchase_order_search 31 | msgid "Product Packaging" 32 | msgstr "Imballaggio prodotto" 33 | 34 | #. module: purchase_packaging_report 35 | #: model:ir.model,name:purchase_packaging_report.model_purchase_report 36 | msgid "Purchase Report" 37 | msgstr "Resoconto di acquisto" 38 | -------------------------------------------------------------------------------- /purchase_comment_template/i18n/fr.po: -------------------------------------------------------------------------------- 1 | # Translation of Odoo Server. 2 | # This file contains the translation of the following modules: 3 | # * purchase_comment_template 4 | # 5 | msgid "" 6 | msgstr "" 7 | "Project-Id-Version: Odoo Server 10.0\n" 8 | "Report-Msgid-Bugs-To: \n" 9 | "Last-Translator: Automatically generated\n" 10 | "Language-Team: none\n" 11 | "Language: fr\n" 12 | "MIME-Version: 1.0\n" 13 | "Content-Type: text/plain; charset=UTF-8\n" 14 | "Content-Transfer-Encoding: \n" 15 | "Plural-Forms: nplurals=2; plural=n > 1;\n" 16 | 17 | #. module: purchase_comment_template 18 | #: model:ir.model.fields,field_description:purchase_comment_template.field_purchase_order__comment_template_ids 19 | msgid "Comment Template" 20 | msgstr "" 21 | 22 | #. module: purchase_comment_template 23 | #: model_terms:ir.ui.view,arch_db:purchase_comment_template.purchase_order_form_add_comment 24 | msgid "Comments" 25 | msgstr "" 26 | 27 | #. module: purchase_comment_template 28 | #: model:ir.ui.menu,name:purchase_comment_template.menu_base_comment_template_purchase 29 | msgid "Document Comments" 30 | msgstr "" 31 | 32 | #. module: purchase_comment_template 33 | #: model:ir.model,name:purchase_comment_template.model_purchase_order 34 | msgid "Purchase Order" 35 | msgstr "" 36 | 37 | #. module: purchase_comment_template 38 | #: model:ir.actions.act_window,name:purchase_comment_template.action_purchase_order_comment_template 39 | msgid "Purchase Orders Comments" 40 | msgstr "" 41 | -------------------------------------------------------------------------------- /purchase_comment_template/i18n/es.po: -------------------------------------------------------------------------------- 1 | # Translation of Odoo Server. 2 | # This file contains the translation of the following modules: 3 | # * purchase_comment_template 4 | # 5 | msgid "" 6 | msgstr "" 7 | "Project-Id-Version: Odoo Server 15.0\n" 8 | "Report-Msgid-Bugs-To: \n" 9 | "PO-Revision-Date: 2023-07-13 10:10+0000\n" 10 | "Last-Translator: Ivorra78 \n" 11 | "Language-Team: none\n" 12 | "Language: es\n" 13 | "MIME-Version: 1.0\n" 14 | "Content-Type: text/plain; charset=UTF-8\n" 15 | "Content-Transfer-Encoding: \n" 16 | "Plural-Forms: nplurals=2; plural=n != 1;\n" 17 | "X-Generator: Weblate 4.17\n" 18 | 19 | #. module: purchase_comment_template 20 | #: model:ir.model.fields,field_description:purchase_comment_template.field_purchase_order__comment_template_ids 21 | msgid "Comment Template" 22 | msgstr "Plantilla de comentarios" 23 | 24 | #. module: purchase_comment_template 25 | #: model_terms:ir.ui.view,arch_db:purchase_comment_template.purchase_order_form_add_comment 26 | msgid "Comments" 27 | msgstr "comentarios" 28 | 29 | #. module: purchase_comment_template 30 | #: model:ir.ui.menu,name:purchase_comment_template.menu_base_comment_template_purchase 31 | msgid "Document Comments" 32 | msgstr "Comentarios del documento" 33 | 34 | #. module: purchase_comment_template 35 | #: model:ir.model,name:purchase_comment_template.model_purchase_order 36 | msgid "Purchase Order" 37 | msgstr "orden de compra" 38 | 39 | #. module: purchase_comment_template 40 | #: model:ir.actions.act_window,name:purchase_comment_template.action_purchase_order_comment_template 41 | msgid "Purchase Orders Comments" 42 | msgstr "comentarios de orden de compra" 43 | -------------------------------------------------------------------------------- /purchase_packaging_report/report/purchase_report_views.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | purchase.report.view.tree 5 | purchase.report 6 | 7 | 8 | 9 | 14 | 19 | 20 | 21 | 22 | 23 | 24 | report.purchase.order.search 25 | purchase.report 26 | 27 | 28 | 32 | 38 | 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /purchase_comment_template/i18n/de.po: -------------------------------------------------------------------------------- 1 | # Translation of Odoo Server. 2 | # This file contains the translation of the following modules: 3 | # * purchase_comment_template 4 | # 5 | msgid "" 6 | msgstr "" 7 | "Project-Id-Version: Odoo Server 14.0\n" 8 | "Report-Msgid-Bugs-To: \n" 9 | "PO-Revision-Date: 2022-05-11 12:05+0000\n" 10 | "Last-Translator: Maria Sparenberg \n" 11 | "Language-Team: none\n" 12 | "Language: de\n" 13 | "MIME-Version: 1.0\n" 14 | "Content-Type: text/plain; charset=UTF-8\n" 15 | "Content-Transfer-Encoding: \n" 16 | "Plural-Forms: nplurals=2; plural=n != 1;\n" 17 | "X-Generator: Weblate 4.3.2\n" 18 | 19 | #. module: purchase_comment_template 20 | #: model:ir.model.fields,field_description:purchase_comment_template.field_purchase_order__comment_template_ids 21 | msgid "Comment Template" 22 | msgstr "Textbaustein-Vorlage" 23 | 24 | #. module: purchase_comment_template 25 | #: model_terms:ir.ui.view,arch_db:purchase_comment_template.purchase_order_form_add_comment 26 | msgid "Comments" 27 | msgstr "Textbausteine" 28 | 29 | #. module: purchase_comment_template 30 | #: model:ir.ui.menu,name:purchase_comment_template.menu_base_comment_template_purchase 31 | msgid "Document Comments" 32 | msgstr "Textbausteine" 33 | 34 | #. module: purchase_comment_template 35 | #: model:ir.model,name:purchase_comment_template.model_purchase_order 36 | msgid "Purchase Order" 37 | msgstr "Beschaffungsauftrag" 38 | 39 | #. module: purchase_comment_template 40 | #: model:ir.actions.act_window,name:purchase_comment_template.action_purchase_order_comment_template 41 | msgid "Purchase Orders Comments" 42 | msgstr "Textbausteine für Beschaffungsaufträge" 43 | 44 | #~ msgid "Display Name" 45 | #~ msgstr "Anzeigename" 46 | 47 | #~ msgid "ID" 48 | #~ msgstr "ID" 49 | 50 | #~ msgid "Last Modified on" 51 | #~ msgstr "Zuletzt geändert am" 52 | -------------------------------------------------------------------------------- /.github/workflows/pre-commit.yml: -------------------------------------------------------------------------------- 1 | name: pre-commit 2 | 3 | on: 4 | pull_request: 5 | branches: 6 | - "18.0*" 7 | push: 8 | branches: 9 | - "18.0" 10 | - "18.0-ocabot-*" 11 | 12 | jobs: 13 | pre-commit: 14 | runs-on: ubuntu-22.04 15 | steps: 16 | - uses: actions/checkout@v4 17 | - uses: actions/setup-python@v5 18 | with: 19 | python-version: "3.11" 20 | - name: Get python version 21 | run: echo "PY=$(python -VV | sha256sum | cut -d' ' -f1)" >> $GITHUB_ENV 22 | - uses: actions/cache@v4 23 | with: 24 | path: ~/.cache/pre-commit 25 | key: pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }} 26 | - name: Install pre-commit 27 | run: pip install pre-commit 28 | - name: Run pre-commit 29 | run: pre-commit run --all-files --show-diff-on-failure --color=always 30 | env: 31 | # Consider valid a PR that changes README fragments but doesn't 32 | # change the README.rst file itself. It's not really a problem 33 | # because the bot will update it anyway after merge. This way, we 34 | # lower the barrier for functional contributors that want to fix the 35 | # readme fragments, while still letting developers get README 36 | # auto-generated (which also helps functionals when using runboat). 37 | # DOCS https://pre-commit.com/#temporarily-disabling-hooks 38 | SKIP: oca-gen-addon-readme 39 | - name: Check that all files generated by pre-commit are in git 40 | run: | 41 | newfiles="$(git ls-files --others --exclude-from=.gitignore)" 42 | if [ "$newfiles" != "" ] ; then 43 | echo "Please check-in the following files:" 44 | echo "$newfiles" 45 | exit 1 46 | fi 47 | -------------------------------------------------------------------------------- /purchase_packaging_report/i18n/es.po: -------------------------------------------------------------------------------- 1 | # Translation of Odoo Server. 2 | # This file contains the translation of the following modules: 3 | # * purchase_packaging_report 4 | # 5 | msgid "" 6 | msgstr "" 7 | "Project-Id-Version: Odoo Server 16.0\n" 8 | "Report-Msgid-Bugs-To: \n" 9 | "POT-Creation-Date: 2024-05-28 09:54+0000\n" 10 | "PO-Revision-Date: 2024-05-28 11:54+0200\n" 11 | "Last-Translator: \n" 12 | "Language-Team: \n" 13 | "Language: es\n" 14 | "MIME-Version: 1.0\n" 15 | "Content-Type: text/plain; charset=UTF-8\n" 16 | "Content-Transfer-Encoding: 8bit\n" 17 | "Plural-Forms: nplurals=2; plural=(n != 1);\n" 18 | "X-Generator: Poedit 3.4.4\n" 19 | 20 | #. module: purchase_packaging_report 21 | #: model_terms:ir.ui.view,arch_db:purchase_packaging_report.report_purchaseorder_document 22 | #: model_terms:ir.ui.view,arch_db:purchase_packaging_report.report_purchasequotation_document 23 | msgid "(" 24 | msgstr "(" 25 | 26 | #. module: purchase_packaging_report 27 | #: model_terms:ir.ui.view,arch_db:purchase_packaging_report.report_purchaseorder_document 28 | #: model_terms:ir.ui.view,arch_db:purchase_packaging_report.report_purchasequotation_document 29 | msgid ")" 30 | msgstr "" 31 | "Correo electrónico\n" 32 | " *" 33 | 34 | #. module: purchase_packaging_report 35 | #: model:ir.model.fields,field_description:purchase_packaging_report.field_purchase_report__product_packaging_id 36 | msgid "Packaging" 37 | msgstr "Envase" 38 | 39 | #. module: purchase_packaging_report 40 | #: model:ir.model.fields,field_description:purchase_packaging_report.field_purchase_report__product_packaging_qty 41 | msgid "Packaging Qty" 42 | msgstr "Cantidad de Envases" 43 | 44 | #. module: purchase_packaging_report 45 | #: model_terms:ir.ui.view,arch_db:purchase_packaging_report.view_purchase_order_search 46 | msgid "Product Packaging" 47 | msgstr "Envase del Producto" 48 | 49 | #. module: purchase_packaging_report 50 | #: model:ir.model,name:purchase_packaging_report.model_purchase_report 51 | msgid "Purchase Report" 52 | msgstr "Informe de Compras" 53 | -------------------------------------------------------------------------------- /purchase_packaging_report/tests/test_purchase_packaging_report.py: -------------------------------------------------------------------------------- 1 | # Copyright 2023 Moduon Team S.L. 2 | # License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl-3.0) 3 | 4 | from odoo import Command 5 | 6 | from odoo.addons.base.tests.common import BaseCommon 7 | 8 | 9 | class TestPurchaseReport(BaseCommon): 10 | @classmethod 11 | def setUpClass(self): 12 | super().setUpClass() 13 | self.partner = self.env["res.partner"].create({"name": "Test Vendor"}) 14 | self.product = self.env["product.product"].create( 15 | { 16 | "name": "Test Product", 17 | "type": "consu", 18 | } 19 | ) 20 | self.packaging = self.env["product.packaging"].create( 21 | { 22 | "name": "Box", 23 | "product_id": self.product.id, 24 | "qty": 5, # Packaging contains 5 units 25 | } 26 | ) 27 | self.purchase_order = self.env["purchase.order"].create( 28 | { 29 | "partner_id": self.partner.id, 30 | "order_line": [ 31 | Command.create( 32 | { 33 | "product_id": self.product.id, 34 | "product_qty": 10, 35 | "product_packaging_id": self.packaging.id, 36 | "product_packaging_qty": 10, 37 | } 38 | ) 39 | ], 40 | } 41 | ) 42 | 43 | def test_purchase_report_with_packaging(self): 44 | """Test that purchase.report includes packaging data""" 45 | self.purchase_order.button_confirm() 46 | 47 | purchase_report = self.env["purchase.report"].search( 48 | [("product_id", "=", self.product.id)] 49 | ) 50 | 51 | self.assertTrue(purchase_report, "Purchase report entry was not created") 52 | self.assertEqual( 53 | purchase_report[0].product_packaging_id, 54 | self.packaging, 55 | "Product packaging ID is incorrect in the report", 56 | ) 57 | self.assertEqual( 58 | purchase_report[0].product_packaging_qty, 59 | 10, 60 | "Product packaging quantity is incorrect in the report", 61 | ) 62 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | 2 | [![Runboat](https://img.shields.io/badge/runboat-Try%20me-875A7B.png)](https://runboat.odoo-community.org/builds?repo=OCA/purchase-reporting&target_branch=18.0) 3 | [![Pre-commit Status](https://github.com/OCA/purchase-reporting/actions/workflows/pre-commit.yml/badge.svg?branch=18.0)](https://github.com/OCA/purchase-reporting/actions/workflows/pre-commit.yml?query=branch%3A18.0) 4 | [![Build Status](https://github.com/OCA/purchase-reporting/actions/workflows/test.yml/badge.svg?branch=18.0)](https://github.com/OCA/purchase-reporting/actions/workflows/test.yml?query=branch%3A18.0) 5 | [![codecov](https://codecov.io/gh/OCA/purchase-reporting/branch/18.0/graph/badge.svg)](https://codecov.io/gh/OCA/purchase-reporting) 6 | [![Translation Status](https://translation.odoo-community.org/widgets/purchase-reporting-18-0/-/svg-badge.svg)](https://translation.odoo-community.org/engage/purchase-reporting-18-0/?utm_source=widget) 7 | 8 | 9 | 10 | # purchase-reporting 11 | 12 | purchase-reporting 13 | 14 | 15 | 16 | 17 | 18 | [//]: # (addons) 19 | 20 | Available addons 21 | ---------------- 22 | addon | version | maintainers | summary 23 | --- | --- | --- | --- 24 | [purchase_comment_template](purchase_comment_template/) | 18.0.1.0.2 | | Comments texts templates on Purchase documents 25 | [purchase_packaging_report](purchase_packaging_report/) | 18.0.1.0.0 | Shide | Packaging data in purchase reports 26 | [purchase_report_date_format](purchase_report_date_format/) | 18.0.1.0.0 | | Purchase Report Date Format 27 | [purchase_report_shipping_address](purchase_report_shipping_address/) | 18.0.1.0.0 | | Purchase Report Shipping Address 28 | 29 | [//]: # (end addons) 30 | 31 | 32 | 33 | ## Licenses 34 | 35 | This repository is licensed under [AGPL-3.0](LICENSE). 36 | 37 | However, each module can have a totally different license, as long as they adhere to Odoo Community Association (OCA) 38 | policy. Consult each module's `__manifest__.py` file, which contains a `license` key 39 | that explains its license. 40 | 41 | ---- 42 | OCA, or the [Odoo Community Association](http://odoo-community.org/), is a nonprofit 43 | organization whose mission is to support the collaborative development of Odoo features 44 | and promote its widespread use. 45 | -------------------------------------------------------------------------------- /.github/workflows/test.yml: -------------------------------------------------------------------------------- 1 | name: tests 2 | 3 | on: 4 | pull_request: 5 | branches: 6 | - "18.0*" 7 | push: 8 | branches: 9 | - "18.0" 10 | - "18.0-ocabot-*" 11 | 12 | jobs: 13 | unreleased-deps: 14 | runs-on: ubuntu-latest 15 | name: Detect unreleased dependencies 16 | steps: 17 | - uses: actions/checkout@v4 18 | - run: | 19 | for reqfile in requirements.txt test-requirements.txt ; do 20 | if [ -f ${reqfile} ] ; then 21 | result=0 22 | # reject non-comment lines that contain a / (i.e. URLs, relative paths) 23 | grep "^[^#].*/" ${reqfile} || result=$? 24 | if [ $result -eq 0 ] ; then 25 | echo "Unreleased dependencies found in ${reqfile}." 26 | exit 1 27 | fi 28 | fi 29 | done 30 | test: 31 | runs-on: ubuntu-22.04 32 | container: ${{ matrix.container }} 33 | name: ${{ matrix.name }} 34 | strategy: 35 | fail-fast: false 36 | matrix: 37 | include: 38 | - container: ghcr.io/oca/oca-ci/py3.10-odoo18.0:latest 39 | name: test with Odoo 40 | - container: ghcr.io/oca/oca-ci/py3.10-ocb18.0:latest 41 | name: test with OCB 42 | makepot: "true" 43 | services: 44 | postgres: 45 | image: postgres:12.0 46 | env: 47 | POSTGRES_USER: odoo 48 | POSTGRES_PASSWORD: odoo 49 | POSTGRES_DB: odoo 50 | ports: 51 | - 5432:5432 52 | env: 53 | OCA_ENABLE_CHECKLOG_ODOO: "1" 54 | steps: 55 | - uses: actions/checkout@v4 56 | with: 57 | persist-credentials: false 58 | - name: Install addons and dependencies 59 | run: oca_install_addons 60 | - name: Check licenses 61 | run: manifestoo -d . check-licenses 62 | - name: Check development status 63 | run: manifestoo -d . check-dev-status --default-dev-status=Beta 64 | - name: Initialize test db 65 | run: oca_init_test_database 66 | - name: Run tests 67 | run: oca_run_tests 68 | - uses: codecov/codecov-action@v4 69 | with: 70 | token: ${{ secrets.CODECOV_TOKEN }} 71 | - name: Update .pot files 72 | run: oca_export_and_push_pot https://x-access-token:${{ secrets.GIT_PUSH_TOKEN }}@github.com/${{ github.repository }} 73 | if: ${{ matrix.makepot == 'true' && github.event_name == 'push' && github.repository_owner == 'OCA' }} 74 | -------------------------------------------------------------------------------- /purchase_comment_template/i18n/it.po: -------------------------------------------------------------------------------- 1 | # Translation of Odoo Server. 2 | # This file contains the translation of the following modules: 3 | # * purchase_comment_template 4 | # 5 | msgid "" 6 | msgstr "" 7 | "Project-Id-Version: Odoo Server 12.0\n" 8 | "Report-Msgid-Bugs-To: \n" 9 | "PO-Revision-Date: 2024-04-02 11:45+0000\n" 10 | "Last-Translator: mymage \n" 11 | "Language-Team: none\n" 12 | "Language: it\n" 13 | "MIME-Version: 1.0\n" 14 | "Content-Type: text/plain; charset=UTF-8\n" 15 | "Content-Transfer-Encoding: \n" 16 | "Plural-Forms: nplurals=2; plural=n != 1;\n" 17 | "X-Generator: Weblate 4.17\n" 18 | 19 | #. module: purchase_comment_template 20 | #: model:ir.model.fields,field_description:purchase_comment_template.field_purchase_order__comment_template_ids 21 | msgid "Comment Template" 22 | msgstr "Modello commento" 23 | 24 | #. module: purchase_comment_template 25 | #: model_terms:ir.ui.view,arch_db:purchase_comment_template.purchase_order_form_add_comment 26 | msgid "Comments" 27 | msgstr "Commenti" 28 | 29 | #. module: purchase_comment_template 30 | #: model:ir.ui.menu,name:purchase_comment_template.menu_base_comment_template_purchase 31 | msgid "Document Comments" 32 | msgstr "Commenti del documento" 33 | 34 | #. module: purchase_comment_template 35 | #: model:ir.model,name:purchase_comment_template.model_purchase_order 36 | msgid "Purchase Order" 37 | msgstr "Ordine di acquisto" 38 | 39 | #. module: purchase_comment_template 40 | #: model:ir.actions.act_window,name:purchase_comment_template.action_purchase_order_comment_template 41 | msgid "Purchase Orders Comments" 42 | msgstr "Commenti ordini di acquisto" 43 | 44 | #~ msgid "Bottom Comment" 45 | #~ msgstr "Commento in basso" 46 | 47 | #~ msgid "Bottom Comment Template" 48 | #~ msgstr "Modello commento in basso" 49 | 50 | #~ msgid "Bottom Comments" 51 | #~ msgstr "Commenti in basso" 52 | 53 | #~ msgid "Formatted Note" 54 | #~ msgstr "Note formattate" 55 | 56 | #~ msgid "Load a template" 57 | #~ msgstr "Carica un modello" 58 | 59 | #~ msgid "Purchase Order Line" 60 | #~ msgstr "Riga ordine di acquisto" 61 | 62 | #~ msgid "" 63 | #~ "The comments will be displayed on the printed document. You can load a " 64 | #~ "predefined template, write your own text or load a template and then " 65 | #~ "modify it only for this document." 66 | #~ msgstr "" 67 | #~ "Il commenti saranno mostrati sul documento stampato. Puoi caricare un " 68 | #~ "modello predefinito, puoi scrivere un tuo testo o caricare un modello e " 69 | #~ "poi modificarlo solo per questo documento." 70 | 71 | #~ msgid "Top Comment" 72 | #~ msgstr "Commento in alto" 73 | 74 | #~ msgid "Top Comment Template" 75 | #~ msgstr "Modello commento in alto" 76 | 77 | #~ msgid "Top Comments" 78 | #~ msgstr "Commenti in alto" 79 | -------------------------------------------------------------------------------- /.github/workflows/stale.yml: -------------------------------------------------------------------------------- 1 | name: Mark stale issues and pull requests 2 | 3 | on: 4 | schedule: 5 | - cron: "0 12 * * 0" 6 | 7 | jobs: 8 | stale: 9 | runs-on: ubuntu-latest 10 | steps: 11 | - name: Stale PRs and issues policy 12 | uses: actions/stale@v9 13 | with: 14 | repo-token: ${{ secrets.GITHUB_TOKEN }} 15 | # General settings. 16 | ascending: true 17 | remove-stale-when-updated: true 18 | # Pull Requests settings. 19 | # 120+30 day stale policy for PRs 20 | # * Except PRs marked as "no stale" 21 | days-before-pr-stale: 120 22 | days-before-pr-close: 30 23 | exempt-pr-labels: "no stale" 24 | stale-pr-label: "stale" 25 | stale-pr-message: > 26 | There hasn't been any activity on this pull request in the past 4 months, so 27 | it has been marked as stale and it will be closed automatically if no 28 | further activity occurs in the next 30 days. 29 | 30 | If you want this PR to never become stale, please ask a PSC member to apply 31 | the "no stale" label. 32 | # Issues settings. 33 | # 180+30 day stale policy for open issues 34 | # * Except Issues marked as "no stale" 35 | days-before-issue-stale: 180 36 | days-before-issue-close: 30 37 | exempt-issue-labels: "no stale,needs more information" 38 | stale-issue-label: "stale" 39 | stale-issue-message: > 40 | There hasn't been any activity on this issue in the past 6 months, so it has 41 | been marked as stale and it will be closed automatically if no further 42 | activity occurs in the next 30 days. 43 | 44 | If you want this issue to never become stale, please ask a PSC member to 45 | apply the "no stale" label. 46 | 47 | # 15+30 day stale policy for issues pending more information 48 | # * Issues that are pending more information 49 | # * Except Issues marked as "no stale" 50 | - name: Needs more information stale issues policy 51 | uses: actions/stale@v9 52 | with: 53 | repo-token: ${{ secrets.GITHUB_TOKEN }} 54 | ascending: true 55 | only-labels: "needs more information" 56 | exempt-issue-labels: "no stale" 57 | days-before-stale: 15 58 | days-before-close: 30 59 | days-before-pr-stale: -1 60 | days-before-pr-close: -1 61 | remove-stale-when-updated: true 62 | stale-issue-label: "stale" 63 | stale-issue-message: > 64 | This issue needs more information and there hasn't been any activity 65 | recently, so it has been marked as stale and it will be closed automatically 66 | if no further activity occurs in the next 30 days. 67 | 68 | If you think this is a mistake, please ask a PSC member to remove the "needs 69 | more information" label. 70 | -------------------------------------------------------------------------------- /.pylintrc-mandatory: -------------------------------------------------------------------------------- 1 | 2 | [MASTER] 3 | load-plugins=pylint_odoo 4 | score=n 5 | 6 | [ODOOLINT] 7 | readme-template-url="https://github.com/OCA/maintainer-tools/blob/master/template/module/README.rst" 8 | manifest-required-authors=Odoo Community Association (OCA) 9 | manifest-required-keys=license 10 | manifest-deprecated-keys=description,active 11 | license-allowed=AGPL-3,GPL-2,GPL-2 or any later version,GPL-3,GPL-3 or any later version,LGPL-3 12 | valid-odoo-versions=18.0 13 | 14 | [MESSAGES CONTROL] 15 | disable=all 16 | 17 | enable=anomalous-backslash-in-string, 18 | api-one-deprecated, 19 | api-one-multi-together, 20 | assignment-from-none, 21 | attribute-deprecated, 22 | class-camelcase, 23 | dangerous-default-value, 24 | dangerous-view-replace-wo-priority, 25 | development-status-allowed, 26 | duplicate-id-csv, 27 | duplicate-key, 28 | duplicate-xml-fields, 29 | duplicate-xml-record-id, 30 | eval-referenced, 31 | eval-used, 32 | incoherent-interpreter-exec-perm, 33 | license-allowed, 34 | manifest-author-string, 35 | manifest-deprecated-key, 36 | manifest-required-author, 37 | manifest-required-key, 38 | manifest-version-format, 39 | method-compute, 40 | method-inverse, 41 | method-required-super, 42 | method-search, 43 | openerp-exception-warning, 44 | pointless-statement, 45 | pointless-string-statement, 46 | print-used, 47 | redundant-keyword-arg, 48 | redundant-modulename-xml, 49 | reimported, 50 | relative-import, 51 | return-in-init, 52 | rst-syntax-error, 53 | sql-injection, 54 | too-few-format-args, 55 | translation-field, 56 | translation-required, 57 | unreachable, 58 | use-vim-comment, 59 | wrong-tabs-instead-of-spaces, 60 | xml-syntax-error, 61 | attribute-string-redundant, 62 | character-not-valid-in-resource-link, 63 | consider-merging-classes-inherited, 64 | context-overridden, 65 | create-user-wo-reset-password, 66 | dangerous-filter-wo-user, 67 | dangerous-qweb-replace-wo-priority, 68 | deprecated-data-xml-node, 69 | deprecated-openerp-xml-node, 70 | duplicate-po-message-definition, 71 | except-pass, 72 | file-not-used, 73 | invalid-commit, 74 | manifest-maintainers-list, 75 | missing-newline-extrafiles, 76 | missing-readme, 77 | missing-return, 78 | odoo-addons-relative-import, 79 | old-api7-method-defined, 80 | po-msgstr-variables, 81 | po-syntax-error, 82 | renamed-field-parameter, 83 | resource-not-exist, 84 | str-format-used, 85 | test-folder-imported, 86 | translation-contains-variable, 87 | translation-positional-used, 88 | unnecessary-utf8-coding-comment, 89 | website-manifest-key-not-valid-uri, 90 | xml-attribute-translatable, 91 | xml-deprecated-qweb-directive, 92 | xml-deprecated-tree-attribute, 93 | external-request-timeout 94 | 95 | [REPORTS] 96 | msg-template={path}:{line}: [{msg_id}({symbol}), {obj}] {msg} 97 | output-format=colorized 98 | reports=no 99 | -------------------------------------------------------------------------------- /purchase_report_date_format/README.rst: -------------------------------------------------------------------------------- 1 | .. image:: https://odoo-community.org/readme-banner-image 2 | :target: https://odoo-community.org/get-involved?utm_source=readme 3 | :alt: Odoo Community Association 4 | 5 | =========================== 6 | Purchase Report Date Format 7 | =========================== 8 | 9 | .. 10 | !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 11 | !! This file is generated by oca-gen-addon-readme !! 12 | !! changes will be overwritten. !! 13 | !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 14 | !! source digest: sha256:01370b31c5e382325362fa66b7d9430d209c91160f01ca2f0be5bceac92473f1 15 | !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 16 | 17 | .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png 18 | :target: https://odoo-community.org/page/development-status 19 | :alt: Beta 20 | .. |badge2| image:: https://img.shields.io/badge/license-AGPL--3-blue.png 21 | :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html 22 | :alt: License: AGPL-3 23 | .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fpurchase--reporting-lightgray.png?logo=github 24 | :target: https://github.com/OCA/purchase-reporting/tree/18.0/purchase_report_date_format 25 | :alt: OCA/purchase-reporting 26 | .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png 27 | :target: https://translation.odoo-community.org/projects/purchase-reporting-18-0/purchase-reporting-18-0-purchase_report_date_format 28 | :alt: Translate me on Weblate 29 | .. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png 30 | :target: https://runboat.odoo-community.org/builds?repo=OCA/purchase-reporting&target_branch=18.0 31 | :alt: Try me on Runboat 32 | 33 | |badge1| |badge2| |badge3| |badge4| |badge5| 34 | 35 | Shows following datetime fields of purchase reports in date format 36 | instead of datetime, since presenting dates up to seconds is too much or 37 | unnecessary in many purchase transactions. 38 | 39 | Request for Quotation print: 40 | 41 | - Expected Date 42 | 43 | Purchase Order print: 44 | 45 | - Order Date 46 | - Order Deadline 47 | - Requested Date 48 | 49 | **Table of contents** 50 | 51 | .. contents:: 52 | :local: 53 | 54 | Bug Tracker 55 | =========== 56 | 57 | Bugs are tracked on `GitHub Issues `_. 58 | In case of trouble, please check there if your issue has already been reported. 59 | If you spotted it first, help us to smash it by providing a detailed and welcomed 60 | `feedback `_. 61 | 62 | Do not contact contributors directly about support or help with technical issues. 63 | 64 | Credits 65 | ======= 66 | 67 | Authors 68 | ------- 69 | 70 | * Quartile Limited 71 | 72 | Contributors 73 | ------------ 74 | 75 | - `Heliconia Solutions Pvt. Ltd. `__ 76 | 77 | - Bhavesh Heliconia 78 | 79 | Maintainers 80 | ----------- 81 | 82 | This module is maintained by the OCA. 83 | 84 | .. image:: https://odoo-community.org/logo.png 85 | :alt: Odoo Community Association 86 | :target: https://odoo-community.org 87 | 88 | OCA, or the Odoo Community Association, is a nonprofit organization whose 89 | mission is to support the collaborative development of Odoo features and 90 | promote its widespread use. 91 | 92 | This module is part of the `OCA/purchase-reporting `_ project on GitHub. 93 | 94 | You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. 95 | -------------------------------------------------------------------------------- /purchase_comment_template/README.rst: -------------------------------------------------------------------------------- 1 | .. image:: https://odoo-community.org/readme-banner-image 2 | :target: https://odoo-community.org/get-involved?utm_source=readme 3 | :alt: Odoo Community Association 4 | 5 | ================= 6 | Purchase Comments 7 | ================= 8 | 9 | .. 10 | !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 11 | !! This file is generated by oca-gen-addon-readme !! 12 | !! changes will be overwritten. !! 13 | !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 14 | !! source digest: sha256:5ade05d9e3e6ebb84ffb62614c0fc3bc65e06a6a37491a697343c27220a062e3 15 | !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 16 | 17 | .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png 18 | :target: https://odoo-community.org/page/development-status 19 | :alt: Beta 20 | .. |badge2| image:: https://img.shields.io/badge/license-AGPL--3-blue.png 21 | :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html 22 | :alt: License: AGPL-3 23 | .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fpurchase--reporting-lightgray.png?logo=github 24 | :target: https://github.com/OCA/purchase-reporting/tree/18.0/purchase_comment_template 25 | :alt: OCA/purchase-reporting 26 | .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png 27 | :target: https://translation.odoo-community.org/projects/purchase-reporting-18-0/purchase-reporting-18-0-purchase_comment_template 28 | :alt: Translate me on Weblate 29 | .. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png 30 | :target: https://runboat.odoo-community.org/builds?repo=OCA/purchase-reporting&target_branch=18.0 31 | :alt: Try me on Runboat 32 | 33 | |badge1| |badge2| |badge3| |badge4| |badge5| 34 | 35 | Adds comments on 36 | 37 | 1. Purchases orders: 38 | 39 | The comments can be edited directly on the purchases orders or loaded 40 | from templates. 41 | 42 | Two positions are available for the comments: 43 | 44 | - Above purchase order lines 45 | - Below purchase order lines 46 | 47 | **Table of contents** 48 | 49 | .. contents:: 50 | :local: 51 | 52 | Installation 53 | ============ 54 | 55 | To install this module, you need to have the module `Base Comment 56 | Template `__. 57 | 58 | Bug Tracker 59 | =========== 60 | 61 | Bugs are tracked on `GitHub Issues `_. 62 | In case of trouble, please check there if your issue has already been reported. 63 | If you spotted it first, help us to smash it by providing a detailed and welcomed 64 | `feedback `_. 65 | 66 | Do not contact contributors directly about support or help with technical issues. 67 | 68 | Credits 69 | ======= 70 | 71 | Authors 72 | ------- 73 | 74 | * ForgeFlow 75 | 76 | Contributors 77 | ------------ 78 | 79 | - Miquel Raïch 80 | - Alan Ramos 81 | - `Aion Tech `__: 82 | 83 | - Simone Rubino 84 | 85 | Maintainers 86 | ----------- 87 | 88 | This module is maintained by the OCA. 89 | 90 | .. image:: https://odoo-community.org/logo.png 91 | :alt: Odoo Community Association 92 | :target: https://odoo-community.org 93 | 94 | OCA, or the Odoo Community Association, is a nonprofit organization whose 95 | mission is to support the collaborative development of Odoo features and 96 | promote its widespread use. 97 | 98 | This module is part of the `OCA/purchase-reporting `_ project on GitHub. 99 | 100 | You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. 101 | -------------------------------------------------------------------------------- /purchase_report_shipping_address/README.rst: -------------------------------------------------------------------------------- 1 | .. image:: https://odoo-community.org/readme-banner-image 2 | :target: https://odoo-community.org/get-involved?utm_source=readme 3 | :alt: Odoo Community Association 4 | 5 | ================================ 6 | Purchase Report Shipping Address 7 | ================================ 8 | 9 | .. 10 | !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 11 | !! This file is generated by oca-gen-addon-readme !! 12 | !! changes will be overwritten. !! 13 | !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 14 | !! source digest: sha256:b57ea1c7dd671df448c9ff6bc7ff9198ca0188ca70f18bdb9316fcad8171304a 15 | !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 16 | 17 | .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png 18 | :target: https://odoo-community.org/page/development-status 19 | :alt: Beta 20 | .. |badge2| image:: https://img.shields.io/badge/license-AGPL--3-blue.png 21 | :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html 22 | :alt: License: AGPL-3 23 | .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fpurchase--reporting-lightgray.png?logo=github 24 | :target: https://github.com/OCA/purchase-reporting/tree/18.0/purchase_report_shipping_address 25 | :alt: OCA/purchase-reporting 26 | .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png 27 | :target: https://translation.odoo-community.org/projects/purchase-reporting-18-0/purchase-reporting-18-0-purchase_report_shipping_address 28 | :alt: Translate me on Weblate 29 | .. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png 30 | :target: https://runboat.odoo-community.org/builds?repo=OCA/purchase-reporting&target_branch=18.0 31 | :alt: Try me on Runboat 32 | 33 | |badge1| |badge2| |badge3| |badge4| |badge5| 34 | 35 | This module adds the translatable Warehouse Address Details field in 36 | warehouse to show in purchase reports. 37 | 38 | Purchase documents are printed in supplier's language, however Odoo by 39 | default does not come with the ability to present the warehouse address 40 | in different languages. This module intends to take care of this 41 | shortcoming. 42 | 43 | **Table of contents** 44 | 45 | .. contents:: 46 | :local: 47 | 48 | Configuration 49 | ============= 50 | 51 | #. Go to *Inventory > Configuration > Warehouses* and open a warehouse 52 | record for which the address presentation should be adjusted for 53 | purchase reports. #. Update Warehouse Address Details field. 54 | 55 | Bug Tracker 56 | =========== 57 | 58 | Bugs are tracked on `GitHub Issues `_. 59 | In case of trouble, please check there if your issue has already been reported. 60 | If you spotted it first, help us to smash it by providing a detailed and welcomed 61 | `feedback `_. 62 | 63 | Do not contact contributors directly about support or help with technical issues. 64 | 65 | Credits 66 | ======= 67 | 68 | Authors 69 | ------- 70 | 71 | * Quartile Limited 72 | 73 | Contributors 74 | ------------ 75 | 76 | - `Heliconia Solutions Pvt. Ltd. `__ 77 | 78 | - Bhavesh Heliconia 79 | 80 | Maintainers 81 | ----------- 82 | 83 | This module is maintained by the OCA. 84 | 85 | .. image:: https://odoo-community.org/logo.png 86 | :alt: Odoo Community Association 87 | :target: https://odoo-community.org 88 | 89 | OCA, or the Odoo Community Association, is a nonprofit organization whose 90 | mission is to support the collaborative development of Odoo features and 91 | promote its widespread use. 92 | 93 | This module is part of the `OCA/purchase-reporting `_ project on GitHub. 94 | 95 | You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. 96 | -------------------------------------------------------------------------------- /.pylintrc: -------------------------------------------------------------------------------- 1 | 2 | 3 | [MASTER] 4 | load-plugins=pylint_odoo 5 | score=n 6 | 7 | [ODOOLINT] 8 | readme-template-url="https://github.com/OCA/maintainer-tools/blob/master/template/module/README.rst" 9 | manifest-required-authors=Odoo Community Association (OCA) 10 | manifest-required-keys=license 11 | manifest-deprecated-keys=description,active 12 | license-allowed=AGPL-3,GPL-2,GPL-2 or any later version,GPL-3,GPL-3 or any later version,LGPL-3 13 | valid-odoo-versions=18.0 14 | 15 | [MESSAGES CONTROL] 16 | disable=all 17 | 18 | # This .pylintrc contains optional AND mandatory checks and is meant to be 19 | # loaded in an IDE to have it check everything, in the hope this will make 20 | # optional checks more visible to contributors who otherwise never look at a 21 | # green travis to see optional checks that failed. 22 | # .pylintrc-mandatory containing only mandatory checks is used the pre-commit 23 | # config as a blocking check. 24 | 25 | enable=anomalous-backslash-in-string, 26 | api-one-deprecated, 27 | api-one-multi-together, 28 | assignment-from-none, 29 | attribute-deprecated, 30 | class-camelcase, 31 | dangerous-default-value, 32 | dangerous-view-replace-wo-priority, 33 | development-status-allowed, 34 | duplicate-id-csv, 35 | duplicate-key, 36 | duplicate-xml-fields, 37 | duplicate-xml-record-id, 38 | eval-referenced, 39 | eval-used, 40 | incoherent-interpreter-exec-perm, 41 | license-allowed, 42 | manifest-author-string, 43 | manifest-deprecated-key, 44 | manifest-required-author, 45 | manifest-required-key, 46 | manifest-version-format, 47 | method-compute, 48 | method-inverse, 49 | method-required-super, 50 | method-search, 51 | openerp-exception-warning, 52 | pointless-statement, 53 | pointless-string-statement, 54 | print-used, 55 | redundant-keyword-arg, 56 | redundant-modulename-xml, 57 | reimported, 58 | relative-import, 59 | return-in-init, 60 | rst-syntax-error, 61 | sql-injection, 62 | too-few-format-args, 63 | translation-field, 64 | translation-required, 65 | unreachable, 66 | use-vim-comment, 67 | wrong-tabs-instead-of-spaces, 68 | xml-syntax-error, 69 | attribute-string-redundant, 70 | character-not-valid-in-resource-link, 71 | consider-merging-classes-inherited, 72 | context-overridden, 73 | create-user-wo-reset-password, 74 | dangerous-filter-wo-user, 75 | dangerous-qweb-replace-wo-priority, 76 | deprecated-data-xml-node, 77 | deprecated-openerp-xml-node, 78 | duplicate-po-message-definition, 79 | except-pass, 80 | file-not-used, 81 | invalid-commit, 82 | manifest-maintainers-list, 83 | missing-newline-extrafiles, 84 | missing-readme, 85 | missing-return, 86 | odoo-addons-relative-import, 87 | old-api7-method-defined, 88 | po-msgstr-variables, 89 | po-syntax-error, 90 | renamed-field-parameter, 91 | resource-not-exist, 92 | str-format-used, 93 | test-folder-imported, 94 | translation-contains-variable, 95 | translation-positional-used, 96 | unnecessary-utf8-coding-comment, 97 | website-manifest-key-not-valid-uri, 98 | xml-attribute-translatable, 99 | xml-deprecated-qweb-directive, 100 | xml-deprecated-tree-attribute, 101 | external-request-timeout, 102 | # messages that do not cause the lint step to fail 103 | consider-merging-classes-inherited, 104 | create-user-wo-reset-password, 105 | dangerous-filter-wo-user, 106 | deprecated-module, 107 | file-not-used, 108 | invalid-commit, 109 | missing-manifest-dependency, 110 | missing-newline-extrafiles, 111 | missing-readme, 112 | no-utf8-coding-comment, 113 | odoo-addons-relative-import, 114 | old-api7-method-defined, 115 | redefined-builtin, 116 | too-complex, 117 | unnecessary-utf8-coding-comment 118 | 119 | 120 | [REPORTS] 121 | msg-template={path}:{line}: [{msg_id}({symbol}), {obj}] {msg} 122 | output-format=colorized 123 | reports=no 124 | -------------------------------------------------------------------------------- /purchase_packaging_report/README.rst: -------------------------------------------------------------------------------- 1 | .. image:: https://odoo-community.org/readme-banner-image 2 | :target: https://odoo-community.org/get-involved?utm_source=readme 3 | :alt: Odoo Community Association 4 | 5 | ========================= 6 | Purchase Packaging Report 7 | ========================= 8 | 9 | .. 10 | !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 11 | !! This file is generated by oca-gen-addon-readme !! 12 | !! changes will be overwritten. !! 13 | !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 14 | !! source digest: sha256:c04e938848a4f1916036d08434608c916258608583f4d8b36441bbff67253e7e 15 | !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 16 | 17 | .. |badge1| image:: https://img.shields.io/badge/maturity-Alpha-red.png 18 | :target: https://odoo-community.org/page/development-status 19 | :alt: Alpha 20 | .. |badge2| image:: https://img.shields.io/badge/license-LGPL--3-blue.png 21 | :target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html 22 | :alt: License: LGPL-3 23 | .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fpurchase--reporting-lightgray.png?logo=github 24 | :target: https://github.com/OCA/purchase-reporting/tree/18.0/purchase_packaging_report 25 | :alt: OCA/purchase-reporting 26 | .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png 27 | :target: https://translation.odoo-community.org/projects/purchase-reporting-18-0/purchase-reporting-18-0-purchase_packaging_report 28 | :alt: Translate me on Weblate 29 | .. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png 30 | :target: https://runboat.odoo-community.org/builds?repo=OCA/purchase-reporting&target_branch=18.0 31 | :alt: Try me on Runboat 32 | 33 | |badge1| |badge2| |badge3| |badge4| |badge5| 34 | 35 | This module displays packaging data (quantity and type) in: 36 | 37 | - Purchase order printed reports. 38 | - Purchase BI reports. 39 | 40 | .. IMPORTANT:: 41 | This is an alpha version, the data model and design can change at any time without warning. 42 | Only for development or testing purpose, do not use in production. 43 | `More details on development status `_ 44 | 45 | **Table of contents** 46 | 47 | .. contents:: 48 | :local: 49 | 50 | Configuration 51 | ============= 52 | 53 | To configure this module, you need to: 54 | 55 | #. Go to *Purchase > Configuration > Settings*. #. Enable *Product 56 | Packagings*. #. Save. 57 | 58 | Now, make sure the products you use for testing this module have some 59 | packaging configured. 60 | 61 | Usage 62 | ===== 63 | 64 | To print purchase order packaging data: 65 | 66 | #. Go to *Purchase > Orders > Quotations* and pick or create one. #. Add 67 | some product(s) with packaging information (type and quantity). #. Print 68 | it. 69 | 70 | To query purchase packaging BI data: 71 | 72 | #. Go to *Purchase > Reporting > Purchase*. #. Use the new options at 73 | will: 74 | 75 | - *Measures > Packaging Qty* 76 | - *Group By > Packaging*. 77 | 78 | Bug Tracker 79 | =========== 80 | 81 | Bugs are tracked on `GitHub Issues `_. 82 | In case of trouble, please check there if your issue has already been reported. 83 | If you spotted it first, help us to smash it by providing a detailed and welcomed 84 | `feedback `_. 85 | 86 | Do not contact contributors directly about support or help with technical issues. 87 | 88 | Credits 89 | ======= 90 | 91 | Authors 92 | ------- 93 | 94 | * Moduon 95 | 96 | Contributors 97 | ------------ 98 | 99 | - Eduardo de Miguel (``Moduon ``\ \_\_) 100 | 101 | - `Heliconia Solutions Pvt. Ltd. `__ 102 | 103 | - Bhavesh Heliconia 104 | 105 | Maintainers 106 | ----------- 107 | 108 | This module is maintained by the OCA. 109 | 110 | .. image:: https://odoo-community.org/logo.png 111 | :alt: Odoo Community Association 112 | :target: https://odoo-community.org 113 | 114 | OCA, or the Odoo Community Association, is a nonprofit organization whose 115 | mission is to support the collaborative development of Odoo features and 116 | promote its widespread use. 117 | 118 | .. |maintainer-Shide| image:: https://github.com/Shide.png?size=40px 119 | :target: https://github.com/Shide 120 | :alt: Shide 121 | 122 | Current `maintainer `__: 123 | 124 | |maintainer-Shide| 125 | 126 | This module is part of the `OCA/purchase-reporting `_ project on GitHub. 127 | 128 | You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. 129 | -------------------------------------------------------------------------------- /.pre-commit-config.yaml: -------------------------------------------------------------------------------- 1 | exclude: | 2 | (?x) 3 | # NOT INSTALLABLE ADDONS 4 | # END NOT INSTALLABLE ADDONS 5 | # Files and folders generated by bots, to avoid loops 6 | ^setup/|/static/description/index\.html$| 7 | # We don't want to mess with tool-generated files 8 | .svg$|/tests/([^/]+/)?cassettes/|^.copier-answers.yml$|^.github/|^eslint.config.cjs|^prettier.config.cjs| 9 | # Maybe reactivate this when all README files include prettier ignore tags? 10 | ^README\.md$| 11 | # Library files can have extraneous formatting (even minimized) 12 | /static/(src/)?lib/| 13 | # Repos using Sphinx to generate docs don't need prettying 14 | ^docs/_templates/.*\.html$| 15 | # Don't bother non-technical authors with formatting issues in docs 16 | readme/.*\.(rst|md)$| 17 | # Ignore build and dist directories in addons 18 | /build/|/dist/| 19 | # Ignore test files in addons 20 | /tests/samples/.*| 21 | # You don't usually want a bot to modify your legal texts 22 | (LICENSE.*|COPYING.*) 23 | default_language_version: 24 | python: python3 25 | node: "22.9.0" 26 | repos: 27 | - repo: local 28 | hooks: 29 | # These files are most likely copier diff rejection junks; if found, 30 | # review them manually, fix the problem (if needed) and remove them 31 | - id: forbidden-files 32 | name: forbidden files 33 | entry: found forbidden files; remove them 34 | language: fail 35 | files: "\\.rej$" 36 | - id: en-po-files 37 | name: en.po files cannot exist 38 | entry: found a en.po file 39 | language: fail 40 | files: '[a-zA-Z0-9_]*/i18n/en\.po$' 41 | - repo: https://github.com/sbidoul/whool 42 | rev: v1.2 43 | hooks: 44 | - id: whool-init 45 | - repo: https://github.com/oca/maintainer-tools 46 | rev: bf9ecb9938b6a5deca0ff3d870fbd3f33341fded 47 | hooks: 48 | # update the NOT INSTALLABLE ADDONS section above 49 | - id: oca-update-pre-commit-excluded-addons 50 | - id: oca-fix-manifest-website 51 | args: ["https://github.com/OCA/purchase-reporting"] 52 | - id: oca-gen-addon-readme 53 | args: 54 | - --addons-dir=. 55 | - --branch=18.0 56 | - --org-name=OCA 57 | - --repo-name=purchase-reporting 58 | - --if-source-changed 59 | - --keep-source-digest 60 | - --convert-fragments-to-markdown 61 | - id: oca-gen-external-dependencies 62 | - repo: https://github.com/OCA/odoo-pre-commit-hooks 63 | rev: v0.0.33 64 | hooks: 65 | - id: oca-checks-odoo-module 66 | - id: oca-checks-po 67 | args: 68 | - --disable=po-pretty-format 69 | - repo: local 70 | hooks: 71 | - id: prettier 72 | name: prettier (with plugin-xml) 73 | entry: prettier 74 | args: 75 | - --write 76 | - --list-different 77 | - --ignore-unknown 78 | types: [text] 79 | files: \.(css|htm|html|js|json|jsx|less|md|scss|toml|ts|xml|yaml|yml)$ 80 | language: node 81 | additional_dependencies: 82 | - "prettier@3.3.3" 83 | - "@prettier/plugin-xml@3.4.1" 84 | - repo: local 85 | hooks: 86 | - id: eslint 87 | name: eslint 88 | entry: eslint 89 | args: 90 | - --color 91 | - --fix 92 | verbose: true 93 | types: [javascript] 94 | language: node 95 | additional_dependencies: 96 | - "eslint@9.12.0" 97 | - "eslint-plugin-jsdoc@50.3.1" 98 | - repo: https://github.com/pre-commit/pre-commit-hooks 99 | rev: v4.6.0 100 | hooks: 101 | - id: trailing-whitespace 102 | # exclude autogenerated files 103 | exclude: /README\.rst$|\.pot?$ 104 | - id: end-of-file-fixer 105 | # exclude autogenerated files 106 | exclude: /README\.rst$|\.pot?$ 107 | - id: debug-statements 108 | - id: fix-encoding-pragma 109 | args: ["--remove"] 110 | - id: check-case-conflict 111 | - id: check-docstring-first 112 | - id: check-executables-have-shebangs 113 | - id: check-merge-conflict 114 | # exclude files where underlines are not distinguishable from merge conflicts 115 | exclude: /README\.rst$|^docs/.*\.rst$ 116 | - id: check-symlinks 117 | - id: check-xml 118 | - id: mixed-line-ending 119 | args: ["--fix=lf"] 120 | - repo: https://github.com/astral-sh/ruff-pre-commit 121 | rev: v0.6.8 122 | hooks: 123 | - id: ruff 124 | args: [--fix, --exit-non-zero-on-fix] 125 | - id: ruff-format 126 | - repo: https://github.com/OCA/pylint-odoo 127 | rev: v9.1.3 128 | hooks: 129 | - id: pylint_odoo 130 | name: pylint with optional checks 131 | args: 132 | - --rcfile=.pylintrc 133 | - --exit-zero 134 | verbose: true 135 | - id: pylint_odoo 136 | args: 137 | - --rcfile=.pylintrc-mandatory 138 | -------------------------------------------------------------------------------- /purchase_comment_template/tests/test_purchase_order_report.py: -------------------------------------------------------------------------------- 1 | # Copyright 2018 ForgeFlow S.L. 2 | # Copyright 2024 Simone Rubino - Aion Tech 3 | # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). 4 | 5 | from ast import literal_eval 6 | 7 | from odoo import Command 8 | from odoo.tests import Form 9 | 10 | from odoo.addons.base.tests.common import BaseCommon 11 | from odoo.addons.mail.tests.common import mail_new_test_user 12 | 13 | 14 | class TestPurchaseOrderReport(BaseCommon): 15 | @classmethod 16 | def setUpClass(cls): 17 | super().setUpClass() 18 | cls.company = cls.env.ref("base.main_company") 19 | cls.base_comment_model = cls.env["base.comment.template"] 20 | cls.before_comment = cls._create_comment("purchase.order", "before_lines") 21 | cls.after_comment = cls._create_comment("purchase.order", "after_lines") 22 | cls.partner = cls.env["res.partner"].create({"name": "Partner Test"}) 23 | cls.partner.base_comment_template_ids = [ 24 | Command.link(cls.before_comment.id), 25 | Command.link(cls.after_comment.id), 26 | ] 27 | cls.purchase_order = cls.env.ref("purchase.purchase_order_4") 28 | cls.purchase_order.update( 29 | { 30 | "comment_template_ids": [ 31 | Command.link(cls.before_comment.id), 32 | Command.link(cls.after_comment.id), 33 | ], 34 | } 35 | ) 36 | 37 | @classmethod 38 | def _create_comment(cls, models, position): 39 | return cls.base_comment_model.create( 40 | { 41 | "name": "Comment " + position, 42 | "company_id": cls.company.id, 43 | "position": position, 44 | "text": "Text " + position, 45 | "models": models, 46 | } 47 | ) 48 | 49 | def test_comments_in_purchase_order(self): 50 | res = self.env["ir.actions.report"]._render_qweb_html( 51 | "purchase.report_purchaseorder", self.purchase_order.ids 52 | ) 53 | self.assertRegex(str(res[0]), self.before_comment.text) 54 | self.assertRegex(str(res[0]), self.after_comment.text) 55 | 56 | def test_onchange_partner_id(self): 57 | with Form(self.env["purchase.order"]) as new_purchase: 58 | new_purchase.partner_id = self.partner 59 | self.assertEqual(len(new_purchase.comment_template_ids), 2) 60 | 61 | def test_open_comments_menu(self): 62 | """The Purchase Manager (without Access Rights) can open the comments menu.""" 63 | # Arrange 64 | purchase_manager = mail_new_test_user( 65 | self.env, 66 | login="purchase_manager", 67 | groups="purchase.group_purchase_manager", 68 | ) 69 | comments_menu = self.env.ref( 70 | "purchase_comment_template.menu_base_comment_template_purchase" 71 | ) 72 | comments_action = comments_menu.action 73 | comments_action_domain = literal_eval(comments_action.domain) 74 | comments_model = self.env[comments_action.res_model] 75 | # pre-condition 76 | self.assertNotIn( 77 | self.env.ref("base.group_erp_manager"), purchase_manager.groups_id 78 | ) 79 | 80 | # Act 81 | comments = comments_model.with_user(purchase_manager).search( 82 | comments_action_domain 83 | ) 84 | 85 | # Assert 86 | self.assertTrue(comments) 87 | 88 | def test_comments_menu_multi_model(self): 89 | """Comments for multiple model can be found in the comments menu.""" 90 | # Arrange 91 | comments_menu = self.env.ref( 92 | "purchase_comment_template.menu_base_comment_template_purchase" 93 | ) 94 | comments_action = comments_menu.action 95 | comments_action_domain = literal_eval(comments_action.domain) 96 | comments_model = self.env[comments_action.res_model] 97 | user_ir_model = self.env.ref("base.model_res_users") 98 | user_ir_model.is_comment_template = True 99 | multi_model_comment = self._create_comment( 100 | ",".join( 101 | [ 102 | self.purchase_order._name, 103 | user_ir_model.model, 104 | ] 105 | ), 106 | "before_lines", 107 | ) 108 | # pre-condition 109 | self.assertGreater(len(multi_model_comment.model_ids), 1) 110 | 111 | # Act 112 | comments = comments_model.search(comments_action_domain) 113 | 114 | # Assert 115 | self.assertIn(multi_model_comment, comments) 116 | 117 | def test_create_from_comments_menu(self): 118 | """Comments created from the purchase comments menu 119 | are purchase order comments by default.""" 120 | # Arrange 121 | comments_menu = self.env.ref( 122 | "purchase_comment_template.menu_base_comment_template_purchase" 123 | ) 124 | comments_action = comments_menu.action 125 | comments_action_context = literal_eval(comments_action.context) 126 | comments_model = self.env[comments_action.res_model].with_context( 127 | **comments_action_context 128 | ) 129 | 130 | # Act 131 | comment_form = Form(comments_model) 132 | comment_form.name = "Test purchase comment" 133 | comment_form.text = "Test text" 134 | comment = comment_form.save() 135 | 136 | # Assert 137 | self.assertEqual(comment.model_ids.model, self.purchase_order._name) 138 | -------------------------------------------------------------------------------- /eslint.config.cjs: -------------------------------------------------------------------------------- 1 | jsdoc = require("eslint-plugin-jsdoc"); 2 | 3 | const config = [{ 4 | plugins: { 5 | jsdoc, 6 | }, 7 | 8 | languageOptions: { 9 | globals: { 10 | _: "readonly", 11 | $: "readonly", 12 | fuzzy: "readonly", 13 | jQuery: "readonly", 14 | moment: "readonly", 15 | odoo: "readonly", 16 | openerp: "readonly", 17 | owl: "readonly", 18 | luxon: "readonly", 19 | }, 20 | 21 | ecmaVersion: 2024, 22 | sourceType: "script", 23 | }, 24 | 25 | rules: { 26 | "accessor-pairs": "warn", 27 | "array-callback-return": "warn", 28 | "callback-return": "warn", 29 | "capitalized-comments": ["warn", "always", { 30 | ignoreConsecutiveComments: true, 31 | ignoreInlineComments: true, 32 | }], 33 | complexity: ["warn", 15], 34 | "constructor-super": "warn", 35 | "dot-notation": "warn", 36 | eqeqeq: "warn", 37 | "global-require": "warn", 38 | "handle-callback-err": "warn", 39 | "id-blacklist": "warn", 40 | "id-match": "warn", 41 | "init-declarations": "error", 42 | "max-depth": "warn", 43 | "max-nested-callbacks": "warn", 44 | "max-statements-per-line": "warn", 45 | "no-alert": "warn", 46 | "no-array-constructor": "warn", 47 | "no-caller": "warn", 48 | "no-case-declarations": "warn", 49 | "no-class-assign": "warn", 50 | "no-cond-assign": "error", 51 | "no-const-assign": "error", 52 | "no-constant-condition": "warn", 53 | "no-control-regex": "warn", 54 | "no-debugger": "error", 55 | "no-delete-var": "warn", 56 | "no-div-regex": "warn", 57 | "no-dupe-args": "error", 58 | "no-dupe-class-members": "error", 59 | "no-dupe-keys": "error", 60 | "no-duplicate-case": "error", 61 | "no-duplicate-imports": "error", 62 | "no-else-return": "warn", 63 | "no-empty-character-class": "warn", 64 | "no-empty-function": "error", 65 | "no-empty-pattern": "error", 66 | "no-empty": "warn", 67 | "no-eq-null": "error", 68 | "no-eval": "error", 69 | "no-ex-assign": "error", 70 | "no-extend-native": "warn", 71 | "no-extra-bind": "warn", 72 | "no-extra-boolean-cast": "warn", 73 | "no-extra-label": "warn", 74 | "no-fallthrough": "warn", 75 | "no-func-assign": "error", 76 | "no-global-assign": "error", 77 | "no-implicit-coercion": ["warn", { 78 | allow: ["~"], 79 | }], 80 | "no-implicit-globals": "warn", 81 | "no-implied-eval": "warn", 82 | "no-inline-comments": "warn", 83 | "no-inner-declarations": "warn", 84 | "no-invalid-regexp": "warn", 85 | "no-irregular-whitespace": "warn", 86 | "no-iterator": "warn", 87 | "no-label-var": "warn", 88 | "no-labels": "warn", 89 | "no-lone-blocks": "warn", 90 | "no-lonely-if": "error", 91 | "no-mixed-requires": "error", 92 | "no-multi-str": "warn", 93 | "no-native-reassign": "error", 94 | "no-negated-condition": "warn", 95 | "no-negated-in-lhs": "error", 96 | "no-new-func": "warn", 97 | "no-new-object": "warn", 98 | "no-new-require": "warn", 99 | "no-new-symbol": "warn", 100 | "no-new-wrappers": "warn", 101 | "no-new": "warn", 102 | "no-obj-calls": "warn", 103 | "no-octal-escape": "warn", 104 | "no-octal": "warn", 105 | "no-param-reassign": "warn", 106 | "no-path-concat": "warn", 107 | "no-process-env": "warn", 108 | "no-process-exit": "warn", 109 | "no-proto": "warn", 110 | "no-prototype-builtins": "warn", 111 | "no-redeclare": "warn", 112 | "no-regex-spaces": "warn", 113 | "no-restricted-globals": "warn", 114 | "no-restricted-imports": "warn", 115 | "no-restricted-modules": "warn", 116 | "no-restricted-syntax": "warn", 117 | "no-return-assign": "error", 118 | "no-script-url": "warn", 119 | "no-self-assign": "warn", 120 | "no-self-compare": "warn", 121 | "no-sequences": "warn", 122 | "no-shadow-restricted-names": "warn", 123 | "no-shadow": "warn", 124 | "no-sparse-arrays": "warn", 125 | "no-sync": "warn", 126 | "no-this-before-super": "warn", 127 | "no-throw-literal": "warn", 128 | "no-undef-init": "warn", 129 | "no-undef": "error", 130 | "no-unmodified-loop-condition": "warn", 131 | "no-unneeded-ternary": "error", 132 | "no-unreachable": "error", 133 | "no-unsafe-finally": "error", 134 | "no-unused-expressions": "error", 135 | "no-unused-labels": "error", 136 | "no-unused-vars": "error", 137 | "no-use-before-define": "error", 138 | "no-useless-call": "warn", 139 | "no-useless-computed-key": "warn", 140 | "no-useless-concat": "warn", 141 | "no-useless-constructor": "warn", 142 | "no-useless-escape": "warn", 143 | "no-useless-rename": "warn", 144 | "no-void": "warn", 145 | "no-with": "warn", 146 | "operator-assignment": ["error", "always"], 147 | "prefer-const": "warn", 148 | radix: "warn", 149 | "require-yield": "warn", 150 | "sort-imports": "warn", 151 | "spaced-comment": ["error", "always"], 152 | strict: ["error", "function"], 153 | "use-isnan": "error", 154 | 155 | "jsdoc/check-tag-names": "warn", 156 | "jsdoc/check-types": "warn", 157 | "jsdoc/require-param-description": "off", 158 | "jsdoc/require-return": "off", 159 | "jsdoc/require-return-description": "off", 160 | "jsdoc/require-return-type": "off", 161 | 162 | "valid-typeof": "warn", 163 | yoda: "warn", 164 | }, 165 | 166 | settings: { 167 | jsdoc: { 168 | tagNamePreference: { 169 | arg: "param", 170 | argument: "param", 171 | augments: "extends", 172 | constructor: "class", 173 | exception: "throws", 174 | func: "function", 175 | method: "function", 176 | prop: "property", 177 | return: "returns", 178 | virtual: "abstract", 179 | yield: "yields", 180 | }, 181 | preferredTypes: { 182 | array: "Array", 183 | bool: "Boolean", 184 | boolean: "Boolean", 185 | number: "Number", 186 | object: "Object", 187 | str: "String", 188 | string: "String", 189 | }, 190 | }, 191 | }, 192 | 193 | }, { 194 | files: ["**/*.esm.js"], 195 | 196 | languageOptions: { 197 | ecmaVersion: 2024, 198 | sourceType: "module", 199 | }, 200 | }]; 201 | 202 | module.exports = config 203 | -------------------------------------------------------------------------------- /purchase_report_date_format/static/description/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | README.rst 7 | 361 | 362 | 363 |
364 | 365 | 366 | 367 | Odoo Community Association 368 | 369 |
370 |

Purchase Report Date Format

371 | 377 |

Beta License: AGPL-3 OCA/purchase-reporting Translate me on Weblate Try me on Runboat

378 |

Shows following datetime fields of purchase reports in date format 379 | instead of datetime, since presenting dates up to seconds is too much or 380 | unnecessary in many purchase transactions.

381 |

Request for Quotation print:

382 |
    383 |
  • Expected Date
  • 384 |
385 |

Purchase Order print:

386 |
    387 |
  • Order Date
  • 388 |
  • Order Deadline
  • 389 |
  • Requested Date
  • 390 |
391 |

Table of contents

392 |
393 | 402 |
403 |
404 |

Bug Tracker

405 |

Bugs are tracked on GitHub Issues. 406 | In case of trouble, please check there if your issue has already been reported. 407 | If you spotted it first, help us to smash it by providing a detailed and welcomed 408 | feedback.

409 |

Do not contact contributors directly about support or help with technical issues.

410 |
411 |
412 |

Credits

413 |
414 |

Authors

415 |
    416 |
  • Quartile Limited
  • 417 |
418 |
419 |
420 |

Contributors

421 | 427 |
428 |
429 |

Maintainers

430 |

This module is maintained by the OCA.

431 | 432 | Odoo Community Association 433 | 434 |

OCA, or the Odoo Community Association, is a nonprofit organization whose 435 | mission is to support the collaborative development of Odoo features and 436 | promote its widespread use.

437 |

This module is part of the OCA/purchase-reporting project on GitHub.

438 |

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

439 |
440 |
441 |
442 |
443 | 444 | 445 | -------------------------------------------------------------------------------- /purchase_report_shipping_address/static/description/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | README.rst 7 | 361 | 362 | 363 |
364 | 365 | 366 | 367 | Odoo Community Association 368 | 369 |
370 |

Purchase Report Shipping Address

371 | 377 |

Beta License: AGPL-3 OCA/purchase-reporting Translate me on Weblate Try me on Runboat

378 |

This module adds the translatable Warehouse Address Details field in 379 | warehouse to show in purchase reports.

380 |

Purchase documents are printed in supplier’s language, however Odoo by 381 | default does not come with the ability to present the warehouse address 382 | in different languages. This module intends to take care of this 383 | shortcoming.

384 |

Table of contents

385 |
386 | 396 |
397 |
398 |

Configuration

399 |

#. Go to Inventory > Configuration > Warehouses and open a warehouse 400 | record for which the address presentation should be adjusted for 401 | purchase reports. #. Update Warehouse Address Details field.

402 |
403 |
404 |

Bug Tracker

405 |

Bugs are tracked on GitHub Issues. 406 | In case of trouble, please check there if your issue has already been reported. 407 | If you spotted it first, help us to smash it by providing a detailed and welcomed 408 | feedback.

409 |

Do not contact contributors directly about support or help with technical issues.

410 |
411 |
412 |

Credits

413 |
414 |

Authors

415 |
    416 |
  • Quartile Limited
  • 417 |
418 |
419 |
420 |

Contributors

421 | 427 |
428 |
429 |

Maintainers

430 |

This module is maintained by the OCA.

431 | 432 | Odoo Community Association 433 | 434 |

OCA, or the Odoo Community Association, is a nonprofit organization whose 435 | mission is to support the collaborative development of Odoo features and 436 | promote its widespread use.

437 |

This module is part of the OCA/purchase-reporting project on GitHub.

438 |

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

439 |
440 |
441 |
442 |
443 | 444 | 445 | -------------------------------------------------------------------------------- /purchase_comment_template/static/description/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | README.rst 7 | 361 | 362 | 363 |
364 | 365 | 366 | 367 | Odoo Community Association 368 | 369 |
370 |

Purchase Comments

371 | 377 |

Beta License: AGPL-3 OCA/purchase-reporting Translate me on Weblate Try me on Runboat

378 |

Adds comments on

379 |
    380 |
  1. Purchases orders:

    381 |

    The comments can be edited directly on the purchases orders or loaded 382 | from templates.

    383 |

    Two positions are available for the comments:

    384 |
      385 |
    • Above purchase order lines
    • 386 |
    • Below purchase order lines
    • 387 |
    388 |
  2. 389 |
390 |

Table of contents

391 |
392 | 402 |
403 |
404 |

Installation

405 |

To install this module, you need to have the module Base Comment 406 | Template.

407 |
408 |
409 |

Bug Tracker

410 |

Bugs are tracked on GitHub Issues. 411 | In case of trouble, please check there if your issue has already been reported. 412 | If you spotted it first, help us to smash it by providing a detailed and welcomed 413 | feedback.

414 |

Do not contact contributors directly about support or help with technical issues.

415 |
416 |
417 |

Credits

418 |
419 |

Authors

420 |
    421 |
  • ForgeFlow
  • 422 |
423 |
424 |
425 |

Contributors

426 | 434 |
435 |
436 |

Maintainers

437 |

This module is maintained by the OCA.

438 | 439 | Odoo Community Association 440 | 441 |

OCA, or the Odoo Community Association, is a nonprofit organization whose 442 | mission is to support the collaborative development of Odoo features and 443 | promote its widespread use.

444 |

This module is part of the OCA/purchase-reporting project on GitHub.

445 |

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

446 |
447 |
448 |
449 |
450 | 451 | 452 | -------------------------------------------------------------------------------- /purchase_packaging_report/static/description/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | README.rst 7 | 361 | 362 | 363 |
364 | 365 | 366 | 367 | Odoo Community Association 368 | 369 |
370 |

Purchase Packaging Report

371 | 377 |

Alpha License: LGPL-3 OCA/purchase-reporting Translate me on Weblate Try me on Runboat

378 |

This module displays packaging data (quantity and type) in:

379 |
    380 |
  • Purchase order printed reports.
  • 381 |
  • Purchase BI reports.
  • 382 |
383 |
384 |

Important

385 |

This is an alpha version, the data model and design can change at any time without warning. 386 | Only for development or testing purpose, do not use in production. 387 | More details on development status

388 |
389 |

Table of contents

390 |
391 | 402 |
403 |
404 |

Configuration

405 |

To configure this module, you need to:

406 |

#. Go to Purchase > Configuration > Settings. #. Enable Product 407 | Packagings. #. Save.

408 |

Now, make sure the products you use for testing this module have some 409 | packaging configured.

410 |
411 |
412 |

Usage

413 |

To print purchase order packaging data:

414 |

#. Go to Purchase > Orders > Quotations and pick or create one. #. Add 415 | some product(s) with packaging information (type and quantity). #. Print 416 | it.

417 |

To query purchase packaging BI data:

418 |

#. Go to Purchase > Reporting > Purchase. #. Use the new options at 419 | will:

420 |
    421 |
  • Measures > Packaging Qty
  • 422 |
  • Group By > Packaging.
  • 423 |
424 |
425 |
426 |

Bug Tracker

427 |

Bugs are tracked on GitHub Issues. 428 | In case of trouble, please check there if your issue has already been reported. 429 | If you spotted it first, help us to smash it by providing a detailed and welcomed 430 | feedback.

431 |

Do not contact contributors directly about support or help with technical issues.

432 |
433 |
434 |

Credits

435 |
436 |

Authors

437 |
    438 |
  • Moduon
  • 439 |
440 |
441 |
442 |

Contributors

443 | 450 |
451 |
452 |

Maintainers

453 |

This module is maintained by the OCA.

454 | 455 | Odoo Community Association 456 | 457 |

OCA, or the Odoo Community Association, is a nonprofit organization whose 458 | mission is to support the collaborative development of Odoo features and 459 | promote its widespread use.

460 |

Current maintainer:

461 |

Shide

462 |

This module is part of the OCA/purchase-reporting project on GitHub.

463 |

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

464 |
465 |
466 |
467 |
468 | 469 | 470 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU AFFERO GENERAL PUBLIC LICENSE 2 | Version 3, 19 November 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU Affero General Public License is a free, copyleft license for 11 | software and other kinds of works, specifically designed to ensure 12 | cooperation with the community in the case of network server software. 13 | 14 | The licenses for most software and other practical works are designed 15 | to take away your freedom to share and change the works. By contrast, 16 | our General Public Licenses are intended to guarantee your freedom to 17 | share and change all versions of a program--to make sure it remains free 18 | software for all its users. 19 | 20 | When we speak of free software, we are referring to freedom, not 21 | price. Our General Public Licenses are designed to make sure that you 22 | have the freedom to distribute copies of free software (and charge for 23 | them if you wish), that you receive source code or can get it if you 24 | want it, that you can change the software or use pieces of it in new 25 | free programs, and that you know you can do these things. 26 | 27 | Developers that use our General Public Licenses protect your rights 28 | with two steps: (1) assert copyright on the software, and (2) offer 29 | you this License which gives you legal permission to copy, distribute 30 | and/or modify the software. 31 | 32 | A secondary benefit of defending all users' freedom is that 33 | improvements made in alternate versions of the program, if they 34 | receive widespread use, become available for other developers to 35 | incorporate. Many developers of free software are heartened and 36 | encouraged by the resulting cooperation. However, in the case of 37 | software used on network servers, this result may fail to come about. 38 | The GNU General Public License permits making a modified version and 39 | letting the public access it on a server without ever releasing its 40 | source code to the public. 41 | 42 | The GNU Affero General Public License is designed specifically to 43 | ensure that, in such cases, the modified source code becomes available 44 | to the community. It requires the operator of a network server to 45 | provide the source code of the modified version running there to the 46 | users of that server. Therefore, public use of a modified version, on 47 | a publicly accessible server, gives the public access to the source 48 | code of the modified version. 49 | 50 | An older license, called the Affero General Public License and 51 | published by Affero, was designed to accomplish similar goals. This is 52 | a different license, not a version of the Affero GPL, but Affero has 53 | released a new version of the Affero GPL which permits relicensing under 54 | this license. 55 | 56 | The precise terms and conditions for copying, distribution and 57 | modification follow. 58 | 59 | TERMS AND CONDITIONS 60 | 61 | 0. Definitions. 62 | 63 | "This License" refers to version 3 of the GNU Affero General Public License. 64 | 65 | "Copyright" also means copyright-like laws that apply to other kinds of 66 | works, such as semiconductor masks. 67 | 68 | "The Program" refers to any copyrightable work licensed under this 69 | License. Each licensee is addressed as "you". "Licensees" and 70 | "recipients" may be individuals or organizations. 71 | 72 | To "modify" a work means to copy from or adapt all or part of the work 73 | in a fashion requiring copyright permission, other than the making of an 74 | exact copy. The resulting work is called a "modified version" of the 75 | earlier work or a work "based on" the earlier work. 76 | 77 | A "covered work" means either the unmodified Program or a work based 78 | on the Program. 79 | 80 | To "propagate" a work means to do anything with it that, without 81 | permission, would make you directly or secondarily liable for 82 | infringement under applicable copyright law, except executing it on a 83 | computer or modifying a private copy. Propagation includes copying, 84 | distribution (with or without modification), making available to the 85 | public, and in some countries other activities as well. 86 | 87 | To "convey" a work means any kind of propagation that enables other 88 | parties to make or receive copies. Mere interaction with a user through 89 | a computer network, with no transfer of a copy, is not conveying. 90 | 91 | An interactive user interface displays "Appropriate Legal Notices" 92 | to the extent that it includes a convenient and prominently visible 93 | feature that (1) displays an appropriate copyright notice, and (2) 94 | tells the user that there is no warranty for the work (except to the 95 | extent that warranties are provided), that licensees may convey the 96 | work under this License, and how to view a copy of this License. If 97 | the interface presents a list of user commands or options, such as a 98 | menu, a prominent item in the list meets this criterion. 99 | 100 | 1. Source Code. 101 | 102 | The "source code" for a work means the preferred form of the work 103 | for making modifications to it. "Object code" means any non-source 104 | form of a work. 105 | 106 | A "Standard Interface" means an interface that either is an official 107 | standard defined by a recognized standards body, or, in the case of 108 | interfaces specified for a particular programming language, one that 109 | is widely used among developers working in that language. 110 | 111 | The "System Libraries" of an executable work include anything, other 112 | than the work as a whole, that (a) is included in the normal form of 113 | packaging a Major Component, but which is not part of that Major 114 | Component, and (b) serves only to enable use of the work with that 115 | Major Component, or to implement a Standard Interface for which an 116 | implementation is available to the public in source code form. A 117 | "Major Component", in this context, means a major essential component 118 | (kernel, window system, and so on) of the specific operating system 119 | (if any) on which the executable work runs, or a compiler used to 120 | produce the work, or an object code interpreter used to run it. 121 | 122 | The "Corresponding Source" for a work in object code form means all 123 | the source code needed to generate, install, and (for an executable 124 | work) run the object code and to modify the work, including scripts to 125 | control those activities. However, it does not include the work's 126 | System Libraries, or general-purpose tools or generally available free 127 | programs which are used unmodified in performing those activities but 128 | which are not part of the work. For example, Corresponding Source 129 | includes interface definition files associated with source files for 130 | the work, and the source code for shared libraries and dynamically 131 | linked subprograms that the work is specifically designed to require, 132 | such as by intimate data communication or control flow between those 133 | subprograms and other parts of the work. 134 | 135 | The Corresponding Source need not include anything that users 136 | can regenerate automatically from other parts of the Corresponding 137 | Source. 138 | 139 | The Corresponding Source for a work in source code form is that 140 | same work. 141 | 142 | 2. Basic Permissions. 143 | 144 | All rights granted under this License are granted for the term of 145 | copyright on the Program, and are irrevocable provided the stated 146 | conditions are met. This License explicitly affirms your unlimited 147 | permission to run the unmodified Program. The output from running a 148 | covered work is covered by this License only if the output, given its 149 | content, constitutes a covered work. This License acknowledges your 150 | rights of fair use or other equivalent, as provided by copyright law. 151 | 152 | You may make, run and propagate covered works that you do not 153 | convey, without conditions so long as your license otherwise remains 154 | in force. You may convey covered works to others for the sole purpose 155 | of having them make modifications exclusively for you, or provide you 156 | with facilities for running those works, provided that you comply with 157 | the terms of this License in conveying all material for which you do 158 | not control copyright. Those thus making or running the covered works 159 | for you must do so exclusively on your behalf, under your direction 160 | and control, on terms that prohibit them from making any copies of 161 | your copyrighted material outside their relationship with you. 162 | 163 | Conveying under any other circumstances is permitted solely under 164 | the conditions stated below. Sublicensing is not allowed; section 10 165 | makes it unnecessary. 166 | 167 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 168 | 169 | No covered work shall be deemed part of an effective technological 170 | measure under any applicable law fulfilling obligations under article 171 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 172 | similar laws prohibiting or restricting circumvention of such 173 | measures. 174 | 175 | When you convey a covered work, you waive any legal power to forbid 176 | circumvention of technological measures to the extent such circumvention 177 | is effected by exercising rights under this License with respect to 178 | the covered work, and you disclaim any intention to limit operation or 179 | modification of the work as a means of enforcing, against the work's 180 | users, your or third parties' legal rights to forbid circumvention of 181 | technological measures. 182 | 183 | 4. Conveying Verbatim Copies. 184 | 185 | You may convey verbatim copies of the Program's source code as you 186 | receive it, in any medium, provided that you conspicuously and 187 | appropriately publish on each copy an appropriate copyright notice; 188 | keep intact all notices stating that this License and any 189 | non-permissive terms added in accord with section 7 apply to the code; 190 | keep intact all notices of the absence of any warranty; and give all 191 | recipients a copy of this License along with the Program. 192 | 193 | You may charge any price or no price for each copy that you convey, 194 | and you may offer support or warranty protection for a fee. 195 | 196 | 5. Conveying Modified Source Versions. 197 | 198 | You may convey a work based on the Program, or the modifications to 199 | produce it from the Program, in the form of source code under the 200 | terms of section 4, provided that you also meet all of these conditions: 201 | 202 | a) The work must carry prominent notices stating that you modified 203 | it, and giving a relevant date. 204 | 205 | b) The work must carry prominent notices stating that it is 206 | released under this License and any conditions added under section 207 | 7. This requirement modifies the requirement in section 4 to 208 | "keep intact all notices". 209 | 210 | c) You must license the entire work, as a whole, under this 211 | License to anyone who comes into possession of a copy. This 212 | License will therefore apply, along with any applicable section 7 213 | additional terms, to the whole of the work, and all its parts, 214 | regardless of how they are packaged. This License gives no 215 | permission to license the work in any other way, but it does not 216 | invalidate such permission if you have separately received it. 217 | 218 | d) If the work has interactive user interfaces, each must display 219 | Appropriate Legal Notices; however, if the Program has interactive 220 | interfaces that do not display Appropriate Legal Notices, your 221 | work need not make them do so. 222 | 223 | A compilation of a covered work with other separate and independent 224 | works, which are not by their nature extensions of the covered work, 225 | and which are not combined with it such as to form a larger program, 226 | in or on a volume of a storage or distribution medium, is called an 227 | "aggregate" if the compilation and its resulting copyright are not 228 | used to limit the access or legal rights of the compilation's users 229 | beyond what the individual works permit. Inclusion of a covered work 230 | in an aggregate does not cause this License to apply to the other 231 | parts of the aggregate. 232 | 233 | 6. Conveying Non-Source Forms. 234 | 235 | You may convey a covered work in object code form under the terms 236 | of sections 4 and 5, provided that you also convey the 237 | machine-readable Corresponding Source under the terms of this License, 238 | in one of these ways: 239 | 240 | a) Convey the object code in, or embodied in, a physical product 241 | (including a physical distribution medium), accompanied by the 242 | Corresponding Source fixed on a durable physical medium 243 | customarily used for software interchange. 244 | 245 | b) Convey the object code in, or embodied in, a physical product 246 | (including a physical distribution medium), accompanied by a 247 | written offer, valid for at least three years and valid for as 248 | long as you offer spare parts or customer support for that product 249 | model, to give anyone who possesses the object code either (1) a 250 | copy of the Corresponding Source for all the software in the 251 | product that is covered by this License, on a durable physical 252 | medium customarily used for software interchange, for a price no 253 | more than your reasonable cost of physically performing this 254 | conveying of source, or (2) access to copy the 255 | Corresponding Source from a network server at no charge. 256 | 257 | c) Convey individual copies of the object code with a copy of the 258 | written offer to provide the Corresponding Source. This 259 | alternative is allowed only occasionally and noncommercially, and 260 | only if you received the object code with such an offer, in accord 261 | with subsection 6b. 262 | 263 | d) Convey the object code by offering access from a designated 264 | place (gratis or for a charge), and offer equivalent access to the 265 | Corresponding Source in the same way through the same place at no 266 | further charge. You need not require recipients to copy the 267 | Corresponding Source along with the object code. If the place to 268 | copy the object code is a network server, the Corresponding Source 269 | may be on a different server (operated by you or a third party) 270 | that supports equivalent copying facilities, provided you maintain 271 | clear directions next to the object code saying where to find the 272 | Corresponding Source. Regardless of what server hosts the 273 | Corresponding Source, you remain obligated to ensure that it is 274 | available for as long as needed to satisfy these requirements. 275 | 276 | e) Convey the object code using peer-to-peer transmission, provided 277 | you inform other peers where the object code and Corresponding 278 | Source of the work are being offered to the general public at no 279 | charge under subsection 6d. 280 | 281 | A separable portion of the object code, whose source code is excluded 282 | from the Corresponding Source as a System Library, need not be 283 | included in conveying the object code work. 284 | 285 | A "User Product" is either (1) a "consumer product", which means any 286 | tangible personal property which is normally used for personal, family, 287 | or household purposes, or (2) anything designed or sold for incorporation 288 | into a dwelling. In determining whether a product is a consumer product, 289 | doubtful cases shall be resolved in favor of coverage. For a particular 290 | product received by a particular user, "normally used" refers to a 291 | typical or common use of that class of product, regardless of the status 292 | of the particular user or of the way in which the particular user 293 | actually uses, or expects or is expected to use, the product. A product 294 | is a consumer product regardless of whether the product has substantial 295 | commercial, industrial or non-consumer uses, unless such uses represent 296 | the only significant mode of use of the product. 297 | 298 | "Installation Information" for a User Product means any methods, 299 | procedures, authorization keys, or other information required to install 300 | and execute modified versions of a covered work in that User Product from 301 | a modified version of its Corresponding Source. The information must 302 | suffice to ensure that the continued functioning of the modified object 303 | code is in no case prevented or interfered with solely because 304 | modification has been made. 305 | 306 | If you convey an object code work under this section in, or with, or 307 | specifically for use in, a User Product, and the conveying occurs as 308 | part of a transaction in which the right of possession and use of the 309 | User Product is transferred to the recipient in perpetuity or for a 310 | fixed term (regardless of how the transaction is characterized), the 311 | Corresponding Source conveyed under this section must be accompanied 312 | by the Installation Information. But this requirement does not apply 313 | if neither you nor any third party retains the ability to install 314 | modified object code on the User Product (for example, the work has 315 | been installed in ROM). 316 | 317 | The requirement to provide Installation Information does not include a 318 | requirement to continue to provide support service, warranty, or updates 319 | for a work that has been modified or installed by the recipient, or for 320 | the User Product in which it has been modified or installed. Access to a 321 | network may be denied when the modification itself materially and 322 | adversely affects the operation of the network or violates the rules and 323 | protocols for communication across the network. 324 | 325 | Corresponding Source conveyed, and Installation Information provided, 326 | in accord with this section must be in a format that is publicly 327 | documented (and with an implementation available to the public in 328 | source code form), and must require no special password or key for 329 | unpacking, reading or copying. 330 | 331 | 7. Additional Terms. 332 | 333 | "Additional permissions" are terms that supplement the terms of this 334 | License by making exceptions from one or more of its conditions. 335 | Additional permissions that are applicable to the entire Program shall 336 | be treated as though they were included in this License, to the extent 337 | that they are valid under applicable law. If additional permissions 338 | apply only to part of the Program, that part may be used separately 339 | under those permissions, but the entire Program remains governed by 340 | this License without regard to the additional permissions. 341 | 342 | When you convey a copy of a covered work, you may at your option 343 | remove any additional permissions from that copy, or from any part of 344 | it. (Additional permissions may be written to require their own 345 | removal in certain cases when you modify the work.) You may place 346 | additional permissions on material, added by you to a covered work, 347 | for which you have or can give appropriate copyright permission. 348 | 349 | Notwithstanding any other provision of this License, for material you 350 | add to a covered work, you may (if authorized by the copyright holders of 351 | that material) supplement the terms of this License with terms: 352 | 353 | a) Disclaiming warranty or limiting liability differently from the 354 | terms of sections 15 and 16 of this License; or 355 | 356 | b) Requiring preservation of specified reasonable legal notices or 357 | author attributions in that material or in the Appropriate Legal 358 | Notices displayed by works containing it; or 359 | 360 | c) Prohibiting misrepresentation of the origin of that material, or 361 | requiring that modified versions of such material be marked in 362 | reasonable ways as different from the original version; or 363 | 364 | d) Limiting the use for publicity purposes of names of licensors or 365 | authors of the material; or 366 | 367 | e) Declining to grant rights under trademark law for use of some 368 | trade names, trademarks, or service marks; or 369 | 370 | f) Requiring indemnification of licensors and authors of that 371 | material by anyone who conveys the material (or modified versions of 372 | it) with contractual assumptions of liability to the recipient, for 373 | any liability that these contractual assumptions directly impose on 374 | those licensors and authors. 375 | 376 | All other non-permissive additional terms are considered "further 377 | restrictions" within the meaning of section 10. If the Program as you 378 | received it, or any part of it, contains a notice stating that it is 379 | governed by this License along with a term that is a further 380 | restriction, you may remove that term. If a license document contains 381 | a further restriction but permits relicensing or conveying under this 382 | License, you may add to a covered work material governed by the terms 383 | of that license document, provided that the further restriction does 384 | not survive such relicensing or conveying. 385 | 386 | If you add terms to a covered work in accord with this section, you 387 | must place, in the relevant source files, a statement of the 388 | additional terms that apply to those files, or a notice indicating 389 | where to find the applicable terms. 390 | 391 | Additional terms, permissive or non-permissive, may be stated in the 392 | form of a separately written license, or stated as exceptions; 393 | the above requirements apply either way. 394 | 395 | 8. Termination. 396 | 397 | You may not propagate or modify a covered work except as expressly 398 | provided under this License. Any attempt otherwise to propagate or 399 | modify it is void, and will automatically terminate your rights under 400 | this License (including any patent licenses granted under the third 401 | paragraph of section 11). 402 | 403 | However, if you cease all violation of this License, then your 404 | license from a particular copyright holder is reinstated (a) 405 | provisionally, unless and until the copyright holder explicitly and 406 | finally terminates your license, and (b) permanently, if the copyright 407 | holder fails to notify you of the violation by some reasonable means 408 | prior to 60 days after the cessation. 409 | 410 | Moreover, your license from a particular copyright holder is 411 | reinstated permanently if the copyright holder notifies you of the 412 | violation by some reasonable means, this is the first time you have 413 | received notice of violation of this License (for any work) from that 414 | copyright holder, and you cure the violation prior to 30 days after 415 | your receipt of the notice. 416 | 417 | Termination of your rights under this section does not terminate the 418 | licenses of parties who have received copies or rights from you under 419 | this License. If your rights have been terminated and not permanently 420 | reinstated, you do not qualify to receive new licenses for the same 421 | material under section 10. 422 | 423 | 9. Acceptance Not Required for Having Copies. 424 | 425 | You are not required to accept this License in order to receive or 426 | run a copy of the Program. Ancillary propagation of a covered work 427 | occurring solely as a consequence of using peer-to-peer transmission 428 | to receive a copy likewise does not require acceptance. However, 429 | nothing other than this License grants you permission to propagate or 430 | modify any covered work. These actions infringe copyright if you do 431 | not accept this License. Therefore, by modifying or propagating a 432 | covered work, you indicate your acceptance of this License to do so. 433 | 434 | 10. Automatic Licensing of Downstream Recipients. 435 | 436 | Each time you convey a covered work, the recipient automatically 437 | receives a license from the original licensors, to run, modify and 438 | propagate that work, subject to this License. You are not responsible 439 | for enforcing compliance by third parties with this License. 440 | 441 | An "entity transaction" is a transaction transferring control of an 442 | organization, or substantially all assets of one, or subdividing an 443 | organization, or merging organizations. If propagation of a covered 444 | work results from an entity transaction, each party to that 445 | transaction who receives a copy of the work also receives whatever 446 | licenses to the work the party's predecessor in interest had or could 447 | give under the previous paragraph, plus a right to possession of the 448 | Corresponding Source of the work from the predecessor in interest, if 449 | the predecessor has it or can get it with reasonable efforts. 450 | 451 | You may not impose any further restrictions on the exercise of the 452 | rights granted or affirmed under this License. For example, you may 453 | not impose a license fee, royalty, or other charge for exercise of 454 | rights granted under this License, and you may not initiate litigation 455 | (including a cross-claim or counterclaim in a lawsuit) alleging that 456 | any patent claim is infringed by making, using, selling, offering for 457 | sale, or importing the Program or any portion of it. 458 | 459 | 11. Patents. 460 | 461 | A "contributor" is a copyright holder who authorizes use under this 462 | License of the Program or a work on which the Program is based. The 463 | work thus licensed is called the contributor's "contributor version". 464 | 465 | A contributor's "essential patent claims" are all patent claims 466 | owned or controlled by the contributor, whether already acquired or 467 | hereafter acquired, that would be infringed by some manner, permitted 468 | by this License, of making, using, or selling its contributor version, 469 | but do not include claims that would be infringed only as a 470 | consequence of further modification of the contributor version. For 471 | purposes of this definition, "control" includes the right to grant 472 | patent sublicenses in a manner consistent with the requirements of 473 | this License. 474 | 475 | Each contributor grants you a non-exclusive, worldwide, royalty-free 476 | patent license under the contributor's essential patent claims, to 477 | make, use, sell, offer for sale, import and otherwise run, modify and 478 | propagate the contents of its contributor version. 479 | 480 | In the following three paragraphs, a "patent license" is any express 481 | agreement or commitment, however denominated, not to enforce a patent 482 | (such as an express permission to practice a patent or covenant not to 483 | sue for patent infringement). To "grant" such a patent license to a 484 | party means to make such an agreement or commitment not to enforce a 485 | patent against the party. 486 | 487 | If you convey a covered work, knowingly relying on a patent license, 488 | and the Corresponding Source of the work is not available for anyone 489 | to copy, free of charge and under the terms of this License, through a 490 | publicly available network server or other readily accessible means, 491 | then you must either (1) cause the Corresponding Source to be so 492 | available, or (2) arrange to deprive yourself of the benefit of the 493 | patent license for this particular work, or (3) arrange, in a manner 494 | consistent with the requirements of this License, to extend the patent 495 | license to downstream recipients. "Knowingly relying" means you have 496 | actual knowledge that, but for the patent license, your conveying the 497 | covered work in a country, or your recipient's use of the covered work 498 | in a country, would infringe one or more identifiable patents in that 499 | country that you have reason to believe are valid. 500 | 501 | If, pursuant to or in connection with a single transaction or 502 | arrangement, you convey, or propagate by procuring conveyance of, a 503 | covered work, and grant a patent license to some of the parties 504 | receiving the covered work authorizing them to use, propagate, modify 505 | or convey a specific copy of the covered work, then the patent license 506 | you grant is automatically extended to all recipients of the covered 507 | work and works based on it. 508 | 509 | A patent license is "discriminatory" if it does not include within 510 | the scope of its coverage, prohibits the exercise of, or is 511 | conditioned on the non-exercise of one or more of the rights that are 512 | specifically granted under this License. You may not convey a covered 513 | work if you are a party to an arrangement with a third party that is 514 | in the business of distributing software, under which you make payment 515 | to the third party based on the extent of your activity of conveying 516 | the work, and under which the third party grants, to any of the 517 | parties who would receive the covered work from you, a discriminatory 518 | patent license (a) in connection with copies of the covered work 519 | conveyed by you (or copies made from those copies), or (b) primarily 520 | for and in connection with specific products or compilations that 521 | contain the covered work, unless you entered into that arrangement, 522 | or that patent license was granted, prior to 28 March 2007. 523 | 524 | Nothing in this License shall be construed as excluding or limiting 525 | any implied license or other defenses to infringement that may 526 | otherwise be available to you under applicable patent law. 527 | 528 | 12. No Surrender of Others' Freedom. 529 | 530 | If conditions are imposed on you (whether by court order, agreement or 531 | otherwise) that contradict the conditions of this License, they do not 532 | excuse you from the conditions of this License. If you cannot convey a 533 | covered work so as to satisfy simultaneously your obligations under this 534 | License and any other pertinent obligations, then as a consequence you may 535 | not convey it at all. For example, if you agree to terms that obligate you 536 | to collect a royalty for further conveying from those to whom you convey 537 | the Program, the only way you could satisfy both those terms and this 538 | License would be to refrain entirely from conveying the Program. 539 | 540 | 13. Remote Network Interaction; Use with the GNU General Public License. 541 | 542 | Notwithstanding any other provision of this License, if you modify the 543 | Program, your modified version must prominently offer all users 544 | interacting with it remotely through a computer network (if your version 545 | supports such interaction) an opportunity to receive the Corresponding 546 | Source of your version by providing access to the Corresponding Source 547 | from a network server at no charge, through some standard or customary 548 | means of facilitating copying of software. This Corresponding Source 549 | shall include the Corresponding Source for any work covered by version 3 550 | of the GNU General Public License that is incorporated pursuant to the 551 | following paragraph. 552 | 553 | Notwithstanding any other provision of this License, you have 554 | permission to link or combine any covered work with a work licensed 555 | under version 3 of the GNU General Public License into a single 556 | combined work, and to convey the resulting work. The terms of this 557 | License will continue to apply to the part which is the covered work, 558 | but the work with which it is combined will remain governed by version 559 | 3 of the GNU General Public License. 560 | 561 | 14. Revised Versions of this License. 562 | 563 | The Free Software Foundation may publish revised and/or new versions of 564 | the GNU Affero General Public License from time to time. Such new versions 565 | will be similar in spirit to the present version, but may differ in detail to 566 | address new problems or concerns. 567 | 568 | Each version is given a distinguishing version number. If the 569 | Program specifies that a certain numbered version of the GNU Affero General 570 | Public License "or any later version" applies to it, you have the 571 | option of following the terms and conditions either of that numbered 572 | version or of any later version published by the Free Software 573 | Foundation. If the Program does not specify a version number of the 574 | GNU Affero General Public License, you may choose any version ever published 575 | by the Free Software Foundation. 576 | 577 | If the Program specifies that a proxy can decide which future 578 | versions of the GNU Affero General Public License can be used, that proxy's 579 | public statement of acceptance of a version permanently authorizes you 580 | to choose that version for the Program. 581 | 582 | Later license versions may give you additional or different 583 | permissions. However, no additional obligations are imposed on any 584 | author or copyright holder as a result of your choosing to follow a 585 | later version. 586 | 587 | 15. Disclaimer of Warranty. 588 | 589 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 590 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 591 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 592 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 593 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 594 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 595 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 596 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 597 | 598 | 16. Limitation of Liability. 599 | 600 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 601 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 602 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 603 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 604 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 605 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 606 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 607 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 608 | SUCH DAMAGES. 609 | 610 | 17. Interpretation of Sections 15 and 16. 611 | 612 | If the disclaimer of warranty and limitation of liability provided 613 | above cannot be given local legal effect according to their terms, 614 | reviewing courts shall apply local law that most closely approximates 615 | an absolute waiver of all civil liability in connection with the 616 | Program, unless a warranty or assumption of liability accompanies a 617 | copy of the Program in return for a fee. 618 | 619 | END OF TERMS AND CONDITIONS 620 | 621 | How to Apply These Terms to Your New Programs 622 | 623 | If you develop a new program, and you want it to be of the greatest 624 | possible use to the public, the best way to achieve this is to make it 625 | free software which everyone can redistribute and change under these terms. 626 | 627 | To do so, attach the following notices to the program. It is safest 628 | to attach them to the start of each source file to most effectively 629 | state the exclusion of warranty; and each file should have at least 630 | the "copyright" line and a pointer to where the full notice is found. 631 | 632 | 633 | Copyright (C) 634 | 635 | This program is free software: you can redistribute it and/or modify 636 | it under the terms of the GNU Affero General Public License as published by 637 | the Free Software Foundation, either version 3 of the License, or 638 | (at your option) any later version. 639 | 640 | This program is distributed in the hope that it will be useful, 641 | but WITHOUT ANY WARRANTY; without even the implied warranty of 642 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 643 | GNU Affero General Public License for more details. 644 | 645 | You should have received a copy of the GNU Affero General Public License 646 | along with this program. If not, see . 647 | 648 | Also add information on how to contact you by electronic and paper mail. 649 | 650 | If your software can interact with users remotely through a computer 651 | network, you should also make sure that it provides a way for users to 652 | get its source. For example, if your program is a web application, its 653 | interface could display a "Source" link that leads users to an archive 654 | of the code. There are many ways you could offer source, and different 655 | solutions will be better for different programs; see section 13 for the 656 | specific requirements. 657 | 658 | You should also get your employer (if you work as a programmer) or school, 659 | if any, to sign a "copyright disclaimer" for the program, if necessary. 660 | For more information on this, and how to apply and follow the GNU AGPL, see 661 | . 662 | --------------------------------------------------------------------------------