Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MIG] account_invoice_production_lot: Migration to 17.0 #319

Open
wants to merge 34 commits into
base: 17.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
21be8c4
[ADD] account_invoice_production_lot
eLBati Oct 15, 2013
d37c359
Launchpad automatic translations update.
Jan 18, 2014
14835cb
[FIX] account_invoice_production_lot: Changed Dependences + Fixed Tes…
hurrinico Feb 24, 2014
726870d
[MIG] account_invoice_production_lot: Migration to 8.0
archetipo Jul 23, 2015
85e4209
[IMP] account_invoice_production_lot: Improve README
pedrobaeza Oct 6, 2015
1b2e7a2
[MIG] account_invoice_production_lot: Migration to 10.0
cubells Sep 8, 2017
13e57d6
[FIX] account_invoice_production_lot: Don't duplicate S/N
pedrobaeza Jan 4, 2018
6b7d38c
IMP account_invoice_production_lot showing quantities by lots, when t…
eLBati Apr 27, 2018
03a1078
[IMP] account_invoice_production_lot: unit test + improve README
tafaRU Oct 11, 2018
3d5e839
[MIG] account_invoice_production_lot: Migration to 11.0
pedrobaeza Dec 15, 2018
d36eb97
[12.0][MIG] account_invoice_production_lot module
AdriaGForgeFlow Mar 29, 2019
7aa1161
[MIG] account_invoice_production_lot: Migration to v12
sergio-teruel Nov 8, 2019
05d5e44
[IMP] account_invoice_production_lot: black, isort, prettier
joao-p-marques Sep 22, 2020
d8a7ff7
[MIG] account_invoice_production_lot: Migration to 13.0
joao-p-marques Sep 22, 2020
ee534d7
Translated using Weblate (Spanish)
anasuarez1 Mar 5, 2021
95600b2
Translated using Weblate (Spanish)
anasuarez1 Mar 9, 2021
69cc9f0
[MIG] account_invoice_production_lot: Migration to 14.0
fredzamoabg Apr 14, 2021
13ada9e
[FIX] account_invoice_production_lot: Don't populate empyt S/N
pedrobaeza Mar 1, 2022
1b241fe
Translated using Weblate (German)
marylla May 11, 2022
4884d8d
[MIG] account_invoice_production_lot: Migration to 15.0
victoralmau Jan 18, 2023
f713e5c
[UPD] Update account_invoice_production_lot.pot
Feb 27, 2023
936c473
[UPD] README.rst
OCA-git-bot Feb 27, 2023
ac026d9
Update translation files
weblate Feb 28, 2023
59cbeb3
Translated using Weblate (Catalan)
Jun 23, 2023
98da93a
Translated using Weblate (Spanish)
Ivorra78 Jul 29, 2023
4cf1b90
[MIG] account_invoice_production_lot: Migration to 16.0
aktiv-heli-kantawala Aug 25, 2023
539c1ce
[UPD] Update account_invoice_production_lot.pot
Jan 25, 2024
018c724
[BOT] post-merge updates
OCA-git-bot Jan 25, 2024
c1ea5d8
Update translation files
weblate Jan 25, 2024
a7f4a5c
Translated using Weblate (Croatian)
badbole Jan 31, 2024
d6c257d
Translated using Weblate (Spanish)
Ivorra78 Feb 1, 2024
9690fc8
Translated using Weblate (Italian)
mymage Feb 22, 2024
7a890b8
[IMP] account_invoice_production_lot: pre-commit auto fixes
ioans73 May 9, 2024
60ef254
[MIG] account_invoice_production_lot: Migration to 17.0
ioans73 May 9, 2024
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
121 changes: 121 additions & 0 deletions account_invoice_production_lot/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
=======================
Invoice Production Lots
=======================

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

.. |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%2Faccount--invoice--reporting-lightgray.png?logo=github
:target: https://github.com/OCA/account-invoice-reporting/tree/17.0/account_invoice_production_lot
:alt: OCA/account-invoice-reporting
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/account-invoice-reporting-17-0/account-invoice-reporting-17-0-account_invoice_production_lot
: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/account-invoice-reporting&target_branch=17.0
:alt: Try me on Runboat

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

