Skip to content

Commit e51c738

Browse files
David Vidalilyas caluwe
David Vidal
authored and
ilyas caluwe
committed
[11.0][ADD] sale_stock_picking_note: New module (OCA#696)
[UPD] Update sale_stock_picking_note.pot [UPD] README.rst
1 parent c52b9a2 commit e51c738

16 files changed

+720
-0
lines changed

sale_stock_picking_note/README.rst

+85
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
=======================
2+
Sale Stock Picking Note
3+
=======================
4+
5+
.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
6+
!! This file is generated by oca-gen-addon-readme !!
7+
!! changes will be overwritten. !!
8+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
9+
10+
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
11+
:target: https://odoo-community.org/page/development-status
12+
:alt: Beta
13+
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
14+
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
15+
:alt: License: AGPL-3
16+
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fsale--workflow-lightgray.png?logo=github
17+
:target: https://github.com/OCA/sale-workflow/tree/11.0/sale_stock_picking_note
18+
:alt: OCA/sale-workflow
19+
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
20+
:target: https://translation.odoo-community.org/projects/sale-workflow-11-0/sale-workflow-11-0-sale_stock_picking_note
21+
:alt: Translate me on Weblate
22+
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
23+
:target: https://runbot.odoo-community.org/runbot/167/11.0
24+
:alt: Try me on Runbot
25+
26+
|badge1| |badge2| |badge3| |badge4| |badge5|
27+
28+
This module extend sale order to include a note that will be set as the picking
29+
note.
30+
31+
**Table of contents**
32+
33+
.. contents::
34+
:local:
35+
36+
Usage
37+
=====
38+
39+
#. Place a new sale order with stockable products.
40+
#. Go to *Other information* tab and set the **Picking Note** you want to.
41+
#. Confirm the Sale Order and go to the created picking.
42+
#. The note will be available under the *Additional Info* tab.
43+
44+
Bug Tracker
45+
===========
46+
47+
Bugs are tracked on `GitHub Issues <https://github.com/OCA/sale-workflow/issues>`_.
48+
In case of trouble, please check there if your issue has already been reported.
49+
If you spotted it first, help us smashing it by providing a detailed and welcomed
50+
`feedback <https://github.com/OCA/sale-workflow/issues/new?body=module:%20sale_stock_picking_note%0Aversion:%2011.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
51+
52+
Do not contact contributors directly about support or help with technical issues.
53+
54+
Credits
55+
=======
56+
57+
Authors
58+
~~~~~~~
59+
60+
* Tecnativa
61+
62+
Contributors
63+
~~~~~~~~~~~~
64+
65+
* `Tecnativa <https://www.tecnativa.com>`_:
66+
67+
* Carlos Dauden
68+
* David Vidal
69+
70+
Maintainers
71+
~~~~~~~~~~~
72+
73+
This module is maintained by the OCA.
74+
75+
.. image:: https://odoo-community.org/logo.png
76+
:alt: Odoo Community Association
77+
:target: https://odoo-community.org
78+
79+
OCA, or the Odoo Community Association, is a nonprofit organization whose
80+
mission is to support the collaborative development of Odoo features and
81+
promote its widespread use.
82+
83+
This module is part of the `OCA/sale-workflow <https://github.com/OCA/sale-workflow/tree/11.0/sale_stock_picking_note>`_ project on GitHub.
84+
85+
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

sale_stock_picking_note/__init__.py

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
2+
3+
from . import models
+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Copyright 2018 Carlos Dauden - Tecnativa <carlos.dauden@tecnativa.com>
2+
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
3+
{
4+
'name': 'Sale Stock Picking Note',
5+
'summary': 'Add picking note in sale and purchase order',
6+
'version': '11.0.1.0.0',
7+
'category': 'Sales',
8+
'website': 'https://github.com/OCA/sale-workflow',
9+
'author': 'Tecnativa, '
10+
'Odoo Community Association (OCA)',
11+
'license': 'AGPL-3',
12+
'installable': True,
13+
'depends': [
14+
'sale_stock',
15+
],
16+
'data': [
17+
'views/sale_order_view.xml',
18+
'views/stock_picking_view.xml',
19+
],
20+
}

sale_stock_picking_note/i18n/es.po

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Translation of Odoo Server.
2+
# This file contains the translation of the following modules:
3+
# * sale_stock_picking_note
4+
#
5+
msgid ""
6+
msgstr ""
7+
"Project-Id-Version: Odoo Server 11.0c\n"
8+
"Report-Msgid-Bugs-To: \n"
9+
"POT-Creation-Date: 2018-06-12 10:34+0200\n"
10+
"PO-Revision-Date: 2018-06-12 10:35+0200\n"
11+
"Last-Translator: Carlos Dauden <carlos.dauden@tecnativa.com>\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 1.8.7.1\n"
19+
20+
#. module: sale_stock_picking_note
21+
#: model:ir.ui.view,arch_db:sale_stock_picking_note.view_picking_form
22+
msgid "Notes"
23+
msgstr "Notas"
24+
25+
#. module: sale_stock_picking_note
26+
#: model:ir.model.fields,field_description:sale_stock_picking_note.field_sale_order_picking_note
27+
msgid "Picking Note"
28+
msgstr "Nota albarán"
29+
30+
#. module: sale_stock_picking_note
31+
#: model:ir.model,name:sale_stock_picking_note.model_sale_order
32+
msgid "Quotation"
33+
msgstr "Presupuesto"
34+
35+
#. module: sale_stock_picking_note
36+
#: model:ir.model,name:sale_stock_picking_note.model_stock_move
37+
msgid "Stock Move"
38+
msgstr "Movimiento de existencias"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Translation of Odoo Server.
2+
# This file contains the translation of the following modules:
3+
# * sale_stock_picking_note
4+
#
5+
msgid ""
6+
msgstr ""
7+
"Project-Id-Version: Odoo Server 11.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: sale_stock_picking_note
17+
#: model:ir.ui.view,arch_db:sale_stock_picking_note.view_picking_form
18+
msgid "Notes"
19+
msgstr ""
20+
21+
#. module: sale_stock_picking_note
22+
#: model:ir.model.fields,field_description:sale_stock_picking_note.field_sale_order_picking_note
23+
msgid "Picking Note"
24+
msgstr ""
25+
26+
#. module: sale_stock_picking_note
27+
#: model:ir.model,name:sale_stock_picking_note.model_sale_order
28+
msgid "Quotation"
29+
msgstr ""
30+
31+
#. module: sale_stock_picking_note
32+
#: model:ir.model,name:sale_stock_picking_note.model_stock_move
33+
msgid "Stock Move"
34+
msgstr ""
35+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
2+
3+
from . import sale_stock
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Copyright 2018 Carlos Dauden - Tecnativa <carlos.dauden@tecnativa.com>
2+
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
3+
4+
from odoo import fields, models
5+
6+
7+
class SaleOrder(models.Model):
8+
_inherit = 'sale.order'
9+
10+
picking_note = fields.Text(
11+
string="Picking Note",
12+
)
13+
14+
15+
class StockMove(models.Model):
16+
_inherit = 'stock.move'
17+
18+
def _get_new_picking_values(self):
19+
vals = super()._get_new_picking_values()
20+
sale_note = self.sale_line_id.order_id.picking_note
21+
if sale_note:
22+
vals['note'] = sale_note
23+
return vals
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
* `Tecnativa <https://www.tecnativa.com>`_:
2+
3+
* Carlos Dauden
4+
* David Vidal
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
This module extend sale order to include a note that will be set as the picking
2+
note.
+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#. Place a new sale order with stockable products.
2+
#. Go to *Other information* tab and set the **Picking Note** you want to.
3+
#. Confirm the Sale Order and go to the created picking.
4+
#. The note will be available under the *Additional Info* tab.
Loading

0 commit comments

Comments
 (0)