Re: [tryton] kindergarten | purchase of food for kids, kitchen, cooks, warehouse, meals, recipes

2018-01-18 Thread Cédric Krier
On 2018-01-18 08:36, 'Richard Martin' via tryton wrote:
> For kindergardens we designed some modules for administration: kids, fees 
> (including calculation based on city-statutes), teachers/educators, contacts.
> 
> Now, we want to add a module to support the cooks/kitchen in purchasing the 
> food they need. It should be based on the number of children and recipes. 
> 
> Selling food is not an issue due meals are based on a fixed monthly 
> "flate-rate" parents (and/or the city) pay for each kid.
> 
> Questions: 
> We suggest the production-module is the best way to realise this. Does anyone 
> see pitfalls going with this?

Do you really plan to make a production order for each meal cocked?

Indeed we have to think to a similar process recently to make a
quotation and we thought that what is needed is only the computation of
the ingredients of the ordered meals for every day. We did not plan
neither to manage the stock because it is rolling to fast and it will be
a waste of time.

-- 
Cédric Krier - B2CK SPRL
Email/Jabber: cedric.kr...@b2ck.com
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/

-- 
You received this message because you are subscribed to the Google Groups 
"tryton" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton/20180118173606.GT4241%40kei.


[tryton] kindergarten | purchase of food for kids, kitchen, cooks, warehouse, meals, recipes

2018-01-18 Thread 'Richard Martin' via tryton
For kindergardens we designed some modules for administration: kids, fees 
(including calculation based on city-statutes), teachers/educators, contacts.

Now, we want to add a module to support the cooks/kitchen in purchasing the 
food they need. It should be based on the number of children and recipes. 

Selling food is not an issue due meals are based on a fixed monthly 
"flate-rate" parents (and/or the city) pay for each kid.

Questions: 
We suggest the production-module is the best way to realise this. Does anyone 
see pitfalls going with this?

-- 
You received this message because you are subscribed to the Google Groups 
"tryton" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton/b85fc65a-a2a7-4f0f-bfdc-88c3740c88bc%40googlegroups.com.


Re: [tryton] Proteus

2018-01-18 Thread Cato Nano
Il giorno sabato 13 gennaio 2018 10:00:08 UTC+1, Cédric Krier ha scritto:
> On 2018-01-12 23:16, Cato Nano wrote:
> > Today the error message is different. Yesterday I probably messed up 
> > because I was tired, it happens
> > 
> > So here I am now
> > 
> > >>> from proteus import config, Model, Wizard, Report 
> > >>> config = config.set_trytond('sqlite:///:memory:') 
> > /home/catonano/tributi/env/lib/python3.6/site-packages/trytond/modules/__init__.py:143:
> >  DeprecationWarning: This method will be removed in future versions.  Use 
> > 'parser.read_file()' instead.
> >   module_config.readfp(fp)
> > Traceback (most recent call last):
> >   File "", line 1, in 
> >   File 
> > "/home/catonano/tributi/env/lib/python3.6/site-packages/proteus/config.py", 
> > line 274, in set_trytond
> > _CONFIG.current = TrytondConfig(database, user, config_file=config_file)
> >   File 
> > "/home/catonano/tributi/env/lib/python3.6/site-packages/proteus/config.py", 
> > line 228, in __init__
> > self.pool.init()
> >   File 
> > "/home/catonano/tributi/env/lib/python3.6/site-packages/trytond/pool.py", 
> > line 153, in init
> > lang=lang, installdeps=installdeps)
> >   File 
> > "/home/catonano/tributi/env/lib/python3.6/site-packages/trytond/modules/__init__.py",
> >  line 461, in load_modules
> > with Transaction().start(database_name, 0):
> >   File 
> > "/home/catonano/tributi/env/lib/python3.6/site-packages/trytond/transaction.py",
> >  line 106, in start
> > Cache.clean(database.name)
> >   File 
> > "/home/catonano/tributi/env/lib/python3.6/site-packages/trytond/cache.py", 
> > line 111, in clean
> > cursor.execute(*table.select(table.timestamp, table.name))
> > sqlite3.OperationalError: no such table: ir_cache
> 
> Now you are connecting to a database that was not setup:
> http://doc.tryton.org/4.6/trytond/doc/topics/setup_database.html#topics-setup-database
> 
> For memory database, you can use create_db from
> trytond.tests.test_tryton like it is done for the test.
> Indeed the README is not useful: https://bugs.tryton.org/issue7056
> 
> -- 
> Cédric Krier - B2CK SPRL
> Email/Jabber: cedric.kr...@b2ck.com
> Tel: +32 472 54 46 59
> Website: http://www.b2ck.com/

I copied the test_tryton file in my project root, erased some stuff and left 
the create_db function

I get this

~/tributi/bridgehead2.py in create_db(name, lang)
 51 None, 0, close=True, autocommit=True, _nocache=True) \
 52 as transaction:
---> 53 transaction.database.create(transaction.connection, name)
 54 
 55 with Transaction().start(name, 0, _nocache=True) as 
transaction,\

~/tributi/env/lib/python3.6/site-packages/trytond/backend/sqlite/database.py in 
create(cls, connection, database_name)
300 path = os.path.join(config.get('database', 'path'),
301 database_name + '.sqlite')
--> 302 with sqlite.connect(path) as conn:
303 cursor = conn.cursor()
304 cursor.close()

OperationalError: unable to open database file


I could use soem help about how to setup this db

Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"tryton" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton/0bcdcd5a-11dd-4b60-a1a6-c618265cbec5%40googlegroups.com.