This module shows, for each (customer) invoice line, the delivered
production lots that will be also displayed on the invoice report with
their corresponding delivered quantities in case the **Tracking** has
been set to **By Lots**.

**Note:** As of v13.0, Odoo provides an option under *Settings*
(**Inventory > Configuration > Settings > Traceability**) to **Display
Lots & Serial Numbers on Invoices** which provides similar
functionality. However, it has some limitations compared to this addon:
\* It will only display the associated Lots / Serial Numbers in the
generated *Invoice Report*, and not in an extra field in the Invoice
view form. \* It will display all the Lots / Serial Numbers grouped
together in an extra line in the Invoice Report. This module adds an
extra field in each line with that information.

**Table of contents**

.. contents::
:local:

Configuration
=============

- Go to **Inventory > Configuration > Settings > Traceability**, and
activate option **Lots & Serial Numbers** in order to manage lots in
your instance.
- Go to **Sales > Sales > Products** and select or create a storable
product (Product Type): check that the product has **Tracking** set
to **By lots** or to **By Unique Serial Number** (in the Inventory
tab) and **Invoicing Policy** set to **Delivered quantities** (in the
Sales tab)

Usage
=====

- Create and validate a sale order
- Set *Lots/Serial Numbers* on the delivered lines by clicking on the
button *Register lots, packs, location*
- After creating the invoice, the *Lots/Serial Numbers* are displayed
in the *Production Lots* on the invoice line form and in *formatted
note* field on the invoice report, and, in case **Tracking** has been
selected to **By lots**, their corresponding delivered quantities
will be displad as well.

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

Bugs are tracked on `GitHub Issues <https://github.com/OCA/account-invoice-reporting/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/account-invoice-reporting/issues/new?body=module:%20account_invoice_production_lot%0Aversion:%2017.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
-------

* Agile Business Group
* Tecnativa

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

- Lorenzo Battistini <[email protected]>
- Alessio Gerace <[email protected]>
- Alex Comba <[email protected]>
- `Tecnativa <https://www.tecnativa.com>`__:

- Vicent Cubells
- Pedro M. Baeza
- Sergio Teruel

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/account-invoice-reporting <https://github.com/OCA/account-invoice-reporting/tree/17.0/account_invoice_production_lot>`_ 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 account_invoice_production_lot/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from . import models
20 changes: 20 additions & 0 deletions account_invoice_production_lot/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Copyright 2011 Domsense s.r.l. <http://www.domsense.com>
# Copyright 2013 Lorenzo Battistini <[email protected]>
# Copyright 2017 Tecnativa - Vicent Cubells
# Copyright 2017-2018 Tecnativa - Pedro M. Baeza
# Copyright 2020 Tecnativa - João Marques
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

