[tryton] workflow

2017-12-19 Thread Cato Nano
Until now, I have been editing the sources of my module "off line" then I have 
rebuilt my modue on every edit, in order to see the results

I saw there s the Proteus project that seems to be aimed at providing a prompt 
to interactively work with my modules

How am I supposed to use that ?

Thanks in advance

-- 
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/ff426397-c501-4dec-afe1-215e434b7741%40googlegroups.com.


[tryton] using the Party module

2017-12-19 Thread Cato Nano
I d like to establish a relation between my entity (Bolletta) and the parties 
represented by the Party module

I m not sure I undertsand how to do that

The manual doesn t mention the possibility it seems. Does it ?

The "sale" module has a model like this

class PartyReplace:
__metaclass__ = PoolMeta
__name__ = 'party.replace'

@classmethod
def fields_to_replace(cls):
return super(PartyReplace, cls).fields_to_replace() + [
('sale.sale', 'party'),
('sale.sale', 'shipment_party'),
]


but I m not sure what this is and what it does

Thanks in advance

-- 
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/fb92a364-39a3-403e-9ae9-b5c77dee9546%40googlegroups.com.


Re: [tryton] merge invoices

2017-12-19 Thread Cédric Krier
On 2017-12-19 06:55, Richard PALO wrote:
> Le 18/12/2017 à 20:11, Cédric Krier a écrit :
> > On 2017-12-18 20:06, Richard PALO wrote:
> >> Having a number of suppliers which group multiple deliveries
> >> in one invoice, with OpenERP (aka Odoo) we've been using
> >> account_invoice_merge extensively.
> >>
> >> Maybe missing something but haven't seem to have found the equivalent
> >> in tryton. Any hints?
> > 
> > The module purchase_invoice_line_standalone manages that perfectly.
> > 
> 
> Perhaps I'm still missing something.
> 
> Now it seems the invoices are no longer created upon reception of the
> supplier shipment! (though invoice method is still 'Based On Shipment')

Yes only lines.

> I notice that I can manually create an invoice and subsequently select
> what appears to be PO lines (with no shipment nor PO indication)...
> but that will add enormous amount of time/energy/confusion to current
> processing.

It is invoice lines. You just have to compare with the invoice received
by the supplier.
I created https://bugs.tryton.org/issue7021 to show the origin.

> I try to select the shipments to see if there is an action to create
> an invoice on them to no avail... That would be the easiest (with a
> comment header introducing each shipment).

This would be completely wrong according to role. The accountant does
not have access to shipment. And stock manager should not create
invoices.

> On a sidenote, from a shipment, there seems to be no indication of the
> purchase order which should probably be the origin (to give context as
> to what products are expected)...

Indeed showing the purchase will be good: https://bugs.tryton.org/issue7020

> and I can't seem to find a way to select the product moves from the
> Shipments Tab of the Purchase Order and create a shipment prefilled
> either...

Again this will be against role separation. The stock manager should
only have access to shipments. So when he receives goods from a
supplier, he just encode the shipment in the system by selecting the
move from the shipment.

> Once established manually a shipment, it seem impossible to navigate
> from the supplier shipment to the purchase order, though the inverse
> is visible on the Shipments Tab.

Indeed the relate was missing: https://bugs.tryton.org/issue7016

-- 
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/20171219153607.GN8635%40kei.


Re: [tryton] Accounting for custom duty rate

2017-12-19 Thread 'Artem Braga' via tryton

> It is only informational for now but there are methods to find the right
> tariff code and to compute the duty rate.
> 

Returning back to this topic, are there any views, menus in Tryton client, 
where computations of duty rates from these methods can be seen or done?

Thanks
Best regards
Artem


-- 
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/c4e3cf0c-9b56-4322-8916-bb3c42030824%40googlegroups.com.


Re: [tryton] merge invoices

2017-12-19 Thread Sergi Almacellas Abellana

El 19/12/17 a les 06:55, Richard PALO ha escrit:


Does it exist documentation to map, for migration purposes, openerp 
purchase workflows to tryton workflows?  This is somewhat the critical 
path.
No that I'm aware of. But it will be great if you can explain you 
workflow and what you are trying to achieve. Then we can provide an 
advice on how to do that on tryton.



--
Sergi Almacellas Abellana
www.koolpi.com
Twitter: @pokoli_srk

