Coder Social home page Coder Social logo

default_code_gen's Introduction

Warnings!!

  1. If you have a great number of products, like >1000, import all products first (with default_code) with Excel etc., then activate this module.
  2. This computation of default_code will be triggered when new products are created via Excel files. So reduce Batch size to <100. Expect LONG upload times, and even timeouts!

Auto Generate Product default_code

  • This Odoo module automatically generates a new default code for each product created in Odoo.
  • The new default code is based on the largest existing default code, incrementing it by 1.
  • If the largest existing code contains non-numeric characters, they are stripped out, and only the numeric part is considered for incrementing. (this could be flawed code sequence).

Aside of this simple logic of incrementing numeric product codes, more complicated product codes can also be generated based on the business' needs.

Features

  • Auto-generates a new default code for new products.
  • Handles non-numeric codes.

Deployment and Use

  • Place the entire module directory in your Odoo addons path.
  • Update the module list in the Odoo interface.
  • Install the module through the Odoo Apps interface.

Once installed, the module will automatically generate a default_code for each new product created using a product.template view=form. The code will be displayed in the form view and is set as read-only to prevent manual edits.

default_code_gen's People

Contributors

euroblaze avatar vtv24710 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.