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

[BUG] 12.0 Warnings ao criar e validar a fatura #1596

Closed
vanderleiromera opened this issue Aug 27, 2021 · 11 comments
Closed

[BUG] 12.0 Warnings ao criar e validar a fatura #1596

vanderleiromera opened this issue Aug 27, 2021 · 11 comments
Labels

Comments

@vanderleiromera
Copy link

Ao criar a fatura recebo esses warnings

Screenshot from 2021-08-27 17-29-23

@vanderleiromera vanderleiromera changed the title [BUG] 12.0 Warnings ao criar a fatura [BUG] 12.0 Warnings ao criar e validar a fatura Aug 27, 2021
@rvalyi
Copy link
Member

rvalyi commented Aug 27, 2021

@vanderleiromera valeu por reportar. Vc esta com o modulo l10n_br_delivery atualizado? Houve um update grande dele a semana passada #1301 ).
o campo incoterm_id deveria existir por conta dessa herança https://github.com/OCA/l10n-brazil/blob/12.0/l10n_br_delivery/models/fiscal_document_mixin.py#L15
Vc poderia verificar?

@vanderleiromera
Copy link
Author

Vou checar e retorno

@vanderleiromera
Copy link
Author

vanderleiromera commented Aug 28, 2021

@rvalyi obrigado pela atenção, nesse DB não tem o modulo delivery instalado, então o warning do incoterm_id. Instalando o modulo não recebo mais os erros. A dúvida que fiquei, o modulo delivery precisa ser carregado como dependência, mesmo sem uso..Grato

@marcos-mendez
Copy link

marcos-mendez commented Aug 28, 2021 via email

@vanderleiromera
Copy link
Author

Oh @marcos-mendez sim está definido, tudo funciona correto, mas tenho TOC com warnings, o Raphael explicou sobre a herança do incoterm_id, instalando o delivery não aparecem mais.

@marcos-mendez
Copy link

marcos-mendez commented Aug 28, 2021 via email

@vanderleiromera
Copy link
Author

Exato, agora também fiquei com essa dúvida, da dependência do módulo delivery.

rvalyi added a commit to akretion/l10n-brazil that referenced this issue Aug 28, 2021
rvalyi added a commit to akretion/l10n-brazil that referenced this issue Aug 28, 2021
@rvalyi
Copy link
Member

rvalyi commented Aug 28, 2021

@vanderleiromera @marcos-mendez eu acho que eu entendi o problema: quando o @mbcosta terminou a migraçao do modulo l10n_br_delivery, ele acabou botando o campo incoterm_id dentro do SHADOWED_FIELDS do documento fiscal a76bb93#diff-daae38396c6672c56badcaa22a10ae32a938909cd9387c12b0ec96268c9c5ea2

Isso para que seja possivel ter o incoterm_id dentro de um picking por examplo (pela herança do mixin do documento fiscal) mas tb que quando vc escreve o incoterm_id num invoice esse incoterm_id seja seja tb propagado ate o documento fiscal quando vc chamar o write, mesmo que ele tem o mesmo nome incorterm_id no invoice e no documento fiscal e que então so o mecanismo do framework do _inherits nao daria conta de fazer essa copia sem adicionar o campo no SHADOWED_FIELDS.

So que fazendo isso, quando instalar o l10n_br_account apenas ele ja tenta fazer esse write e da esse warning mesmo que nao tiver o l10n_br_delivery instalado.

Por isso, nesse PR para resolver o problema #1599, eu adicionei o campo no documento fiscal (pelo mixin) ja ao nivel do l10n_br_account e nao mais ao nivel do l10n_br_delivery como o @mbcosta tinha feito.

@vanderleiromera @marcos-mendez vcs podem verificar se resolve certinho? Valeu por reportar.

@rvalyi
Copy link
Member

rvalyi commented Aug 28, 2021

eu nao mudo minha analisa do problema, mas eu fiz um fix que eu acho melhor aqui #1600

@vanderleiromera @marcos-mendez vcs podem verificar se resolve certinho?

@marcos-mendez
Copy link

marcos-mendez commented Aug 28, 2021 via email

@vanderleiromera
Copy link
Author

vanderleiromera commented Aug 29, 2021

solucionado com a pr #1600

rvalyi added a commit to akretion/l10n-brazil that referenced this issue Oct 19, 2021
rvalyi added a commit to akretion/l10n-brazil that referenced this issue Oct 27, 2021
rvalyi added a commit to akretion/l10n-brazil that referenced this issue Oct 27, 2021
rvalyi added a commit to akretion/l10n-brazil that referenced this issue Oct 28, 2021
rvalyi added a commit to akretion/l10n-brazil that referenced this issue Nov 7, 2021
renatonlima pushed a commit to akretion/l10n-brazil that referenced this issue Jan 5, 2022
renatonlima pushed a commit to akretion/l10n-brazil that referenced this issue Mar 17, 2022
renatonlima pushed a commit to akretion/l10n-brazil that referenced this issue Apr 7, 2022
renatonlima pushed a commit to akretion/l10n-brazil that referenced this issue May 4, 2022
renatonlima pushed a commit to akretion/l10n-brazil that referenced this issue May 9, 2022
rvalyi added a commit to akretion/l10n-brazil that referenced this issue May 19, 2022
rvalyi added a commit to akretion/l10n-brazil that referenced this issue May 27, 2022
felipemotter pushed a commit to Engenere/l10n-brazil that referenced this issue Jul 29, 2022
mbcosta pushed a commit to akretion/l10n-brazil that referenced this issue Sep 29, 2022
mbcosta pushed a commit to akretion/l10n-brazil that referenced this issue Oct 8, 2022
mbcosta pushed a commit to akretion/l10n-brazil that referenced this issue Oct 10, 2022
mileo pushed a commit to kmee/l10n-brazil that referenced this issue Oct 25, 2022
rvalyi added a commit to akretion/l10n-brazil that referenced this issue Nov 27, 2023
rvalyi added a commit to akretion/l10n-brazil that referenced this issue Nov 28, 2023
rvalyi added a commit to akretion/l10n-brazil that referenced this issue Dec 5, 2023
rvalyi added a commit to akretion/l10n-brazil that referenced this issue Dec 10, 2023
rvalyi added a commit to akretion/l10n-brazil that referenced this issue Jan 16, 2024
rvalyi added a commit to akretion/l10n-brazil that referenced this issue Feb 5, 2024
rvalyi added a commit to akretion/l10n-brazil that referenced this issue Feb 9, 2024
rvalyi added a commit to akretion/l10n-brazil that referenced this issue Mar 12, 2024
rvalyi added a commit to akretion/l10n-brazil that referenced this issue Mar 26, 2024
rvalyi added a commit to akretion/l10n-brazil that referenced this issue May 25, 2024
rvalyi added a commit to akretion/l10n-brazil that referenced this issue Jul 27, 2024
rvalyi added a commit to akretion/l10n-brazil that referenced this issue Jul 27, 2024
rvalyi added a commit to akretion/l10n-brazil that referenced this issue Jul 31, 2024
rvalyi added a commit to akretion/l10n-brazil that referenced this issue Aug 3, 2024
rvalyi added a commit to akretion/l10n-brazil that referenced this issue Aug 23, 2024
rvalyi added a commit to akretion/l10n-brazil that referenced this issue Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants