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

[16.0][MIG] l10n_br_purchase_stock: Migração para a v16 #3595

Merged
merged 135 commits into from
Jan 24, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
135 commits
Select commit Hold shift + click to select a range
7c8ac69
[MIGR] split l10n_br_purchase, l10n_br_purchase_stock
renatonlima Dec 12, 2019
67f03ea
[MIGR] moved procure.group from l10n_br_purchase to l10n_br_purchase_…
renatonlima Dec 12, 2019
07c2f62
[MIGR] l10n_br_purchase_stock
renatonlima Dec 12, 2019
0aa84df
pep8
renatonlima Apr 25, 2020
5b9c2ab
[FIX] l10n_br_purchase_stock dependecy
renatonlima Apr 25, 2020
15bcd8f
Mark l10n_br_purchase_stock as installable=False
renatonlima Apr 25, 2020
6d6f5f5
Update readme files
renatonlima Apr 27, 2020
eaa9393
Update l10n_br_purchase_stock
renatonlima May 29, 2020
87de0ea
[MIGR] l10n_br_purchase_stock
renatonlima May 29, 2020
2f68153
[MIGR] l10n_br_purchase_stock
renatonlima Jun 1, 2020
b37aafa
Remove procurement file
renatonlima Jun 14, 2020
28d47ba
[REF] l10n_br_purchase_stock
renatonlima Oct 20, 2020
6ab8778
[FIX] demo data
renatonlima Oct 20, 2020
24e20f7
[FIX] l10n_br_purchase_stock tests
renatonlima Oct 21, 2020
6c3ed3f
[REF] Update l10n_br_purchase_stock
renatonlima Nov 11, 2020
45835f5
l10n_br_purchase: faster tests: tracking_disable + SavepointCase
rvalyi Nov 12, 2020
525bfe3
[MIGR] moved procure.group from l10n_br_purchase to l10n_br_purchase_…
renatonlima Dec 12, 2019
2f5b786
[MIGR] l10n_br_purchase_stock
renatonlima Dec 12, 2019
fa11a36
pep8
renatonlima Apr 25, 2020
1f558e6
Update l10n_br_purchase_stock
renatonlima May 29, 2020
876c920
[MIGR] l10n_br_purchase_stock
renatonlima Jun 1, 2020
d2341de
Remove procurement file
renatonlima Jun 14, 2020
8bb7d02
flake8+pylint
rvalyi Jan 19, 2021
b5338a5
[ADD] purchase create invoice policy
renatonlima Feb 1, 2021
d197c5b
[ADD] purchase create invoice policy views
renatonlima Feb 1, 2021
ac82c72
[REF] added purchase create invoice policy
renatonlima Feb 1, 2021
ea14472
re-sync'ed .po translation files
rvalyi Feb 2, 2021
b854529
[UPD] Update l10n_br_purchase_stock.pot
oca-travis Feb 2, 2021
ba47b15
[UPD] README.rst
OCA-git-bot Feb 2, 2021
e5e0893
[FIX] purchase config view
renatonlima Feb 2, 2021
eaff258
l10n_br_purchase_stock 12.0.1.1.0
OCA-git-bot Feb 2, 2021
e3e1415
[FIX] Inform picking invoice state.
mbcosta Mar 1, 2021
5ce20a9
[FIX] Not grouping purchase lines and inform purchase line in invoice…
mbcosta Mar 2, 2021
4192856
[FIX] Price Unit in created invoice line should be the same informed …
mbcosta Mar 2, 2021
1540b86
[IMP] Demo data, grouping pickings.
mbcosta Mar 2, 2021
dd85c7b
[IMP] Tests, grouping pickings and price unit in created invoice.
mbcosta Mar 2, 2021
f5afc01
added Magno Costa <[email protected]> contributor
rvalyi Mar 5, 2021
3a11537
[UPD] Update l10n_br_purchase_stock.pot
oca-travis Mar 6, 2021
ab7033b
[UPD] README.rst
OCA-git-bot Mar 6, 2021
72807b0
[FIX] Check fields used to mapping Fiscal values in the tests.
mbcosta Mar 11, 2021
38fa886
[IMP] Test devolution picking process.
mbcosta Mar 15, 2021
c566b53
[REF] Remove unnecessary field definition and included field for defi…
mbcosta Mar 15, 2021
1c03489
[UPD] Update l10n_br_purchase_stock.pot
oca-travis Mar 16, 2021
847f6cb
l10n_br_purchase_stock 12.0.1.2.0
OCA-git-bot Mar 16, 2021
d71692f
[FIX] Tests, after devolution picking the qty_invoiced should be zero.
mbcosta Mar 24, 2021
3c557a6
l10n_br_purchase_stock 12.0.1.3.0
OCA-git-bot Mar 24, 2021
a8e563c
Update demo data
renatonlima Mar 8, 2021
5337baa
l10n_br_purchase_stock: rename costs_value to other_value
renatonlima Mar 10, 2021
cdb8689
l10n_br_purchase_stock 12.0.2.0.0
OCA-git-bot Mar 26, 2021
3a5e303
remove useless default @api.multi
rvalyi May 16, 2021
479c6a8
lint: sed -i 's/assertEquals/assertEqual/g'
rvalyi May 25, 2021
0c4b140
[REF] Standard OCA website l10n_br_purchase_stock
mileo May 30, 2021
5d794cd
[IMP] l10n_br_purchase_stock: black, isort, prettier
rvalyi Jun 7, 2021
3996fb3
[UPD] Update l10n_br_purchase_stock.pot
oca-travis Jun 12, 2021
cc0d503
update priority to parent l10n_br_purchase change
rvalyi Jun 12, 2021
f3abcf0
[fix] manual additional data in views and demo
antoniospneto Jul 27, 2021
fc492e5
l10n_br_purchase_stock 12.0.2.1.0
OCA-git-bot Jul 27, 2021
fd5dc07
[FIX] Typo in 'purchase_create_invoice_policy' field parameter
hirokibastos Mar 17, 2022
a13167e
[UPD] Update l10n_br_purchase_stock.pot
oca-travis Mar 17, 2022
b4c9724
l10n_br_purchase_stock 12.0.2.1.1
OCA-git-bot Mar 17, 2022
569793c
[MIG] l10n_br_purchase_stock: Migration to 13.0
renatonlima Jun 5, 2022
454a285
change '.env.user.company_id' to '.env.company'
renatonlima Jun 5, 2022
fa480c8
[IMP] l10n_br_purchase_stock: pre-commit execution
renatonlima Jun 5, 2022
9a78fca
[MIG] l10n_br_purchase_stock: Migration to 14.0
renatonlima Jun 5, 2022
c69f8c9
[FIX] l10n_br_purchase_stock: fix purchase_order_view_form
marcelsavegnago Jul 13, 2022
2602db7
[MIG] l10n_br_purchase_stock: change payment_term_id to invoice_payme…
marcelsavegnago Jul 22, 2022
bb81423
[MIG] l10n_br_purchase_stock: refactor action_view_invoice invisible …
marcelsavegnago Jul 22, 2022
44993e7
[MIG] l10n_br_purchase_stock: refactor stock.rule _run_buy method
marcelsavegnago Aug 2, 2022
7dd2efb
[MIG] l10n_br_purchase_stock: Tests.
mbcosta Sep 15, 2022
8b8ed27
[REF] l10n_br_purchase_stock: Unnecessary inform parameter Selection …
mbcosta Sep 15, 2022
5372beb
[MIG] l10n_br_purchase_stock: Since v14 the inherit method always ret…
mbcosta Sep 16, 2022
fafa984
[IMP] l10n_br_purchase_stock: Demo data and test the case of 'Lucro P…
mbcosta Sep 16, 2022
e001ac4
[UPD] Update l10n_br_purchase_stock.pot
Sep 16, 2022
e7ce104
[UPD] README.rst
OCA-git-bot Sep 16, 2022
df5275c
[REF] do not import tests l10n_br_purchase_stock
mileo Oct 21, 2022
3532af3
[REF] Context better using kwargs l10n_br_purchase_stock
mileo Oct 21, 2022
1f015df
[REF] attribute-string-redundant l10n_br_purchase_stock
mileo Oct 21, 2022
b7537b9
l10n_br_purchase_stock 14.0.1.0.1
OCA-git-bot Oct 22, 2022
10b0ede
[REF] missing-return l10n_br_purchase_stock
mileo Oct 22, 2022
fbd9ae7
l10n_br_purchase_stock 14.0.1.0.2
OCA-git-bot Oct 22, 2022
872aa2c
Translated using Weblate (Portuguese (Brazil))
marcelsavegnago Jan 7, 2023
db4a004
Translated using Weblate (Portuguese (Brazil))
marcelsavegnago Mar 29, 2023
d689f73
[FIX] force partner issuer to prevent NFe gen
rvalyi Apr 5, 2023
c7eb520
l10n_br_purchase_stock 14.0.1.0.3
OCA-git-bot Apr 10, 2023
5ed8130
[UPD] README.rst
OCA-git-bot Sep 3, 2023
a2f9bf6
[REF] l10n_br_purchase_stock: Demo Data avoid error when MRP module a…
mbcosta Sep 9, 2023
4f7d39f
l10n_br_purchase_stock 14.0.1.0.4
OCA-git-bot Sep 9, 2023
4e5a927
[UPD] README.rst
OCA-git-bot Sep 9, 2023
d293bbe
Update translation files
weblate Oct 9, 2023
5c8eb98
[FIX] l10n_br_purchase_stock: Method to get values for create Purchas…
mbcosta Nov 7, 2023
df0f722
[IMP] l10n_br_purchase_stock: Included test for stock rule and creati…
mbcosta Nov 7, 2023
b79355a
[BOT] post-merge updates
OCA-git-bot Nov 11, 2023
9a06f40
[IMP] l10n_br_purchase_stock: get analytic account and analytic tags …
marcelsavegnago Nov 23, 2023
2abb0e2
[FIX] l10n_br_purchase_stock: Let button to access Invoices always vi…
mbcosta Sep 26, 2023
1bec95a
[REF] l10n_br_purchase_stock: Included methods to simplify the tests …
mbcosta Sep 25, 2023
7106ffc
[IMP] l10n_br_purchase_stock: Included Demo Data and Test for case of…
mbcosta Sep 27, 2023
c7b719a
[BOT] post-merge updates
OCA-git-bot Nov 25, 2023
03f9c2d
[REF] l10n_br_purchase_stock: Tests, necessary increase the Minimum Q…
mbcosta Nov 25, 2023
c22cd41
[BOT] post-merge updates
OCA-git-bot Dec 1, 2023
6c59e0f
[UPD] Update l10n_br_purchase_stock.pot
Jan 16, 2024
80e9594
[BOT] post-merge updates
OCA-git-bot Jan 16, 2024
30f0b2d
Update translation files
weblate Jan 16, 2024
9951d5b
[REF] l10n_br_purchase_stock: Remove unnecessary onchanges in Demo Data.
mbcosta Jan 18, 2024
c2178f4
[BOT] post-merge updates
OCA-git-bot Jan 19, 2024
0ad01be
Translated using Weblate (Portuguese (Brazil))
marcelsavegnago Feb 22, 2024
cec5523
Translated using Weblate (Portuguese (Brazil))
May 20, 2024
295a9cf
Translated using Weblate (Portuguese (Brazil))
May 20, 2024
f71ecf9
[REF+IMP] l10n_br_purchase_stock: Use Common Tests from l10n_br_stock…
mbcosta Jun 28, 2024
55163dc
[REF] l10n_br_purchase_stock: Just call method to Prepare BR Fiscal D…
mbcosta Jun 28, 2024
6f341d8
[REF] l10n_br_purchase_stock: Demo Data, Purchase Orders inform ind_f…
mbcosta Jun 28, 2024
dc87741
[REF] l10n_br_purchase_stock: Unnecessary call methods because _oncha…
mbcosta Jun 28, 2024
a369266
[BOT] post-merge updates
OCA-git-bot Aug 15, 2024
185964d
[BOT] post-merge updates
OCA-git-bot Aug 15, 2024
c328e16
[BOT] post-merge updates
OCA-git-bot Aug 15, 2024
ae30471
[BOT] post-merge updates
OCA-git-bot Aug 15, 2024
bfe4951
[REF] l10n_br_purchase_stock: Unnecessary License Header in init file…
mbcosta Jun 28, 2024
4aea980
[REF] l10n_br_purchase_stock: Rename field 'purchase_create_invoice_p…
mbcosta Jun 28, 2024
0b39b69
[UPD] Update l10n_br_purchase_stock.pot
Aug 16, 2024
04fa239
[BOT] post-merge updates
OCA-git-bot Aug 16, 2024
5bd1149
Update translation files
weblate Aug 16, 2024
86af62e
[IMP] set picking fop at creation from PO
DiegoParadeda Aug 16, 2024
c9111c0
[BOT] post-merge updates
OCA-git-bot Aug 18, 2024
58fa1e4
[IMP] l10n_br_purchase_stock: avoid glue modules
mbcosta Aug 22, 2024
ebb361b
[IMP] l10n_br_purchase_stock: Line Section/Note
mbcosta Aug 22, 2024
2c80afc
[BOT] post-merge updates
OCA-git-bot Aug 25, 2024
dc5cbbc
[REF] pre-commit changes
antoniospneto Sep 8, 2024
e1891c2
[BOT] post-merge updates
OCA-git-bot Sep 18, 2024
f7d5f76
[IMP] l10n_br_purchase_stock: partner_id tests
mbcosta Jan 9, 2024
f6cae61
[BOT] post-merge updates
OCA-git-bot Sep 26, 2024
78dad75
[FIX] l10n_br_purchase_stock: Get Default OP Fiscal
mbcosta Aug 29, 2024
74dedf9
[IMP] l10n_br_purchase_stock: Test Default OP Fiscal
mbcosta Aug 29, 2024
dece250
[UPD] Update l10n_br_purchase_stock.pot
Oct 3, 2024
a99d975
[BOT] post-merge updates
OCA-git-bot Oct 4, 2024
aa68498
Update translation files
weblate Oct 4, 2024
37b8197
[MIG] l10n_br_purchase_stock: Migration to v16
mbcosta Jan 22, 2025
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
193 changes: 193 additions & 0 deletions l10n_br_purchase_stock/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,193 @@
=====================================
Brazilian Localization Purchase Stock
=====================================

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

.. |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%2Fl10n--brazil-lightgray.png?logo=github
: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-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=16.0
:alt: Try me on Runboat

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

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/Stock
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 / 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 quando qualquer módulo
incluir 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**

.. contents::
:local:

Installation
============

O módulo depende do:

- l10n_br_purchase
- l10n_br_stock_account

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

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, aba
**Fiscal** e depois na aba **Compras**

ou

**Compras > Configuração > Definições** Na seção **Faturamento**

Usage
=====

Se a **Política de Faturamento de Compras** estiver definida como
**Ordem de Recebimento/Stock Picking** é possível criar tanto uma Fatura
para uma Ordem de Recebimento quanto uma Fatura para diversas Ordens de
Recebimentos:

- Caso uma Fatura para uma Ordem de Recebimento

Na **Ordem de Recebimento**, referente ao **Pedido de Compra**, depois
de **Validar** essa Ordem deverá aparecer o botão **Criar Fatura** onde
ao clicar será possível criar a Fatura, nesse caso o campo **Grupo**
estará **Coleta**.

- Caso uma Fatura para diversas Ordens de Recebimento

Por estender o **l10n_br_stock_account** é possível criar uma **Fatura
Agrupada**, para isso é preciso ir na 'Visão Lista/Tree View' selecionar
as **Ordens de Recebimentos**, criadas a partir de diversos **Pedidos de
Compras** e que possuem o mesmo **Parceiro/Fornecedor**, clicar no botão
**Ação** em seguida **Criar rascunho das faturas** e no campo **Grupo**
selecionar **Parceiro** para assim criar apenas uma Fatura ou seja N
Pedidos de Compras com N Ordens de Recebimento de um mesmo Fornecedor
podem ter apenas uma Fatura/Documento Fiscal relacionado.

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)
-----------------------