--
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/f8274fa8-b8d5-9a9d-001c-25c368075e06%40koolpi.com.


Re: [tryton] selection field

2017-12-19 Thread Cato Nano
Il giorno martedì 19 dicembre 2017 07:38:05 UTC+1, Cato Nano ha scritto:
> Il giorno lunedì 18 dicembre 2017 17:27:03 UTC+1, Mark Shane Hayden ha 
> scritto:
> > On Dec 18, 2017 04:08, "Cato Nano"  wrote:
> > Now that a list of entities represented by my model get correctly shown, I 
> > want to add a selection field to my model. Like this
> > 
> > 
> > 
> > 
> > 
> >     tipo = fields.Selection('tipo', [
> > 
> >         ('M', 'Male')
> > 
> >         ('F', 'Female')
> > 
> >     ],
> > 
> >     )
> > 
> > 
> > You need to separate your tuples with commas in the selection list like 
> > this:
> >     ('M', 'Male),
> >     ('F', 'Female')
> > 
> > 
> > without the comma it looks to the Python interpreter like the second tuple 
> > is parameters and the first tuple is a function hence the error.
> > 
> > 
> > 
> > 
> > 
> > I copied this from the manual, here
> > 
> > http://doc.tryton.org/4.6/trytond/doc/ref/models/fields.html#ref-models-fields
> > 
> > 
> > 
> > when updating the module like this
> > 
> > 
> > 
> > :~/tributi$ sudo python3 setup.py develop
> > 
> > :~/tributi$ sudo trytond-admin -c /etc/tryton/trytond.conf -d tryton -u 
> > tributi
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > i get this error
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > Traceback (most recent call last):
> > 
> >   File "/usr/bin/trytond-admin", line 21, in 
> > 
> >     admin.run(options)
> > 
> >   File "/usr/lib/python3/dist-packages/trytond/admin.py", line 54, in run
> > 
> >     installdeps=options.installdeps)
> > 
> >   File "/usr/lib/python3/dist-packages/trytond/pool.py", line 142, in init
> > 
> >     self.start()
> > 
> >   File "/usr/lib/python3/dist-packages/trytond/pool.py", line 95, in start
> > 
> >     register_classes()
> > 
> >   File "/usr/lib/python3/dist-packages/trytond/modules/__init__.py", line 
> > 373, in register_classes
> > 
> >     mod_file, pathname, description)
> > 
> >   File "/usr/lib/python3.6/imp.py", line 245, in load_module
> > 
> >     return load_package(name, filename)
> > 
> >   File "/usr/lib/python3.6/imp.py", line 217, in load_package
> > 
> >     return _load(spec)
> > 
> >   File "", line 684, in _load
> > 
> >   File "", line 665, in _load_unlocked
> > 
> >   File "", line 678, in exec_module
> > 
> >   File "", line 219, in 
> > _call_with_frames_removed
> > 
> >   File "/home/admin/tributi/build/lib/trytond/modules/tributi/__init__.py", 
> > line 2, in 
> > 
> >     from .bolletta import Bolletta
> > 
> >   File "/home/admin/tributi/build/lib/trytond/modules/tributi/bolletta.py", 
> > line 6, in 
> > 
> >     class Bolletta(ModelSQL, ModelView):
> > 
> >   File "/home/admin/tributi/build/lib/trytond/modules/tributi/bolletta.py", 
> > line 13, in Bolletta
> > 
> >     ('F', 'Female')
> > 
> > TypeError: 'tuple' object is not callable
> > 
> > 
> > 
> > 
> > 
> > Thanks in advance !
> > 
> > 
> > 
> > --
> > 
> > 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/8ddc439a-f4cb-49bc-a5aa-09d7e4201e58%40googlegroups.com.
> 
> thank you people
> 
> I managed to make it work
> 
> I found a selection field in the "sales" module and copied that code and 
> adapted it
> 
> Thats how I discovered that the options list ought to be the first argument
> 
> For now I have no "form" view for my bolletta so I can t test the drop down 
> menu
> 
> But the field shows up in a tree view, so I guess it s ok
> 
> Thanks !

ok, now I also have a form view and the selction field works like a charm !!

-- 
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/3c58acb5-7774-44e6-b437-1b39f1940b0e%40googlegroups.com.