Pular para o conteúdo
Odoo Menu
  • Entrar
  • Experimente grátis
  • Aplicativos
    Finanças
    • Financeiro
    • Faturamento
    • Despesas
    • Planilhas (BI)
    • Documentos
    • Assinar Documentos
    Vendas
    • CRM
    • Vendas
    • PDV Loja
    • PDV Restaurantes
    • Assinaturas
    • Locação
    Websites
    • Criador de Sites
    • e-Commerce
    • Blog
    • Fórum
    • Chat ao Vivo
    • e-Learning
    Cadeia de mantimentos
    • Inventário
    • Fabricação
    • PLM - Ciclo de Vida do Produto
    • Compras
    • Manutenção
    • Qualidade
    Recursos Humanos
    • Funcionários
    • Recrutamento
    • Folgas
    • Avaliações
    • Indicações
    • Frota
    Marketing
    • Redes Sociais
    • Marketing por E-mail
    • Marketing por SMS
    • Eventos
    • Automação de Marketing
    • Pesquisas
    Serviços
    • Projeto
    • Planilhas de Horas
    • Serviço de Campo
    • Central de Ajuda
    • Planejamento
    • Compromissos
    Produtividade
    • Mensagens
    • Aprovações
    • Internet das Coisas
    • VoIP
    • Conhecimento
    • WhatsApp
    Aplicativos de terceiros Odoo Studio Plataforma Odoo Cloud
  • Setores
    Varejo
    • Loja de livros
    • Loja de roupas
    • Loja de móveis
    • Mercearia
    • Loja de ferramentas
    • Loja de brinquedos
    Comida e hospitalidade
    • Bar e Pub
    • Restaurante
    • Fast Food
    • Hospedagem
    • Distribuidor de bebidas
    • Hotel
    Imóveis
    • Imobiliária
    • Escritório de arquitetura
    • Construção
    • Administração de propriedades
    • Jardinagem
    • Associação de proprietários de imóveis
    Consultoria
    • Escritório de Contabilidade
    • Parceiro Odoo
    • Agência de marketing
    • Escritório de advocacia
    • Aquisição de talentos
    • Auditoria e Certificação
    Fabricação
    • Têxtil
    • Metal
    • Móveis
    • Alimentação
    • Cervejaria
    • Presentes corporativos
    Saúde e Boa forma
    • Clube esportivo
    • Loja de óculos
    • Academia
    • Profissionais de bem-estar
    • Farmácia
    • Salão de cabeleireiro
    Comércio
    • Handyman
    • Hardware e Suporte de TI
    • Sistemas de energia solar
    • Sapataria
    • Serviços de limpeza
    • Serviços de climatização
    Outros
    • Organização sem fins lucrativos
    • Agência Ambiental
    • Aluguel de outdoors
    • Fotografia
    • Aluguel de bicicletas
    • Revendedor de software
    Navegar por todos os setores
  • Comunidade
    Aprenda
    • Tutoriais
    • Documentação
    • Certificações
    • Treinamento
    • Blog
    • Podcast
    Empodere a Educação
    • Programa de educação
    • Scale Up! Jogo de Negócios
    • Visite a Odoo
    Obtenha o Software
    • Baixar
    • Comparar edições
    • Releases
    Colaborar
    • Github
    • Fórum
    • Eventos
    • Traduções
    • Torne-se um parceiro
    • Serviços para parceiros
    • Cadastre seu escritório contábil
    Obtenha os serviços
    • Encontre um parceiro
    • Encontre um Contador
    • Conheça um consultor
    • Serviços de Implementação
    • Referências de Clientes
    • Suporte
    • Upgrades
    Github YouTube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Faça uma demonstração
  • Preços
  • Ajuda

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Financeiro
  • Inventário
  • PoS
  • Projeto
  • MRP
All apps
É necessário estar registrado para interagir com a comunidade.
Todas as publicações Pessoas Emblemas
Marcadores (Ver tudo)
odoo accounting v14 pos v15
Sobre este fórum
É necessário estar registrado para interagir com a comunidade.
Todas as publicações Pessoas Emblemas
Marcadores (Ver tudo)
odoo accounting v14 pos v15
Sobre este fórum
Ajuda

Odoo V16 - Subcriptions - Create Invoice Draft

Inscrever

Seja notificado quando houver atividade nesta publicação

Esta pergunta foi sinalizada
Subscriptionsodoo16features
9 Respostas
8424 Visualizações
Avatar
Gottfried Brandi

Is it possible to automatically create Invoice drafts via subscriptions in Odoo V16?


In V15 you can set within the subscription template what Odoo should do with the invoice. (Create a draft, send invoice automatically, etc.) As far as I see there is no such option in V16. Invoices are always automaticaly created, confirmed and sent. It seems that there is no chance for checking or editing those invoices.

I couldn't find any details in the documentation as it concerns only V15.

Any Advice?

thanks a lot


1
Avatar
Cancelar
Ken

According to Odoo this function has been removed. Strange...

https://github.com/odoo/odoo/issues/118858

People, please add your comment on Github and here why this absolutely needs to come back! Thanks y'all!

Gottfried Brandi
Autor

Sehr geehrte/r AbsenderIn,

ich bin ab 19.06.2023 wieder für Sie erreichbar.

Für Anliegen zur Ihrem Projekt wenden Sie sich bitte an meinen Kollegen Robert Förster (robert@suppliot.eu).

In dringenden Fällen wenden Sie sich bitte an unseren Support - +43 1 774 03 92 – 400.

E-Mails werden nicht weitergeleitet.

vielen Dank und beste Grüße

Gottfried Brandi

Ramon Casallachs
Hello, I have exactly the same problem. Any solution?


Ken

No there is no solution yet, they will probably release it in a new version 17+.

According to Odoo this function has been removed.
See: https://github.com/odoo/odoo/issues/118858

People, please add your comment on Github and here why this absolutely needs to come back! Thanks y'all!

Odoo Developers

Check this App: https://apps.odoo.com/apps/modules/16.0/od_subscription_draft_invoice

Avatar
Oscar Fonseca
Melhor resposta

To ensure that all related invoices are consistently created in draft form, a recommended approach would be to clone the 'Sale Subscription: generate recurring invoices and payments' scheduled action and then deactivate the original one. Replace Python code with this snippet:


current_date = datetime.datetime.now()
search_domain = model.search([('is_batch', '=', False),
                         ('is_invoice_cron', '=', False),
                         ('is_subscription', '=', True),
                         ('subscription_management', '!=', 'upsell'),
                         ('state', 'in', ['sale', 'done']),
                         ('payment_exception', '=', False),
                         '&', '|', ('next_invoice_date', '<=', current_date), ('end_date', '<=', current_date), ('stage_category', '=', 'progress')])

for subs in search_domain:
  try:
    account_move = subs._create_recurring_invoice()
    #log(str(account_move))
  except Exception as e:
    continue


This way, you can maintain control over the invoice creation process but all will be generated in draft state.




0
Avatar
Cancelar
Vladimir Vroonen

This code doesn't seem to be complete

Oscar Fonseca

Thanks Vladimir. It's correct now.

Avatar
Solvve
Melhor resposta

my case was to have this option for Creation invoices as manual for all subscriptions and solution is modification a scheduler

Sale Subscription: generate recurring invoices and payments

and replace a function with 

model._create_recurring_invoice(automatic=False)


1
Avatar
Cancelar
Oscar Fonseca

It's important to note that with the proposed modification, if the system encounters any draft invoices linked to a subscription, the scheduled task may cease to process subsequent subscriptions.

Avatar
Odoo Developers
Melhor resposta

Hi,
Use this app:  https://apps.odoo.com/apps/modules/16.0/od_subscription_draft_invoice

Thanks

0
Avatar
Cancelar
Avatar
Antonio Cánovas Pedreño
Melhor resposta

A work-around could be disable the scheduled action "Sale subscription: generate recurring ..." and create a new one calling to the button action on form "action_invoice_subsction()" only for active subscription with pending invoices.

This action creates the invoices in draft state.

I have not the code, but it's easy.

0
Avatar
Cancelar
Avatar
SERVICIOS COMPUTACIONALES RA
Melhor resposta

Same problem here. 

Found a small workaround, where i set the invoice items to "Based on Delivered Quantities" (Per Invoice ITEM)

I would like some subscriptions to invoice automatically.. and some manual.. like we had it before.. (Per Customer/Subscription)


0
Avatar
Cancelar
Avatar
Bruno Ramioulle
Melhor resposta

I don't think that there is a real solution for the moment despite  work arounds that might be different depending on use cases. In top of all this it will add in the invoice, at each product line the period even if it does not mean anything in your case. Before it was only mentioned once at the bottom of the invoice. 

0
Avatar
Cancelar
Ken

Yes I wish I was in the Odoo offices to talk about this problem... No one @Odoo seems to care and thinks they are right.