{
"name": "Invoice Production Lots",
"version": "17.0.1.0.0",
"author": "Agile Business Group," "Tecnativa," "Odoo Community Association (OCA)",
"summary": "Display delivered serial numbers in invoice",
"website": "https://github.com/OCA/account-invoice-reporting",
"license": "AGPL-3",
"category": "Accounting & Finance",
"depends": ["account", "stock_picking_invoice_link", "sale_management"],
"data": ["views/account_move_views.xml", "report/report_invoice.xml"],
"demo": ["demo/sale.xml"],
"installable": True,
}
85 changes: 85 additions & 0 deletions account_invoice_production_lot/demo/sale.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<record id="location_opening" model="stock.location">
<field name="name">opening</field>
<field name="usage">inventory</field>
</record>
<record id="product_icecream_b" model="product.product">
<field name="name">Ice Cream B</field>
<field name="property_stock_inventory" ref="location_opening" />
<field name="categ_id" ref="product.product_category_1" />
<field name="standard_price">70.0</field>
<field name="list_price">100.0</field>
<field name="detailed_type">product</field>
<field name="cost_method">average</field>
<field name="valuation">real_time</field>
<field
name="description"
>Ice cream can be mass-produced and thus is widely available in developed parts of the world. Ice cream can be purchased in large cartons (vats and squrounds) from supermarkets and grocery stores, in smaller quantities from ice cream shops, convenience stores, and milk bars, and in individual servings from small carts or vans at public events.</field>
<field name="default_code">001</field>
</record>
<record id="lot_icecream_0" model="stock.lot">
<field name="name">Lot0 for Ice cream</field>
<field name="product_id" ref="product_icecream_b" />
<field name="company_id" ref="base.main_company" />
</record>
<record id="lot_icecream_1" model="stock.lot">
<field name="name">Lot1 for Ice cream</field>
<field name="product_id" ref="product_icecream_b" />
<field name="company_id" ref="base.main_company" />
</record>
<record id="sale_order_0" model="sale.order">
<field name="partner_id" ref="base.res_partner_2" />
<field name="partner_invoice_id" ref="base.res_partner_2" />
<field name="partner_shipping_id" ref="base.res_partner_2" />
<field name="user_id" ref="base.user_admin" />
<field
name="date_order"
eval="(DateTime.today() - relativedelta(months=1)).strftime('%Y-%m-%d %H:%M')"
/>
</record>
<record id="sale_order_line_0" model="sale.order.line">
<field name="order_id" ref="sale_order_0" />
<field name="name">Ice Cream B</field>
<field name="product_id" ref="product_icecream_b" />
<field name="product_uom_qty">1.0</field>
<field name="product_uom" ref="uom.product_uom_unit" />
<field name="price_unit">100.00</field>
</record>
<record id="sale_order_1" model="sale.order">
<field name="partner_id" ref="base.res_partner_4" />
<field name="partner_invoice_id" ref="base.res_partner_address_13" />
<field name="partner_shipping_id" ref="base.res_partner_address_13" />
<field name="user_id" ref="base.user_admin" />
<field
name="date_order"
eval="(DateTime.today() - relativedelta(months=1)).strftime('%Y-%m-%d %H:%M')"
/>
</record>
<record id="sale_order_line_1" model="sale.order.line">
<field name="order_id" ref="sale_order_1" />
<field name="name">Ice Cream B</field>
<field name="product_id" ref="product_icecream_b" />
<field name="product_uom_qty">2.0</field>
<field name="product_uom" ref="uom.product_uom_unit" />
<field name="price_unit">100.00</field>
</record>
<record id="sale_order_2" model="sale.order">
<field name="partner_id" ref="base.res_partner_4" />
<field name="partner_invoice_id" ref="base.res_partner_4" />
<field name="partner_shipping_id" ref="base.res_partner_4" />
<field name="user_id" ref="base.user_admin" />
<field
name="date_order"
eval="(DateTime.today() - relativedelta(months=1)).strftime('%Y-%m-%d %H:%M')"
/>
</record>
<record id="sale_order_line_2" model="sale.order.line">
<field name="order_id" ref="sale_order_2" />
<field name="name">Ice Cream B</field>
<field name="product_id" ref="product_icecream_b" />
<field name="product_uom_qty">1.0</field>
<field name="product_uom" ref="uom.product_uom_unit" />
<field name="price_unit">100.00</field>
</record>
</odoo>
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_invoice_production_lot
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.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: account_invoice_production_lot
#: model_terms:ir.ui.view,arch_db:account_invoice_production_lot.account_invoice_production_lot_report
msgid "<b class=\"font-italic\">Serial numbers</b>"
msgstr ""

#. module: account_invoice_production_lot
#: model:product.template,name:account_invoice_production_lot.product_icecream_b_product_template
msgid "Ice Cream B"
msgstr ""

#. module: account_invoice_production_lot
#: model_terms:product.template,description:account_invoice_production_lot.product_icecream_b_product_template
msgid ""
"Ice cream can be mass-produced and thus is widely available in developed "
"parts of the world. Ice cream can be purchased in large cartons (vats and "
"squrounds) from supermarkets and grocery stores, in smaller quantities from "
"ice cream shops, convenience stores, and milk bars, and in individual "
"servings from small carts or vans at public events."
msgstr ""

#. module: account_invoice_production_lot
#: model:ir.model,name:account_invoice_production_lot.model_account_move_line
msgid "Journal Item"
msgstr ""

#. module: account_invoice_production_lot
#: model:ir.model.fields,field_description:account_invoice_production_lot.field_account_move_line__prod_lot_ids
#: model_terms:ir.ui.view,arch_db:account_invoice_production_lot.view_move_form
msgid "Production Lots"
msgstr ""

