Skip to content
  • Categories
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Flatly)
  • No Skin
Collapse

Odoo 中文社区

  1. Home
  2. Categories
  3. Odoo 新手求助
  4. account.move 更改自动编号

account.move 更改自动编号

Scheduled Pinned Locked Moved Solved Odoo 新手求助
5 Posts 2 Posters 1.0k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mzj
    wrote on last edited by
    #1

    account.move 模块 需要更改自动编号, 但是 这个自动编号 第一次有记录的时候会出现, 第二次开始就变成了 草稿,我看了源码
    0c78e66f-0e7b-46ff-86b4-6cb24b5e7b4e-image.png 执行了这个方法, 通过打印获取了这个方法返回的值5f738b3f-5a24-47f2-a2c0-017b9f8ecfe0-image.png 请教一下有谁了解过这块的代码结构是怎么样的吗? 位置是在 addons\account\models\account_move.py1dcd902c-2d93-4a93-bde7-ad6b0354fd60-image.png 这个下面

    digitalsatoriD 1 Reply Last reply
    0
    • digitalsatoriD Offline
      digitalsatoriD Offline
      digitalsatori 管理员
      replied to mzj on last edited by digitalsatori
      #2

      @mzj 你看的地方不对, 发票编码在Odoo V14中是一个compute字段,你可以看一下account.move对象下的_compute_name方法。
      其实Odoo V14对于发票编码的处理比较特殊,如果需要对已有发票的编码进行批量修改,可以选中发票,然后点“resequence”

      1aa9e340-fa91-46de-9d4a-e9ed96bad43e-图片.png

      V13或以前的版本则可以通过访问
      Settings -> Technical -> Sequences and Identifiers -> Sequences 来设置编号规则

      【上海先安科技】(tony AT openerp.cn)

      digitalsatoriD 1 Reply Last reply
      0
      • digitalsatoriD Offline
        digitalsatoriD Offline
        digitalsatori 管理员
        replied to digitalsatori on last edited by
        #3

        @digitalsatori 另外要知道发票编号在发票确认后生成,没有确认的发票都是Draft(草稿)

        【上海先安科技】(tony AT openerp.cn)

        M 2 Replies Last reply
        0
        • M Offline
          M Offline
          mzj
          replied to digitalsatori on last edited by
          #4

          @digitalsatori 好的, 我看一下

          1 Reply Last reply
          0
          • M Offline
            M Offline
            mzj
            replied to digitalsatori on last edited by mzj
            #5

            @digitalsatori 我想问一下, 可不可以在草稿状态下就出现编号呢?还有 14版本不可以在前台设置account.move的编号规则了吗

            1 Reply Last reply
            0

            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Tags
            • Popular
            • Users
            • Groups