-
-
Notifications
You must be signed in to change notification settings - Fork 249
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MIG] l10n_br_purchase_stock: Migration to v16
- Loading branch information
Showing
24 changed files
with
231 additions
and
97 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 |
---|---|---|
|
@@ -17,22 +17,43 @@ Brazilian Localization Purchase Stock | |
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html | ||
:alt: License: AGPL-3 | ||
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fl10n--brazil-lightgray.png?logo=github | ||
:target: https://github.com/OCA/l10n-brazil/tree/14.0/l10n_br_purchase_stock | ||
:target: https://github.com/OCA/l10n-brazil/tree/16.0/l10n_br_purchase_stock | ||
:alt: OCA/l10n-brazil | ||
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png | ||
:target: https://translation.odoo-community.org/projects/l10n-brazil-14-0/l10n-brazil-14-0-l10n_br_purchase_stock | ||
:target: https://translation.odoo-community.org/projects/l10n-brazil-16-0/l10n-brazil-16-0-l10n_br_purchase_stock | ||
: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/l10n-brazil&target_branch=14.0 | ||
:target: https://runboat.odoo-community.org/builds?repo=OCA/l10n-brazil&target_branch=16.0 | ||
:alt: Try me on Runboat | ||
|
||
|badge1| |badge2| |badge3| |badge4| |badge5| | ||
|
||
This module extends the standard Odoo purchase module for Brazil, | ||
specially when selling products with NFe's. | ||
|
||
It deals with the propagation of the fiscal operation and allow the creation | ||
of Picking and Invoices generated by a Purchase Order. | ||
O módulo estende o | ||
`l10n_br_stock_account <https://github.com/OCA/l10n-brazil/tree/16.0/l10n_br_stock_account>`__ | ||
para ser usado em **Compras** incluindo a possibilidade de criar a | ||
**Fatura** de um **Pedido de Compra** a partir da **Ordem de | ||
Recebimento/Separação/Seleção/Picking**, ao definir a **Política de | ||
Faturamento de Compras** como: | ||
|
||
- **Pedido de Compra / Purchase Order**, mantém o comportamento padrão e | ||
a criação da Fatura será feita a partir do **Pedido de | ||
Compra/purchase.order** | ||
|
||
- **Ordem de Recebimento/Separação/Seleção / Stock Picking**, desabilita | ||
a criação de Faturas a partir do **Pedido de Compra** para os casos | ||
onde o 'Tipo do Produto' é 'Produto', mas no caso de ser 'Serviço' | ||
ainda será possível criar a partir do **Pedido de Compra** | ||
|
||
A implementação foi feita para que a **Fatura** criada a partir do | ||
**stock.picking** seja a mais similar possível com a que é criada a | ||
partir do **purchase.order**, e ao usar os métodos do módulo | ||
**purchase** para obter os Dados usados na criação de uma nova Fatura | ||
isso também acaba evitando a necessidade de 'glue modules' (pequenos | ||
módulos criados apenas para evitar dependencias indiretas), então | ||
qualquer módulo que inclui um novo campo na **Fatura** criada a partir | ||
do **Pedido de Compra** esse novo campo também deverá ser incluido na | ||
**Fatura** criada a partir do **stock.picking**, por exemplo o módulo | ||
`account_payment_purchase <https://github.com/OCA/bank-payment/tree/16.0/account_payment_purchase>`__. | ||
|
||
**Table of contents** | ||
|
||
|
@@ -42,57 +63,95 @@ of Picking and Invoices generated by a Purchase Order. | |
Installation | ||
============ | ||
|
||
This module depends on: | ||
O módulo depende do: | ||
|
||
* l10n_br_purchase | ||
* l10n_br_stock_account | ||
- l10n_br_purchase | ||
- l10n_br_stock_account | ||
|
||
Configuration | ||
============= | ||
|
||
No configuration required. | ||
Defina a **Politica de Faturamento de Compras**, se a Fatura deverá ser | ||
criada a partir do **Pedido de Compra/purchase.order** ou da **Ordem de | ||
Recebimento/stock.picking** isso pode ser feito em: | ||
|
||
**Definições > Usuários e Empresas > Empresas** selecione a Empresa, vá | ||
na aba **Fiscal** e depois na aba **Compras** | ||
|
||
ou | ||
|
||
**Compras > Configuração > Definições** vá na seção **Faturamento** | ||
|
||
Usage | ||
===== | ||
|
||
Se a **Política de Faturamento de Compras** é definida para **Ordem de | ||
Recebimento/Separação/Seleção / Stock Picking** a criação da **Fatura** | ||
de um **Pedido de Compras** somente será possível a partir da **Ordem de | ||
Recebimento/Separação/Seleção / Stock Picking**, para os casos onde o | ||
'Tipo do Produto' é 'Produto' nos casos onde é 'Serviço' ainda será | ||
possível criar a partir do **Pedido de Compras**, no caso do Pedido ter | ||
tanto Linhas com Produtos e Serviços serão criadas duas Faturas. | ||
|
||
Known issues / Roadmap | ||
====================== | ||
|
||
|
||
|
||
Changelog | ||
========= | ||
|
||
16.0.1.0.0 (2025-01-22) | ||
----------------------- | ||
|
||
- [MIG] Migração para a v16 | ||
|
||
14.0.1.0.0 (2022-09-16) | ||
----------------------- | ||
|
||
- [MIG] Migração para a v14 | ||
|
||
12.0.1.0.0 (2020-04-27) | ||
~~~~~~~~~~~~~~~~~~~~~~~ | ||
----------------------- | ||
|
||
* Split l10n_br_purchase module in two l10n_br_purchase and l10n_br_purchase_stock. | ||
- [REF] Separado o módulo l10n_br_purchase em dois l10n_br_purchase e | ||
l10n_br_purchase_stock. | ||
|
||
Bug Tracker | ||
=========== | ||
|
||
Bugs are tracked on `GitHub Issues <https://github.com/OCA/l10n-brazil/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/l10n-brazil/issues/new?body=module:%20l10n_br_purchase_stock%0Aversion:%2014.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_. | ||
`feedback <https://github.com/OCA/l10n-brazil/issues/new?body=module:%20l10n_br_purchase_stock%0Aversion:%2016.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 | ||
~~~~~~~ | ||
------- | ||
|
||
* Akretion | ||
|
||
Contributors | ||
~~~~~~~~~~~~ | ||
------------ | ||
|
||
- `Akretion <https://www.akretion.com/pt-BR>`__: | ||
|
||
* Renato Lima <[email protected]> | ||
* Magno Costa <[email protected]> | ||
- Renato Lima <[email protected]> | ||
- Magno Costa <[email protected]> | ||
|
||
Other credits | ||
~~~~~~~~~~~~~ | ||
------------- | ||
|
||
The development of this module has been financially supported by: | ||
|
||
* AKRETION LTDA - www.akretion.com | ||
- AKRETION LTDA - `www.akretion.com <http://www.akretion.com>`__ | ||
|
||
Maintainers | ||
~~~~~~~~~~~ | ||
----------- | ||
|
||
This module is maintained by the OCA. | ||
|
||
|
@@ -115,6 +174,6 @@ Current `maintainers <https://odoo-community.org/page/maintainer-role>`__: | |
|
||
|maintainer-renatonlima| |maintainer-mbcosta| | ||
|
||
This module is part of the `OCA/l10n-brazil <https://github.com/OCA/l10n-brazil/tree/14.0/l10n_br_purchase_stock>`_ project on GitHub. | ||
This module is part of the `OCA/l10n-brazil <https://github.com/OCA/l10n-brazil/tree/16.0/l10n_br_purchase_stock>`_ project on GitHub. | ||
|
||
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/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
16 changes: 0 additions & 16 deletions
16
l10n_br_purchase_stock/migrations/14.0.2.0.0/pre-migration.py
This file was deleted.
Oops, something went wrong.
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
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 @@ | ||
[build-system] | ||
requires = ["whool"] | ||
build-backend = "whool.buildapi" |
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,8 @@ | ||
Defina a **Politica de Faturamento de Compras**, se a Fatura deverá ser criada a partir do **Pedido de Compra/purchase.order** ou da **Ordem de Recebimento/stock.picking** | ||
isso pode ser feito em: | ||
|
||
**Definições > Usuários e Empresas > Empresas** selecione a Empresa, vá na aba **Fiscal** e depois na aba **Compras** | ||
|
||
ou | ||
|
||
**Compras > Configuração > Definições** vá na seção **Faturamento** |
This file was deleted.
Oops, something went wrong.
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 @@ | ||
- [Akretion](https://www.akretion.com/pt-BR): | ||
- Renato Lima \<<[email protected]>\> | ||
- Magno Costa \<<[email protected]>\> |
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
l10n_br_purchase_stock/readme/CREDITS.rst → l10n_br_purchase_stock/readme/CREDITS.md
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
The development of this module has been financially supported by: | ||
|
||
* AKRETION LTDA - www.akretion.com | ||
- AKRETION LTDA - www.akretion.com |
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,7 @@ | ||
O módulo estende o [l10n_br_stock_account](https://github.com/OCA/l10n-brazil/tree/16.0/l10n_br_stock_account) para ser usado em **Compras** incluindo a possibilidade de criar a **Fatura** de um **Pedido de Compra** a partir da **Ordem de Recebimento/Separação/Seleção/Picking**, ao definir a **Política de Faturamento de Compras** como: | ||
|
||
* **Pedido de Compra / Purchase Order**, mantém o comportamento padrão e a criação da Fatura será feita a partir do **Pedido de Compra/purchase.order** | ||
|
||
* **Ordem de Recebimento/Separação/Seleção / Stock Picking**, desabilita a criação de Faturas a partir do **Pedido de Compra** para os casos onde o 'Tipo do Produto' é 'Produto', mas no caso de ser 'Serviço' ainda será possível criar a partir do **Pedido de Compra** | ||
|
||
A implementação foi feita para que a **Fatura** criada a partir do **stock.picking** seja a mais similar possível com a que é criada a partir do **purchase.order**, e ao usar os métodos do módulo **purchase** para obter os Dados usados na criação de uma nova Fatura isso também acaba evitando a necessidade de 'glue modules' (pequenos módulos criados apenas para evitar dependencias indiretas), então qualquer módulo que inclui um novo campo na **Fatura** criada a partir do **Pedido de Compra** esse novo campo também deverá ser incluido na **Fatura** criada a partir do **stock.picking**, por exemplo o módulo [account_payment_purchase](https://github.com/OCA/bank-payment/tree/16.0/account_payment_purchase). |
This file was deleted.
Oops, something went wrong.
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,12 @@ | ||
## 16.0.1.0.0 (2025-01-22) | ||
|
||
- \[MIG\] Migração para a v16 | ||
|
||
## 14.0.1.0.0 (2022-09-16) | ||
|
||
- \[MIG\] Migração para a v14 | ||
|
||
## 12.0.1.0.0 (2020-04-27) | ||
|
||
- \[REF\] Separado o módulo l10n_br_purchase em dois l10n_br_purchase e | ||
l10n_br_purchase_stock. |
This file was deleted.
Oops, something went wrong.
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 @@ | ||
O módulo depende do: | ||
|
||
- l10n_br_purchase | ||
- l10n_br_stock_account |
This file was deleted.
Oops, something went wrong.
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 @@ | ||
|
Empty file.
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 @@ | ||
Se a **Política de Faturamento de Compras** é definida para **Ordem de Recebimento/Separação/Seleção / Stock Picking** a criação da **Fatura** de um **Pedido de Compras** somente será possível a partir da **Ordem de Recebimento/Separação/Seleção / Stock Picking**, para os casos onde o 'Tipo do Produto' é 'Produto' nos casos onde é 'Serviço' ainda será possível criar a partir do **Pedido de Compras**, no caso do Pedido ter tanto Linhas com Produtos e Serviços serão criadas duas Faturas. |
Empty file.
Oops, something went wrong.