GithubHelp home page GithubHelp logo

dulacp / django-accounting Goto Github PK

View Code? Open in Web Editor NEW
220.0 24.0 100.0 290 KB

Accounting pluggable app for Django 1.7+ projects

License: MIT License

Makefile 0.38% Python 69.94% CSS 1.00% JavaScript 4.53% HTML 23.79% Shell 0.35%
python accounting django accountant

django-accounting's People

Contributors

dulacp avatar girasquid avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

django-accounting's Issues

Should we replace get_field_by_name() by get_field()

Hi,

I am trying to upgrade this app. I`ve got one error when trying to create an invoice or bill:

Environment:
Request Method: GET
Request URL: http://127.0.0.1:8000/accounts/invoice/create/

Django Version: 3.0.7
Python Version: 3.8.3

Traceback (most recent call last):

  File "F:\Program Files\Python38-32\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
    response = get_response(request)
  File "F:\Program Files\Python38-32\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response
    response = self.process_exception_by_middleware(e, request)
  File "F:\Program Files\Python38-32\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "F:\Program Files\Python38-32\lib\site-packages\django\views\generic\base.py", line 71, in view
    return self.dispatch(request, *args, **kwargs)
  File "F:\Program Files\Python38-32\lib\site-packages\django\views\generic\base.py", line 97, in dispatch
    return handler(request, *args, **kwargs)
  File "F:\Program Files\Python38-32\lib\site-packages\django\views\generic\edit.py", line 168, in get
    return super().get(request, *args, **kwargs)
  File "F:\Program Files\Python38-32\lib\site-packages\django\views\generic\edit.py", line 133, in get
    return self.render_to_response(self.get_context_data())
  File "F:\bawrak\bawrak\accounts\mixins.py", line 104, in get_context_data
    context = super().get_context_data(**kwargs)
  File "F:\Program Files\Python38-32\lib\site-packages\django\views\generic\edit.py", line 66, in get_context_data
    kwargs['form'] = self.get_form()
  File "F:\bawrak\bawrak\accounts\views.py", line 326, in get_form
    form = super().get_form(form_class)
  File "F:\bawrak\bawrak\accounts\mixins.py", line 121, in get_form
    self.restrict_fields_choices_to_organization(form, orga)
  File "F:\bawrak\bawrak\accounts\mixins.py", line 63, in restrict_fields_choices_to_organization
    self._restrict_fields_choices(model, organization, form.fields)
  File "F:\bawrak\bawrak\accounts\mixins.py", line 43, in _restrict_fields_choices
    field, m, direct, m2m = model._meta.get_fields(source)
  File "F:\Program Files\Python38-32\lib\site-packages\django\db\models\options.py", line 750, in get_fields
    return self._get_fields(include_parents=include_parents, include_hidden=include_hidden)
  File "F:\Program Files\Python38-32\lib\site-packages\django\db\models\options.py", line 766, in _get_fields
    raise TypeError("Invalid argument for include_parents: %s" % (include_parents,))

Exception Type: TypeError at /accounts/invoice/create/
Exception Value: Invalid argument for include_parents: number

Ive replaced get_field_by_name('client')byget_field('client'). Its just the beginning of many others issues but any idea on how to resolve this error please?

Run this project

Hey
First of thanks for this nice project .
i just want to running this project in locally , can you help me
how i can do that

No module named fields Error

I am getting this error message on this line:

from django_select2.fields import (

from
/usr/local/lib/python2.7/dist-packages/accounting/apps/people/forms.py in <module>

as you can see I am on python2.7 as well as django 1.8 so not sure if that's the issue.

Thanks!

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.