- [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:%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]>

Other credits
-------------

The development of this module has been financially supported by:

- AKRETION LTDA - `www.akretion.com <http://www.akretion.com>`__

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.

.. |maintainer-renatonlima| image:: https://github.com/renatonlima.png?size=40px
:target: https://github.com/renatonlima
:alt: renatonlima
.. |maintainer-mbcosta| image:: https://github.com/mbcosta.png?size=40px
:target: https://github.com/mbcosta
:alt: mbcosta

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/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.
5 changes: 5 additions & 0 deletions l10n_br_purchase_stock/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Copyright (C) 2009 Renato Lima - Akretion
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html

from . import models
from . import wizards
27 changes: 27 additions & 0 deletions l10n_br_purchase_stock/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Copyright (C) 2009 Renato Lima - Akretion
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html

{
"name": "Brazilian Localization Purchase Stock",
"license": "AGPL-3",
"category": "Localisation",
"author": "Akretion, Odoo Community Association (OCA)",
"maintainers": ["renatonlima", "mbcosta"],
"website": "https://github.com/OCA/l10n-brazil",
"version": "16.0.1.0.0",
"depends": [
"l10n_br_purchase",
"l10n_br_stock_account",
],
"data": [
# Views
"views/purchase_order.xml",
"views/res_config_settings.xml",
"views/res_company_view.xml",
],
"demo": [
"demo/purchase_order.xml",
],
"installable": True,
"auto_install": True,
}
Loading
Loading