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
Conversation
…/l10n-brazil into kmee-migration10/l10n_br_account
There was a problem hiding this 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', |
There was a problem hiding this 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 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', |
There was a problem hiding this 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 module instead
# | ||
from . import sped_produto | ||
from . import inherited_product_template | ||
from . import inherited_product_product |
There was a problem hiding this 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 module instead
There was a problem hiding this 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 * |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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
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:
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: examples of proper history being kept: But next commit 6aef1aa "[FIX] Limpeza após rebase" from @aricaldeira is KO: original files aren't here anymore: they are moved to the backup directory: But in a way that lost the history: history of view files is lost too: 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. |
Hi all, |
is_uom = fields.Boolean( | ||
string='Is UOM?', | ||
) | ||
is_currency = fields.Boolean( |
There was a problem hiding this comment.
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
Olá Lembrei de uma opção que podemos utilizar: |
a inclusao desse modulo esta reportada na branch da versao 11 |
see here for the extraction script #529 (comment)