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

[10.0] Merge odoo brazil wip/l10n br base #542

Closed
wants to merge 100 commits into from

Conversation

rvalyi
Copy link
Member

@rvalyi rvalyi commented Jun 6, 2017

see here for the extraction script #529 (comment)

yk2kus and others added 30 commits December 12, 2016 14:17
Copy link
Member Author

@rvalyi rvalyi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

l10n_br_base should not depend on the product module, the code related to product should go in the l10n_br_product or l10n_br_account_product module instead

copy_views dependence module should make it in OCA/server-tools instead. I'm analyzing the concept though...

'base_setup',
'decimal_precision',
'product',
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

l10n_br_base should not depend on the product module, the code related to product should go in the l10n_br_product module instead

'views/sped_produto_produto_view.xml',
'views/sped_unidade_produto_view.xml',
'views/sped_produto_servico_view.xml',
'views/sped_unidade_servico_view.xml',
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

l10n_br_base should not depend on the product module, the code related to product should go in the l10n_br_product module instead

#
from . import sped_produto
from . import inherited_product_template
from . import inherited_product_product
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

l10n_br_base should not depend on the product module, the code related to product should go in the l10n_br_product module instead

Copy link
Member Author

@rvalyi rvalyi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

more code that should be part of the l10n_br_base module

format_date,
format_tz,
)
from ..constante_tributaria import *
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is for the SPED or product based NFE, this should hence go to the l10n_br_account_product module instead

#
from . import copied_account_payment_term
from . import copied_account_payment_term_line
from . import inherited_account_payment_term
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this code is dependent on the account module, it should go in the l10n_br_account module or even more terminal modules instead

# Unidade é requisito para NCM e produtos
#
from . import sped_unidade
from . import inherited_product_uom
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

again, this code is dependent on the product module and shoudl go to the l10n_br_product module instead at least

@rvalyi
Copy link
Member Author

rvalyi commented Jun 9, 2017

Hello contributors: so aside from my previous comments, I also identified the messy commit who lost the original files history and fuck the merge-ability of your WIP branch into the OCA:

First here is a list of the commits around the problem:

commit 9685798bc47b6168d80a5d8042070b75c60faa48
Author: Ari Caldeira <aristides.caldeira@tauga.com.br>
Date:   Mon Apr 10 15:31:12 2017 -0300

    [FEA] Movendo mais models para o base
rvalyi@rvalyi-laptop:~/DEV/OCA/l10n-brazil/wip-10$ git log | grep 6aef1aa1c9cdc4eb1445f5a016763f29f159aab7 -A20 -B20
    [FIX] Mais pylint

commit 3cf6e8d91ccbea4c2b87fac3c9738ebc2adac7b3
Author: Ari Caldeira <aristides.caldeira@tauga.com.br>
Date:   Sat Apr 22 10:49:24 2017 -0300

    [FIX] Mais pylint

commit 2f2385d8dfe3ca82598d557d3e70ef7f9aeb15ee
Author: Ari Caldeira <aristides.caldeira@tauga.com.br>
Date:   Sat Apr 22 10:47:53 2017 -0300

    [FIX] Erros e avisos pylint

commit 5c36864848ad49bed4c2f3ea47422b6390f84b6d
Author: Ari Caldeira <aristides.caldeira@tauga.com.br>
Date:   Sat Apr 22 09:14:21 2017 -0300

    [FEA] Movendo template de email para base

commit 6aef1aa1c9cdc4eb1445f5a016763f29f159aab7
Author: Ari Caldeira <aristides.caldeira@tauga.com.br>
Date:   Fri Apr 21 08:35:52 2017 -0300

    [FIX] Limpeza após rebase
    [FIX] Cópia de views agora mantém sincronia no caso de herança
    [FEA] Empresa movido para l10n_br_base
    [FEA] CNAE movido para sped

