Skip to content

Commit

Permalink
Merge PR #1618 into 14.0
Browse files Browse the repository at this point in the history
Signed-off-by dreispt
  • Loading branch information
OCA-git-bot committed Nov 26, 2023
2 parents fb8e62f + f9b090d commit e2bb3fa
Show file tree
Hide file tree
Showing 10 changed files with 156 additions and 0 deletions.
6 changes: 6 additions & 0 deletions setup/stock_picking_invoicing_incoterm/setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import setuptools

setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
50 changes: 50 additions & 0 deletions stock_picking_invoicing_incoterm/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
:alt: License: AGPL-3

================================
Stock Picking Invoicing Incoterm
================================

This module adds the International Commercial Terms in stock.picking model given
from sale.order associated to it.

Usage
=====

.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
:alt: Try me on Runbot
:target: https://runbot.odoo-community.org/runbot/95/14.0

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

Bugs are tracked on `GitHub Issues <https://github.com/OCA/account-invoicing/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
`here <https://github.com/OCA/account-invoicing/issues/new?body=module:%20stock_picking_invoicing_incoterm%0Aversion:%2014.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.


Credits
=======

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

* Alex Comba <[email protected]>
* Esther Martín <[email protected]>
* Alfredo Zamora <[email protected]>

Maintainer
----------

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

This module is maintained by the OCA.

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.

To contribute to this module, please visit http://odoo-community.org.
4 changes: 4 additions & 0 deletions stock_picking_invoicing_incoterm/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Copyright 2014-2020 Agile Business Group sagl
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html

from . import models
17 changes: 17 additions & 0 deletions stock_picking_invoicing_incoterm/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Copyright 2014-2020 Agile Business Group sagl
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html
{
"name": "Stock Picking Invoicing Incoterm",
"version": "14.0.1.0.0",
"category": "Inventory/Inventory",
"author": "Agile Business Group, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/account-invoicing",
"license": "AGPL-3",
"depends": [
"sale_stock",
],
"data": [
"views/stock_picking_views.xml",
],
"installable": True,
}
49 changes: 49 additions & 0 deletions stock_picking_invoicing_incoterm/i18n/it.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * stock_picking_invoicing_incoterm
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0+e\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-12-16 08:16+0000\n"
"PO-Revision-Date: 2020-12-16 08:16+0000\n"
"Last-Translator: Alfredo Zamora <[email protected]>\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_picking_invoicing_incoterm
#: model:ir.model.fields,field_description:stock_picking_invoicing_incoterm.field_stock_picking__display_name
msgid "Display Name"
msgstr "Nome visualizzato"

#. module: stock_picking_invoicing_incoterm
#: model:ir.model.fields,field_description:stock_picking_invoicing_incoterm.field_stock_picking__id
msgid "ID"
msgstr ""

#. module: stock_picking_invoicing_incoterm
#: model:ir.model.fields,field_description:stock_picking_invoicing_incoterm.field_stock_picking__incoterm
msgid "Incoterm"
msgstr "Termine di resa"

#. module: stock_picking_invoicing_incoterm
#: model:ir.model.fields,help:stock_picking_invoicing_incoterm.field_stock_picking__incoterm
msgid ""
"International Commercial Terms are a series of predefined commercial terms "
"used in international transactions."
msgstr ""
"Gli incoterm sono una serie di termini commerciali predefiniti usati nelle transazioni internazionali"

#. module: stock_picking_invoicing_incoterm
#: model:ir.model.fields,field_description:stock_picking_invoicing_incoterm.field_stock_picking____last_update
msgid "Last Modified on"
msgstr "Ultima modifica il"

#. module: stock_picking_invoicing_incoterm
#: model:ir.model,name:stock_picking_invoicing_incoterm.model_stock_picking
msgid "Transfer"
msgstr "Trasferimento"
4 changes: 4 additions & 0 deletions stock_picking_invoicing_incoterm/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Copyright 2014-2020 Agile Business Group sagl
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html

from . import stock
12 changes: 12 additions & 0 deletions stock_picking_invoicing_incoterm/models/stock.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Copyright 2014-2020 Agile Business Group sagl
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html

from odoo import fields, models


class StockPicking(models.Model):
_inherit = "stock.picking"

incoterm = fields.Many2one(
related="sale_id.incoterm", string="Incoterm", store=True, readonly=False
)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions stock_picking_invoicing_incoterm/views/stock_picking_views.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<record id="stock_picking_form_view" model="ir.ui.view">
<field name="name">stock.picking.form.view</field>
<field name="model">stock.picking</field>
<field name="inherit_id" ref="stock.view_picking_form" />
<field name="arch" type="xml">
<xpath expr="//group[@name='other_infos']" position="inside">
<field name="incoterm" />
</xpath>
</field>
</record>
</odoo>

0 comments on commit e2bb3fa

Please sign in to comment.