Thursday, February 25, 2016

Today I wrote the new module lino_xl.lib.invoicing which is a reimplementation of Main advantages are:

  • Use a database table (an “invoicing plan”), not a virtual table

  • Make it possible to generate other invoices than sales invoices

The rest of this post are just some work notes.

>>> import lino_xl.lib.invoicing
>>> import
>>> from lino import startup
>>> # startup('lino_xl.projects.min2.settings.demo')
>>> startup('lino_voga.projects.roger.settings.demo')
>>> from lino.api import rt
>>> fk = rt.models.contacts.Role._meta.get_field('person')
<class 'lino_voga.lib.contacts.models.Person'>

Exception: plugin tries to extend unresolved model ‘courses.Line’