#. module: account_invoice_production_lot
#: model_terms:ir.ui.view,arch_db:account_invoice_production_lot.account_invoice_production_lot_report
msgid "S/N:"
msgstr ""
56 changes: 56 additions & 0 deletions account_invoice_production_lot/i18n/ar.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_invoice_production_lot
#
# Translators:
# OCA Transbot <[email protected]>, 2018
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-05-10 14:32+0000\n"
"PO-Revision-Date: 2018-05-10 14:32+0000\n"
"Last-Translator: OCA Transbot <[email protected]>, 2018\n"
"Language-Team: Arabic (https://www.transifex.com/oca/teams/23907/ar/)\n"
"Language: ar\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 "
"&& n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n"

#. module: account_invoice_production_lot
#: model_terms:ir.ui.view,arch_db:account_invoice_production_lot.account_invoice_production_lot_report
msgid "<b class=\"font-italic\">Serial numbers</b>"
msgstr ""

#. module: account_invoice_production_lot
#: model:product.template,name:account_invoice_production_lot.product_icecream_b_product_template
msgid "Ice Cream B"
msgstr ""

#. module: account_invoice_production_lot
#: model_terms:product.template,description:account_invoice_production_lot.product_icecream_b_product_template
msgid ""
"Ice cream can be mass-produced and thus is widely available in developed "
"parts of the world. Ice cream can be purchased in large cartons (vats and "
"squrounds) from supermarkets and grocery stores, in smaller quantities from "
"ice cream shops, convenience stores, and milk bars, and in individual "
"servings from small carts or vans at public events."
msgstr ""

#. module: account_invoice_production_lot
#: model:ir.model,name:account_invoice_production_lot.model_account_move_line
msgid "Journal Item"
msgstr ""

#. module: account_invoice_production_lot
#: model:ir.model.fields,field_description:account_invoice_production_lot.field_account_move_line__prod_lot_ids
#: model_terms:ir.ui.view,arch_db:account_invoice_production_lot.view_move_form
msgid "Production Lots"
msgstr ""

#. module: account_invoice_production_lot
#: model_terms:ir.ui.view,arch_db:account_invoice_production_lot.account_invoice_production_lot_report
msgid "S/N:"
msgstr ""
56 changes: 56 additions & 0 deletions account_invoice_production_lot/i18n/bs.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_invoice_production_lot
#
# Translators:
# OCA Transbot <[email protected]>, 2018
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-05-10 14:32+0000\n"
"PO-Revision-Date: 2018-05-10 14:32+0000\n"
"Last-Translator: OCA Transbot <[email protected]>, 2018\n"
"Language-Team: Bosnian (https://www.transifex.com/oca/teams/23907/bs/)\n"
"Language: bs\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"

#. module: account_invoice_production_lot
#: model_terms:ir.ui.view,arch_db:account_invoice_production_lot.account_invoice_production_lot_report
msgid "<b class=\"font-italic\">Serial numbers</b>"
msgstr ""

#. module: account_invoice_production_lot
#: model:product.template,name:account_invoice_production_lot.product_icecream_b_product_template
msgid "Ice Cream B"
msgstr ""

#. module: account_invoice_production_lot
#: model_terms:product.template,description:account_invoice_production_lot.product_icecream_b_product_template
msgid ""
"Ice cream can be mass-produced and thus is widely available in developed "
"parts of the world. Ice cream can be purchased in large cartons (vats and "
"squrounds) from supermarkets and grocery stores, in smaller quantities from "
"ice cream shops, convenience stores, and milk bars, and in individual "
"servings from small carts or vans at public events."
msgstr ""

#. module: account_invoice_production_lot
#: model:ir.model,name:account_invoice_production_lot.model_account_move_line
msgid "Journal Item"
msgstr ""

#. module: account_invoice_production_lot
#: model:ir.model.fields,field_description:account_invoice_production_lot.field_account_move_line__prod_lot_ids
#: model_terms:ir.ui.view,arch_db:account_invoice_production_lot.view_move_form
msgid "Production Lots"
msgstr ""

#. module: account_invoice_production_lot
#: model_terms:ir.ui.view,arch_db:account_invoice_production_lot.account_invoice_production_lot_report
msgid "S/N:"
msgstr ""
Loading
Loading