commit ae5f89c9040881bce627ad105cf330c96f2ff875
Merge: 9685798 1a35c41
Author: Ari Caldeira <aristides.caldeira@tauga.com.br>
Date:   Wed Apr 19 09:04:34 2017 -0300

    Merge branch '10.0-develop' of github.com:aricaldeira/l10n-brazil-wip into 10.0-develop

commit 9685798bc47b6168d80a5d8042070b75c60faa48
Author: Ari Caldeira <aristides.caldeira@tauga.com.br>
Date:   Mon Apr 10 15:31:12 2017 -0300

    [FEA] Movendo mais models para o base

The last correct commit is commit 9685798 "[FEA] Movendo mais models para o base" from @aricaldeira is OK:

all OCA original files of the l10n_br_base module are here:
https://github.com/odoo-brazil/l10n-brazil-wip/tree/9685798bc47b6168d80a5d8042070b75c60faa48/l10n_br_base/models

examples of proper history being kept:
https://github.com/odoo-brazil/l10n-brazil-wip/commits/9685798bc47b6168d80a5d8042070b75c60faa48/l10n_br_base/models/res_partner.py
https://github.com/odoo-brazil/l10n-brazil-wip/commits/9685798bc47b6168d80a5d8042070b75c60faa48/l10n_br_base/models/res_company.py
https://github.com/odoo-brazil/l10n-brazil-wip/commits/9685798bc47b6168d80a5d8042070b75c60faa48/l10n_br_base/views/res_partner_view.xml

But next commit 6aef1aa "[FIX] Limpeza após rebase" from @aricaldeira is KO:

original files aren't here anymore:
https://github.com/odoo-brazil/l10n-brazil-wip/tree/6aef1aa1c9cdc4eb1445f5a016763f29f159aab7/l10n_br_base/models

they are moved to the backup directory:
https://github.com/odoo-brazil/l10n-brazil-wip/tree/6aef1aa1c9cdc4eb1445f5a016763f29f159aab7/l10n_br_base/models/backup

But in a way that lost the history:

example: https://github.com/odoo-brazil/l10n-brazil-wip/commits/6aef1aa1c9cdc4eb1445f5a016763f29f159aab7/l10n_br_base/models/backup/res_partner.py

history of view files is lost too:
https://github.com/odoo-brazil/l10n-brazil-wip/commits/6aef1aa1c9cdc4eb1445f5a016763f29f159aab7/l10n_br_base/views/backup/res_partner_view.xml

I'll now do some git-filter branch magic to restore the files into the WIP branch history and make a PR against the WIP branch to restore the OCA merge-ability. Next we will still have a lot of work to achieve the merge but at least we will be back on track again.

cc @renatonlima @mileo @mbcosta @aricaldeira

@mbcosta
Copy link
Contributor

mbcosta commented Jun 9, 2017

Hi all,
I did this https://docs.google.com/spreadsheets/d/1EVTWXOW6c6gkJ_JyLTZSj4BJRr5u_MdehuwZ4EhX9D4/edit#gid=0 comparative analisys of the OCA classes and fields VS the WIP branch fields to help us converging the sped_* modules inside the OCA. Any help or tips are welcome
cc @rvalyi @renatonlima @mileo @aricaldeira

is_uom = fields.Boolean(
string='Is UOM?',
)
is_currency = fields.Boolean(
Copy link
Contributor

@mbcosta mbcosta Jun 9, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think is better extract the things not related to currency from this class

@mileo
Copy link
Member

mileo commented Jun 12, 2017

Olá

Lembrei de uma opção que podemos utilizar:

image

image

@aricaldeira @rvalyi

@rvalyi
Copy link
Member Author

rvalyi commented Oct 4, 2017

a inclusao desse modulo esta reportada na branch da versao 11

@rvalyi rvalyi closed this Oct 4, 2017
@rvalyi rvalyi mentioned this pull request Oct 17, 2017
35 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants