diff --git a/analytic_account_direct_ship/README.rst b/analytic_account_direct_ship/README.rst new file mode 100644 index 00000000..3b7d3383 --- /dev/null +++ b/analytic_account_direct_ship/README.rst @@ -0,0 +1,80 @@ +.. image:: https://odoo-community.org/readme-banner-image + :target: https://odoo-community.org/get-involved?utm_source=readme + :alt: Odoo Community Association + +============================ +Analytic Account Direct Ship +============================ + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:a531c24e567b605de5d615142feb84ab0da990d4a0cd0c0dfe11dc1204d97483 + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png + :target: https://odoo-community.org/page/development-status + :alt: Beta +.. |badge2| image:: https://img.shields.io/badge/license-LGPL--3-blue.png + :target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html + :alt: License: LGPL-3 +.. |badge3| image:: https://img.shields.io/badge/github-qrtl%2Faxls--custom-lightgray.png?logo=github + :target: https://github.com/qrtl/axls-custom/tree/16.0/analytic_account_direct_ship + :alt: qrtl/axls-custom + +|badge1| |badge2| |badge3| + +This module adds a **Direct Ship** (即出庫) flag to analytic accounts. + +The flag itself is the only thing this module provides. The automated +action that detects incoming transfers and reroutes them to the +immediate shipment location is configured separately in Odoo's Automated +Actions settings — this module simply supplies the field for that action +to reference. + +**Table of contents** + +.. contents:: + :local: + +Bug Tracker +=========== + +Bugs are tracked on `GitHub Issues `_. +In case of trouble, please check there if your issue has already been reported. +If you spotted it first, help us to smash it by providing a detailed and welcomed +`feedback `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +------- + +* Quartile Limited + +Contributors +------------ + +- `Quartile `__: + + - Toshikimi Shigenobu + +Maintainers +----------- + +.. |maintainer-nobuQuartile| image:: https://github.com/nobuQuartile.png?size=40px + :target: https://github.com/nobuQuartile + :alt: nobuQuartile + +Current maintainer: + +|maintainer-nobuQuartile| + +This module is part of the `qrtl/axls-custom `_ project on GitHub. + +You are welcome to contribute. diff --git a/analytic_account_direct_ship/__init__.py b/analytic_account_direct_ship/__init__.py new file mode 100644 index 00000000..0650744f --- /dev/null +++ b/analytic_account_direct_ship/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/analytic_account_direct_ship/__manifest__.py b/analytic_account_direct_ship/__manifest__.py new file mode 100644 index 00000000..d3271e60 --- /dev/null +++ b/analytic_account_direct_ship/__manifest__.py @@ -0,0 +1,17 @@ +# Copyright 2026 Quartile Limited +# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl). +{ + "name": "Analytic Account Direct Ship", + "summary": "Adds a direct shipment flag to analytic accounts", + "version": "16.0.1.0.0", + "author": "Quartile Limited", + "website": "https://www.quartile.co", + "maintainers": ["nobuQuartile"], + "category": "Inventory", + "license": "LGPL-3", + "depends": ["analytic"], + "data": [ + "views/account_analytic_account_views.xml", + ], + "installable": True, +} diff --git a/analytic_account_direct_ship/models/__init__.py b/analytic_account_direct_ship/models/__init__.py new file mode 100644 index 00000000..97bd4243 --- /dev/null +++ b/analytic_account_direct_ship/models/__init__.py @@ -0,0 +1 @@ +from . import account_analytic_account diff --git a/analytic_account_direct_ship/models/account_analytic_account.py b/analytic_account_direct_ship/models/account_analytic_account.py new file mode 100644 index 00000000..9eec0902 --- /dev/null +++ b/analytic_account_direct_ship/models/account_analytic_account.py @@ -0,0 +1,14 @@ +# Copyright 2026 Quartile Limited +# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl). + +from odoo import fields, models + + +class AccountAnalyticAccount(models.Model): + _inherit = "account.analytic.account" + + is_direct_ship = fields.Boolean( + string="Direct Ship", + help="When enabled, incoming transfers for this analytic account are " + "automatically rerouted to the immediate shipment location.", + ) diff --git a/analytic_account_direct_ship/readme/CONTRIBUTORS.md b/analytic_account_direct_ship/readme/CONTRIBUTORS.md new file mode 100644 index 00000000..04192ea8 --- /dev/null +++ b/analytic_account_direct_ship/readme/CONTRIBUTORS.md @@ -0,0 +1,2 @@ +- [Quartile](https://www.quartile.co): + - Toshikimi Shigenobu diff --git a/analytic_account_direct_ship/readme/DESCRIPTION.md b/analytic_account_direct_ship/readme/DESCRIPTION.md new file mode 100644 index 00000000..5078b45c --- /dev/null +++ b/analytic_account_direct_ship/readme/DESCRIPTION.md @@ -0,0 +1,7 @@ +This module adds a **Direct Ship** (即出庫) flag to analytic accounts. + +The flag itself is the only thing this module provides. The automated +action that detects incoming transfers and reroutes them to the immediate +shipment location is configured separately in Odoo's Automated Actions +settings — this module simply supplies the field for that action to +reference. diff --git a/analytic_account_direct_ship/static/description/index.html b/analytic_account_direct_ship/static/description/index.html new file mode 100644 index 00000000..f277507d --- /dev/null +++ b/analytic_account_direct_ship/static/description/index.html @@ -0,0 +1,432 @@ + + + + + +README.rst + + + +
+ + + +Odoo Community Association + +
+

Analytic Account Direct Ship

+ +

Beta License: LGPL-3 qrtl/axls-custom

+

This module adds a Direct Ship (即出庫) flag to analytic accounts.

+

The flag itself is the only thing this module provides. The automated +action that detects incoming transfers and reroutes them to the +immediate shipment location is configured separately in Odoo’s Automated +Actions settings — this module simply supplies the field for that action +to reference.

+

Table of contents

+ +
+

Bug Tracker

+

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

+

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

+
+
+

Credits

+
+

Authors

+
    +
  • Quartile Limited
  • +
+
+
+

Contributors

+ +
+
+

Maintainers

+

Current maintainer:

+

nobuQuartile

+

This module is part of the qrtl/axls-custom project on GitHub.

+

You are welcome to contribute.

+
+
+
+
+ + diff --git a/analytic_account_direct_ship/views/account_analytic_account_views.xml b/analytic_account_direct_ship/views/account_analytic_account_views.xml new file mode 100644 index 00000000..8c20ca19 --- /dev/null +++ b/analytic_account_direct_ship/views/account_analytic_account_views.xml @@ -0,0 +1,12 @@ + + + account.analytic.account.form + account.analytic.account + + + + + + + + diff --git a/setup/analytic_account_direct_ship/odoo/addons/analytic_account_direct_ship b/setup/analytic_account_direct_ship/odoo/addons/analytic_account_direct_ship new file mode 120000 index 00000000..96ef5b1c --- /dev/null +++ b/setup/analytic_account_direct_ship/odoo/addons/analytic_account_direct_ship @@ -0,0 +1 @@ +../../../../analytic_account_direct_ship \ No newline at end of file diff --git a/setup/analytic_account_direct_ship/setup.py b/setup/analytic_account_direct_ship/setup.py new file mode 100644 index 00000000..28c57bb6 --- /dev/null +++ b/setup/analytic_account_direct_ship/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +)