Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
107 changes: 107 additions & 0 deletions stock_brand/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
.. image:: https://odoo-community.org/readme-banner-image
:target: https://odoo-community.org/get-involved?utm_source=readme
:alt: Odoo Community Association

===========
Stock Brand
===========

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:75bd15db099354f8668d20db77de49e30457831a285cb53eb1a4cfe13ee05ec4
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |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-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fbrand-lightgray.png?logo=github
:target: https://github.com/OCA/brand/tree/19.0/stock_brand
:alt: OCA/brand
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/brand-19-0/brand-19-0-stock_brand
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/brand&target_branch=19.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

This module streamlines the branding of shipping documents. It ensures
that the brand selected on a sale order is automatically applied to the
corresponding stock picking documents, providing consistent branding on
delivery slips and other related paperwork.

**Table of contents**

.. contents::
:local:

Usage
=====

To use this module, you need to:

1. Go to Sales > Sale Orders
2. Select or create a sale order
3. Enter the information and the brand
4. Confirm Sale order to create pickings
5. Print the delivery slip PDF report. It includes the information of
the brand.

To do point 5, the `Brand External Report
Layout <https://github.com/OCA/brand/tree/18.0/brand_external_report_layout/README.rst>`__
OCA module must be installed.

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/brand/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/brand/issues/new?body=module:%20stock_brand%0Aversion:%2019.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

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

Credits
=======

Authors
-------

* Sunflower IT

Contributors
------------

- Terrence Nzaywa <terrence@sunflowerweb.nl, nza.terrence@gmail.com>
- `Heliconia Solutions Pvt. Ltd. <https://www.heliconia.io>`__

- Bhavesh Heliconia

Other credits
-------------

- Sunflower IT <https://www.sunflowerweb.nl>

Maintainers
-----------

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

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

This module is part of the `OCA/brand <https://github.com/OCA/brand/tree/19.0/stock_brand>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
5 changes: 5 additions & 0 deletions stock_brand/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Copyright (C) 2019 Sunflower IT <sunflowerweb.nl>
# License GNU Affero General Public License <http://www.gnu.org/licenses/>.


from . import models
21 changes: 21 additions & 0 deletions stock_brand/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Copyright (C) 2019 Sunflower IT <sunflowerweb.nl>
# License GNU Affero General Public License <http://www.gnu.org/licenses/>.

{
"name": "Stock Brand",
"summary": "Manage brands on stock picking documents",
"version": "19.0.1.0.0",
"category": "Warehouse",
"website": "https://github.com/OCA/brand",
"author": "Sunflower IT, Odoo Community Association (OCA)",
"license": "AGPL-3",
"depends": [
"sale_brand",
"sale_stock",
],
"data": [
"views/stock_picking_views.xml",
],
"installable": True,
"development_status": "Beta",
}
57 changes: 57 additions & 0 deletions stock_brand/i18n/it.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * stock_brand
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 18.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2025-09-16 11:42+0000\n"
"Last-Translator: mymage <stefano.consolaro@mymage.it>\n"
"Language-Team: none\n"
"Language: it\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 5.10.4\n"

#. module: stock_brand
#: model:ir.model.fields,field_description:stock_brand.field_stock_picking__allowed_payment_mode_ids
msgid "Allowed Payment Mode"
msgstr "Metodo di pagamento consentito"

#. module: stock_brand
#: model:ir.model.fields,field_description:stock_brand.field_stock_picking__brand_id
msgid "Brand"
msgstr "Marca"

#. module: stock_brand
#: model:ir.model.fields,field_description:stock_brand.field_stock_picking__brand_use_level
msgid "Brand Use Level"
msgstr "Livello uso marca"

#. module: stock_brand
#: model:ir.model.fields,help:stock_brand.field_stock_picking__brand_id
msgid "Brand to use for this picking."
msgstr "Marca da usare per questo prelievo."

#. module: stock_brand
#: model:ir.model.fields,field_description:stock_brand.field_stock_picking__company_id
msgid "Company"
msgstr "Azienda"

#. module: stock_brand
#: model:ir.model.fields,field_description:stock_brand.field_stock_picking__is_brand_required
msgid "Is Brand Required"
msgstr "La marca è richiesta"

#. module: stock_brand
#: model:ir.model,name:stock_brand.model_sale_order
msgid "Sales Order"
msgstr "Ordine di vendita"

#. module: stock_brand
#: model:ir.model,name:stock_brand.model_stock_picking
msgid "Transfer"
msgstr "Trasferimento"
57 changes: 57 additions & 0 deletions stock_brand/i18n/nl.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * stock_brand
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 18.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-04-13 11:48+0000\n"
"PO-Revision-Date: 2025-04-13 11:48+0000\n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: stock_brand
#: model:ir.model.fields,field_description:stock_brand.field_stock_picking__allowed_payment_mode_ids
msgid "Allowed Payment Mode"
msgstr ""

#. module: stock_brand
#: model:ir.model.fields,field_description:stock_brand.field_stock_picking__brand_id
msgid "Brand"
msgstr "Merk"

#. module: stock_brand
#: model:ir.model.fields,field_description:stock_brand.field_stock_picking__brand_use_level
msgid "Brand Use Level"
msgstr "Merkgebruiksniveau"

#. module: stock_brand
#: model:ir.model.fields,help:stock_brand.field_stock_picking__brand_id
msgid "Brand to use for this picking."
msgstr "Merk dat voor deze picking moet worden gebruikt."

#. module: stock_brand
#: model:ir.model.fields,field_description:stock_brand.field_stock_picking__company_id
msgid "Company"
msgstr "Bedrijf"

#. module: stock_brand
#: model:ir.model.fields,field_description:stock_brand.field_stock_picking__is_brand_required
msgid "Is Brand Required"
msgstr ""

#. module: stock_brand
#: model:ir.model,name:stock_brand.model_sale_order
msgid "Sales Order"
msgstr "Verkooporder"

#. module: stock_brand
#: model:ir.model,name:stock_brand.model_stock_picking
msgid "Transfer"
msgstr "Overdracht"
54 changes: 54 additions & 0 deletions stock_brand/i18n/stock_brand.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * stock_brand
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 18.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: stock_brand
#: model:ir.model.fields,field_description:stock_brand.field_stock_picking__allowed_payment_mode_ids
msgid "Allowed Payment Mode"
msgstr ""

#. module: stock_brand
#: model:ir.model.fields,field_description:stock_brand.field_stock_picking__brand_id
msgid "Brand"
msgstr ""

#. module: stock_brand
#: model:ir.model.fields,field_description:stock_brand.field_stock_picking__brand_use_level
msgid "Brand Use Level"
msgstr ""

#. module: stock_brand
#: model:ir.model.fields,help:stock_brand.field_stock_picking__brand_id
msgid "Brand to use for this picking."
msgstr ""

#. module: stock_brand
#: model:ir.model.fields,field_description:stock_brand.field_stock_picking__company_id
msgid "Company"
msgstr ""

#. module: stock_brand
#: model:ir.model.fields,field_description:stock_brand.field_stock_picking__is_brand_required
msgid "Is Brand Required"
msgstr ""

#. module: stock_brand
#: model:ir.model,name:stock_brand.model_sale_order
msgid "Sales Order"
msgstr ""

#. module: stock_brand
#: model:ir.model,name:stock_brand.model_stock_picking
msgid "Transfer"
msgstr ""
5 changes: 5 additions & 0 deletions stock_brand/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Copyright (C) 2019 Sunflower IT <sunflowerweb.nl>
# License GNU Affero General Public License <http://www.gnu.org/licenses/>.

from . import stock_picking
from . import sale_order
14 changes: 14 additions & 0 deletions stock_brand/models/sale_order.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Copyright (C) 2019 Sunflower IT <sunflowerweb.nl>
# License GNU Affero General Public License <http://www.gnu.org/licenses/>.

from odoo import models


class SaleOrder(models.Model):
_inherit = "sale.order"

def action_confirm(self):
res = super().action_confirm()
for order in self:
order.picking_ids.write({"brand_id": order.brand_id.id})
return res
19 changes: 19 additions & 0 deletions stock_brand/models/stock_picking.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Copyright (C) 2019 Sunflower IT <sunflowerweb.nl>
# License GNU Affero General Public License <http://www.gnu.org/licenses/>.

from odoo import fields, models


class StockPicking(models.Model):
_name = "stock.picking"
_inherit = ["stock.picking", "res.brand.mixin"]

brand_id = fields.Many2one(
help="Brand to use for this picking.",
)

def _is_brand_required(self):
self.ensure_one()
if self.picking_type_id.code in ("internal", "mrp_operation"):
return False
return super()._is_brand_required()
3 changes: 3 additions & 0 deletions stock_brand/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["whool"]
build-backend = "whool.buildapi"
4 changes: 4 additions & 0 deletions stock_brand/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
- Terrence Nzaywa \<<terrence@sunflowerweb.nl>,
<nza.terrence@gmail.com>\>
- [Heliconia Solutions Pvt. Ltd.](https://www.heliconia.io)
- Bhavesh Heliconia
1 change: 1 addition & 0 deletions stock_brand/readme/CREDITS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Sunflower IT \<<https://www.sunflowerweb.nl>\>
1 change: 1 addition & 0 deletions stock_brand/readme/DESCRIPTION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This module streamlines the branding of shipping documents. It ensures that the brand selected on a sale order is automatically applied to the corresponding stock picking documents, providing consistent branding on delivery slips and other related paperwork.
10 changes: 10 additions & 0 deletions stock_brand/readme/USAGE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
To use this module, you need to:

1. Go to Sales \> Sale Orders
2. Select or create a sale order
3. Enter the information and the brand
4. Confirm Sale order to create pickings
5. Print the delivery slip PDF report. It includes the information of
the brand.

To do point 5, the [Brand External Report Layout](https://github.com/OCA/brand/tree/18.0/brand_external_report_layout/README.rst) OCA module must be installed.
Binary file added stock_brand/static/description/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading