Skip to content

Commit

Permalink
Merge branch '11.0' into 11.0-mig-sale_validity
Browse files Browse the repository at this point in the history
  • Loading branch information
murtuzasaleh authored Oct 8, 2018
2 parents c60fca9 + 5926769 commit 0cc59be
Show file tree
Hide file tree
Showing 21 changed files with 731 additions and 1 deletion.
85 changes: 85 additions & 0 deletions sale_stock_picking_note/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
=======================
Sale Stock Picking Note
=======================

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fsale--workflow-lightgray.png?logo=github
:target: https://github.com/OCA/sale-workflow/tree/11.0/sale_stock_picking_note
:alt: OCA/sale-workflow
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/sale-workflow-11-0/sale-workflow-11-0-sale_stock_picking_note
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/167/11.0
:alt: Try me on Runbot

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

This module extend sale order to include a note that will be set as the picking
note.

**Table of contents**

.. contents::
:local:

Usage
=====

#. Place a new sale order with stockable products.
#. Go to *Other information* tab and set the **Picking Note** you want to.
#. Confirm the Sale Order and go to the created picking.
#. The note will be available under the *Additional Info* tab.

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

Bugs are tracked on `GitHub Issues <https://github.com/OCA/sale-workflow/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed
`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**>`_.

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

Credits
=======

Authors
~~~~~~~

* Tecnativa

Contributors
~~~~~~~~~~~~

* `Tecnativa <https://www.tecnativa.com>`_:

* Carlos Dauden
* David Vidal

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/sale-workflow <https://github.com/OCA/sale-workflow/tree/11.0/sale_stock_picking_note>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
3 changes: 3 additions & 0 deletions sale_stock_picking_note/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

from . import models
20 changes: 20 additions & 0 deletions sale_stock_picking_note/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Copyright 2018 Carlos Dauden - Tecnativa <[email protected]>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
'name': 'Sale Stock Picking Note',
'summary': 'Add picking note in sale and purchase order',
'version': '11.0.1.0.0',
'category': 'Sales',
'website': 'https://github.com/OCA/sale-workflow',
'author': 'Tecnativa, '
'Odoo Community Association (OCA)',
'license': 'AGPL-3',
'installable': True,
'depends': [
'sale_stock',
],
'data': [
'views/sale_order_view.xml',
'views/stock_picking_view.xml',
],
}
38 changes: 38 additions & 0 deletions sale_stock_picking_note/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_stock_picking_note
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 11.0c\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-06-12 10:34+0200\n"
"PO-Revision-Date: 2018-06-12 10:35+0200\n"
"Last-Translator: Carlos Dauden <[email protected]>\n"
"Language-Team: \n"
"Language: es\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Poedit 1.8.7.1\n"

#. module: sale_stock_picking_note
#: model:ir.ui.view,arch_db:sale_stock_picking_note.view_picking_form
msgid "Notes"
msgstr "Notas"

#. module: sale_stock_picking_note
#: model:ir.model.fields,field_description:sale_stock_picking_note.field_sale_order_picking_note
msgid "Picking Note"
msgstr "Nota albarán"

#. module: sale_stock_picking_note
#: model:ir.model,name:sale_stock_picking_note.model_sale_order
msgid "Quotation"
msgstr "Presupuesto"

#. module: sale_stock_picking_note
#: model:ir.model,name:sale_stock_picking_note.model_stock_move
msgid "Stock Move"
msgstr "Movimiento de existencias"
35 changes: 35 additions & 0 deletions sale_stock_picking_note/i18n/sale_stock_picking_note.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_stock_picking_note
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 11.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: sale_stock_picking_note
#: model:ir.ui.view,arch_db:sale_stock_picking_note.view_picking_form
msgid "Notes"
msgstr ""

#. module: sale_stock_picking_note
#: model:ir.model.fields,field_description:sale_stock_picking_note.field_sale_order_picking_note
msgid "Picking Note"
msgstr ""

#. module: sale_stock_picking_note
#: model:ir.model,name:sale_stock_picking_note.model_sale_order
msgid "Quotation"
msgstr ""

#. module: sale_stock_picking_note
#: model:ir.model,name:sale_stock_picking_note.model_stock_move
msgid "Stock Move"
msgstr ""

3 changes: 3 additions & 0 deletions sale_stock_picking_note/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

from . import sale_stock
23 changes: 23 additions & 0 deletions sale_stock_picking_note/models/sale_stock.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Copyright 2018 Carlos Dauden - Tecnativa <[email protected]>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

from odoo import fields, models


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

picking_note = fields.Text(
string="Picking Note",
)


class StockMove(models.Model):
_inherit = 'stock.move'

def _get_new_picking_values(self):
vals = super()._get_new_picking_values()
sale_note = self.sale_line_id.order_id.picking_note
if sale_note:
vals['note'] = sale_note
return vals
4 changes: 4 additions & 0 deletions sale_stock_picking_note/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
* `Tecnativa <https://www.tecnativa.com>`_:

* Carlos Dauden
* David Vidal
2 changes: 2 additions & 0 deletions sale_stock_picking_note/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
This module extend sale order to include a note that will be set as the picking
note.
4 changes: 4 additions & 0 deletions sale_stock_picking_note/readme/USAGE.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#. Place a new sale order with stockable products.
#. Go to *Other information* tab and set the **Picking Note** you want to.
#. Confirm the Sale Order and go to the created picking.
#. The note will be available under the *Additional Info* tab.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 0cc59be

Please sign in to comment.