GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Add support for company/customer address · Issue #213 · inventree/inventree-python

Add support for company/customer address #213

New issue
Copy link
New issue
Copy link
Open
Open
Add support for company/customer address#213
Copy link
Assignees
lfg-seth
Labels
enhancementNew feature or request

Description

@lfg-seth
lfg-seth
opened on Nov 29, 2023
Issue body actions

It seems like there is no way to create or modify company/customer address.

I would like to help develop this if someone could point me in the right direction.

Activity

  1. miggland commented on Nov 29, 2023

    @miggland
    miggland
    on Nov 29, 2023
    Contributor
    More actions

    I assume you've seen the documentation, available for example at:
    https://demo.inventree.org/api-doc/

    New classes can be added simply, see the example for Contacts:

    inventree-python/inventree/company.py

    Line 11 in b7f4cab

    class Contact(inventree.base.InventreeObject):

    These use the methods defined in inventree.base.InventreeObject.

    Get the URL from the docs, the relevant API_VERSION can be found in https://github.com/inventree/InvenTree/blob/master/InvenTree/InvenTree/api_version.py, or via the corresponding PR which enabled addresses.

    The class Company has several methods which help in usage, eg. getting Contacts for the Company (getCompany).

    Spontaneously, a new class along the lines of Contact for addresses, and a method in Company to return them, is probably what you're after.

    General notes

    There is no contribution docs here, but there are pre-commit checks defined. Installing these before you commit locally will make it easier to pass the tests later on.
    There are also invoke commands to use locally, see tasks.py.

  2. miggland commented on Nov 29, 2023

    @miggland
    miggland
    on Nov 29, 2023
    Contributor
    More actions

    Also, you'll need to add some tests for your new methods. You should be able to find inspiration in the tets for Company and Contact

  3. SchrodingersGat
    assigned
    lfg-seth
    on Nov 30, 2023
  4. SchrodingersGat
    added
    enhancementNew feature or request
    help wantedExtra attention is needed
    and removed
    help wantedExtra attention is needed
    on Nov 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @lfg-seth
    lfg-seth

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.