-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #56 from Escodoo/14.0-add-egd_stock_picking_invoic…
…ing_custom [14.0][ADD] egd_stock_picking_invoicing_custom: add new module
- Loading branch information
Showing
17 changed files
with
672 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
================================== | ||
EGD Stock Picking Invoicing Custom | ||
================================== | ||
|
||
.. | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!! This file is generated by oca-gen-addon-readme !! | ||
!! changes will be overwritten. !! | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!! source digest: sha256:5a949ea2c891592065844c529a4abf6bbe1439a03a1fcc7ee3e41f306de95c4b | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
.. |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-Escodoo%2Fegd--addons-lightgray.png?logo=github | ||
:target: https://github.com/Escodoo/egd-addons/tree/14.0/egd_stock_picking_invoicing_custom | ||
:alt: Escodoo/egd-addons | ||
|
||
|badge1| |badge2| |badge3| | ||
|
||
This module customizes the stock picking invoicing process by introducing a **Production Date** field in Sales Orders and Invoice. | ||
|
||
When a Sales Order is invoiced, the **Production Date** is transferred to the invoice. Upon confirming the invoice, the analytical line dates are automatically updated to reflect the configured **Production Date**. | ||
|
||
**Table of contents** | ||
|
||
.. contents:: | ||
:local: | ||
|
||
Usage | ||
===== | ||
|
||
1. Create an invoice from the Sales Order. | ||
2. Select a **Production Date** in the Sales Order. | ||
3. Confirm the invoice to automatically update analytical line dates based on the Production Date. | ||
|
||
Bug Tracker | ||
=========== | ||
|
||
Bugs are tracked on `GitHub Issues <https://github.com/Escodoo/egd-addons/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/Escodoo/egd-addons/issues/new?body=module:%20egd_stock_picking_invoicing_custom%0Aversion:%2014.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 | ||
~~~~~~~ | ||
|
||
* Escodoo | ||
|
||
Contributors | ||
~~~~~~~~~~~~ | ||
|
||
* `Escodoo <https://www.escodoo.com.br>`_: | ||
|
||
* Marcel Savegnago <[email protected]> | ||
* Kaynnan Lemes <[email protected]> | ||
|
||
Maintainers | ||
~~~~~~~~~~~ | ||
|
||
This module is part of the `Escodoo/egd-addons <https://github.com/Escodoo/egd-addons/tree/14.0/egd_stock_picking_invoicing_custom>`_ project on GitHub. | ||
|
||
You are welcome to contribute. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
from . import models | ||
from . import wizards |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Copyright 2024 - TODAY, Escodoo | ||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). | ||
|
||
{ | ||
"name": "EGD Stock Picking Invoicing Custom", | ||
"summary": """ | ||
EGD Stock Picking Invoicing Custom""", | ||
"version": "14.0.1.0.0", | ||
"license": "AGPL-3", | ||
"author": "Escodoo", | ||
"website": "https://github.com/Escodoo/egd-addons", | ||
"depends": ["stock_picking_invoicing"], | ||
"data": [ | ||
"views/account_move.xml", | ||
"wizards/stock_invoice_onshipping.xml", | ||
], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | ||
# * egd_stock_picking_invoicing_custom | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 14.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2024-11-19 18:08+0000\n" | ||
"PO-Revision-Date: 2024-11-19 15:08-0300\n" | ||
"Last-Translator: \n" | ||
"Language-Team: \n" | ||
"Language: pt_BR\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 3.4.4\n" | ||
|
||
#. module: egd_stock_picking_invoicing_custom | ||
#: model:ir.model.fields,field_description:egd_stock_picking_invoicing_custom.field_account_move__display_name | ||
#: model:ir.model.fields,field_description:egd_stock_picking_invoicing_custom.field_stock_invoice_onshipping__display_name | ||
msgid "Display Name" | ||
msgstr "Nome Exibido" | ||
|
||
#. module: egd_stock_picking_invoicing_custom | ||
#: model:ir.model.fields,field_description:egd_stock_picking_invoicing_custom.field_account_move__id | ||
#: model:ir.model.fields,field_description:egd_stock_picking_invoicing_custom.field_stock_invoice_onshipping__id | ||
msgid "ID" | ||
msgstr "" | ||
|
||
#. module: egd_stock_picking_invoicing_custom | ||
#: model:ir.model,name:egd_stock_picking_invoicing_custom.model_account_move | ||
msgid "Journal Entry" | ||
msgstr "Lançamento de Diário" | ||
|
||
#. module: egd_stock_picking_invoicing_custom | ||
#: model:ir.model.fields,field_description:egd_stock_picking_invoicing_custom.field_account_move____last_update | ||
#: model:ir.model.fields,field_description:egd_stock_picking_invoicing_custom.field_stock_invoice_onshipping____last_update | ||
msgid "Last Modified on" | ||
msgstr "Última Modificação em" | ||
|
||
#. module: egd_stock_picking_invoicing_custom | ||
#: model:ir.model.fields,field_description:egd_stock_picking_invoicing_custom.field_account_bank_statement_line__production_date | ||
#: model:ir.model.fields,field_description:egd_stock_picking_invoicing_custom.field_account_move__production_date | ||
#: model:ir.model.fields,field_description:egd_stock_picking_invoicing_custom.field_account_payment__production_date | ||
#: model:ir.model.fields,field_description:egd_stock_picking_invoicing_custom.field_stock_invoice_onshipping__production_date | ||
#: model_terms:ir.ui.view,arch_db:egd_stock_picking_invoicing_custom.account_move_form_view | ||
#: model_terms:ir.ui.view,arch_db:egd_stock_picking_invoicing_custom.stock_invoice_onshipping_form_view | ||
msgid "Production Date" | ||
msgstr "Data de Produção" | ||
|
||
#. module: egd_stock_picking_invoicing_custom | ||
#: model:ir.model,name:egd_stock_picking_invoicing_custom.model_stock_invoice_onshipping | ||
msgid "Stock Invoice Onshipping" | ||
msgstr "Faturamento ao Enviar" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from . import account_move |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Copyright 2024 - TODAY, Kaynnan Lemes <[email protected]> | ||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). | ||
|
||
from odoo import fields, models | ||
|
||
|
||
class AccountMove(models.Model): | ||
|
||
_inherit = "account.move" | ||
|
||
production_date = fields.Date(string="Production Date", readonly=True) | ||
|
||
def action_post(self): | ||
res = super().action_post() | ||
for move in self: | ||
if move.production_date: | ||
move.line_ids.analytic_line_ids.write({"date": move.production_date}) | ||
return res |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
* `Escodoo <https://www.escodoo.com.br>`_: | ||
|
||
* Marcel Savegnago <[email protected]> | ||
* Kaynnan Lemes <[email protected]> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
This module customizes the stock picking invoicing process by introducing a **Production Date** field in Sales Orders and Invoice. | ||
|
||
When a Sales Order is invoiced, the **Production Date** is transferred to the invoice. Upon confirming the invoice, the analytical line dates are automatically updated to reflect the configured **Production Date**. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
1. Create an invoice from the Sales Order. | ||
2. Select a **Production Date** in the Sales Order. | ||
3. Confirm the invoice to automatically update analytical line dates based on the Production Date. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.