Bruno Ramioulle

Maybe we should post something on LinkedIn to try to find out who is the product owner and get in touch with him. Wondering if he saw the GitHub comments.

Avatar
Ken
Melhor resposta

Unfortunately there is no "invoicing" tab in my database either. No invisible views as far as I can see...
Also when I check v16.2, on runbot.odoo.com there also no invoicing tab there.

This is very annoying as now some previously 'draft invoice' subscriptions are invoiced anyway and sent to the customer...
And some automatic invoices aren't even invoiced.

This is terrible.

0
Avatar
Cancelar
Avatar
Edwin Brasseur
Melhor resposta

Hello,

I had the same issue. After reviewing the Odoo native code, i find out that they done major changes that make the draft invoice process impossible without modification. 

The workaround proposed by Ricardo on this topic doesn't fit because it's considering a lot of products as "non delivered" and so just make the next invoice date increment without creating any invoices. 

As it was mandatory for our activity i created a module that overwrite the new Odoo process and get back the ability to invoice in draft again. 

For those who want to implement the same solution, you can buy the fresh made module here : 

https://apps.odoo.com/apps/modules/16.0/beone_sub_draft_invoice/ 

To make it work you just need to edit the recurrence model (sale.temporal.recurrence) in Subscriptions > Configuration > Recurrence Period. 

Just tick the new checkbox "Draft Invoice" and all the subscriptions for that recurrence will be done in draft. 

So to manage two types (one that post automatically and the other in draft) you'll need to have 2 (for exemple) "Monthly" recurrence. One you name "Monthly Auto" with the checkbox unchecked and the other you name "Monthly Draft" with the checkbox checked. 


0
Avatar
Cancelar
Avatar
Ingred Tech
Melhor resposta

To create a draft invoice, you need to set the "Invoice Policy" to "Create draft invoice" in the subscription template. This will ensure that a draft invoice is generated for each billing cycle of the subscription.

Here are the steps to configure this in Odoo V16:

  1. Go to the "Subscription" menu in the Odoo interface.

  2. Select the subscription template for which you want to set the invoicing settings.

  3. Click on the "Invoicing" tab.

  4. In the "Invoice Policy" field, select "Create draft invoice".

  5. Save the changes to the subscription template.


-9
Avatar
Cancelar
Gottfried Brandi
Autor

Thank you for your answer. Unfortunately there is no "invoicing" tab in my database. I also have checked if it is set invisible in Odoo Studio. I have uploaded a Screenshot in my initial post.

Está gostando da discussão? Não fique apenas lendo, participe!

Crie uma conta hoje mesmo para aproveitar os recursos exclusivos e interagir com nossa incrível comunidade!

Inscreva-se
Publicações relacionadas Respostas Visualizações Atividade
DeprecationWarning: The longpolling-port is a deprecated alias to the gevent-port option, please use the latter Resolvido
odoo16features
Avatar
Avatar
Avatar
Avatar
Avatar
5
set. 25
24790
Unable to add to cart Subscription product even the cart is empty
Subscriptions
Avatar
Avatar
Avatar
Avatar
3
set. 25
881
How to Add wizard under print button inside the form view.
odoo16features
Avatar
Avatar
Avatar
Avatar
3
ago. 25
3779
How to add @api.onchange in _get_view() method odoo 16
odoo16features
Avatar
Avatar
1
mai. 25
3694
get all partners which are internal users or portal users odoo16
odoo16features
Avatar
Avatar
1
abr. 25
4535
Comunidade
  • Tutoriais
  • Documentação
  • Fórum
Open Source
  • Baixar
  • Github
  • Runbot
  • Traduções
Serviços
  • Odoo.sh Hosting
  • Suporte
  • Upgrade
  • Desenvolvimentos personalizados
  • Educação
  • Encontre um Contador
  • Encontre um parceiro
  • Torne-se um parceiro
Sobre nós
  • Nossa empresa
  • Ativos da marca
  • Contato
  • Empregos
  • Eventos
  • Podcast
  • Blog
  • Clientes
  • Legal • Privacidade
  • Segurança
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo é um conjunto de aplicativos de negócios em código aberto que cobre todas as necessidades de sua empresa: CRM, comércio eletrônico, contabilidade, estoque, ponto de venda, gerenciamento de projetos, etc.

A proposta de valor exclusiva Odoo é ser, ao mesmo tempo, muito fácil de usar e totalmente integrado.

Site feito com

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now