Wednesday, June 11, 2014¶
Excerpts also for Così¶
DONE:
Added
lino.modlib.excerptsto Lino Così.ml.sales.Invoiceis nowlino.modlib.excerpts.Certifiable.Started to document
lino.modlib.trading.Renamed field “invoicing_address” to “invoice_recipient”
The new
lino.modlib.excerpts.fixtures.stdfixture automatically creates a certifyinglino.modlib.excerpts.ExcerptTypeinstance for every model which inherits fromlino.modlib.excerpts.Certifiable.Cool: the new method
lino.core.site.Site.str2kw()used for the above fixture is also the beginning of a solution for docs/tickets/108.
So ml.sales.Invoice is no longer TypedPrintable but
lino.modlib.excerpts.Certifiable. This currently means that every app
which uses lino.modlib.trading must also install lino.modlib.excerpts.
Hm… Can we leave this as this? Do we need automatic management of
dependencies (i.e. lino.core.plugin.Plugin.requires)?
Another example why we need app dependencies is sepa and iban.
TODO:
add
lino.modlib.addressesto Lino CosìAddressesBy
Free default data for places and zip codes¶
Continued on docs/tickets/109.
The Python serializer : Django sometimes seems to also load fixtures from current directory. This was disturbing while writing cosi.tested.estonia because the following then caused a “Fixture has no attribute objects”:
$ cd lino_cosi/settings/est $ python manage.py initdb_demo