Price list are not use here in the common way.
It is a set of rules to compute the price of each product.
So a price list is composed of a ordered list of lines. A line is composed of
a pattern (by default 'product' and quantity) and a formula.
So when a price is computed, Tryton will find the first line that matches and
use the formula to compte the price.
> Can I generate a report via libreoffice of the price list? How do I do
> that?
As it is a computed list that could depend on many things (especially the
quantity) it is not really doable in a generic way.
--
Cédric Krier
B2CK SPRL
Rue de Rotterdam, 4
4000 Liège
Belgium
Tel: +32 472 54 46 59
Email/Jabber: cedric...@b2ck.com
Website: http://www.b2ck.com/
Aha. Maybe it should be called "Price Rulesets" instead?
> > Can I generate a report via libreoffice of the price list? How do I do
> > that?
>
> As it is a computed list that could depend on many things (especially the
> quantity) it is not really doable in a generic way.
In my case, the pricing is always the same no matter what the quantity.
Would that make it any easier?
--
Tom Schutter
t.sch...@comcast.net
Not sure. At the end it is a price list that is generated.
> > > Can I generate a report via libreoffice of the price list? How do I do
> > > that?
> >
> > As it is a computed list that could depend on many things (especially the
> > quantity) it is not really doable in a generic way.
>
> In my case, the pricing is always the same no matter what the quantity.
> Would that make it any easier?
Yes of course. Indeed I just think that we could have a report that will take
a set of quantity to compute.
Personally I would agree on call them price rulesets if its not a
price list. This of course depends on how you look at the thing. For
example, aprice list in a business world is a list of items and
various data, like weight, dimensions, volume and of course price for
a single item.
From another view, at the end, is just a list with single unit prices.
So price per unit.
I think the name is misleading in that case.
>> > > Can I generate a report via libreoffice of the price list? How do I do
>> > > that?
>> >
>> > As it is a computed list that could depend on many things (especially the
>> > quantity) it is not really doable in a generic way.
>>
>> In my case, the pricing is always the same no matter what the quantity.
>> Would that make it any easier?
>
> Yes of course. Indeed I just think that we could have a report that will take
> a set of quantity to compute.
>
> --
> Cédric Krier
>
> B2CK SPRL
> Rue de Rotterdam, 4
> 4000 Liège
> Belgium
> Tel: +32 472 54 46 59
> Email/Jabber: cedric...@b2ck.com
> Website: http://www.b2ck.com/
>
Rgds
Saxa
--
try...@googlegroups.com mailing list
--
try...@googlegroups.com mailing list
Yes, you can link a price list to a party.
PS: Please read
https://groups.google.com/d/msg/tryton/-IA9TLq5qag/pv5okIVkr38J
1) What can I do to help a price list report become real?
2) Meanwhile is it possible for me to create a custom report that would
do this? I have found
http://doc.tryton.org/2.0/trytond/doc/topics/reports/index.html#topics-reports,
but it has a steep learning curve. Are there any Tryton specific examples?
--
Tom Schutter
t.sch...@comcast.net
- You can submit a patch (see [1])
- You can hire one of the companies [2]
- You can submit a feature request [3]
> 2) Meanwhile is it possible for me to create a custom report that would
> do this? I have found
> http://doc.tryton.org/2.0/trytond/doc/topics/reports/index.html#topics-reports,
> but it has a steep learning curve. Are there any Tryton specific examples?
I think it will require to use a wizard to ask for the quantity.
[1] https://code.google.com/p/tryton/wiki/HowtoContribute
[2] http://www.tryton.org/services.html
[3] https://elveos.org/en/softwares/852?name=tryton
I have been attempting to create a report based upon the doc at
http://doc.tryton.org/2.0/trytond/doc/topics/reports/index.html#topics-reports
I have created a price_list.odt that should work.
I understand what needs to be added to price_list.xml
But I can't see how to actually attach the report to the UI. I suspect
that the empty "Report API" and "Python API" sections of the Reports doc
would tell me what I need to know if well, they were not empty.
Examining other reports doesn't shed enough light. Sometimes there
appear to be report-related objects in the Python source such as
PickingList in stock/shipment.py, but I can't decypher the why and the
how.
I have the skills, but I am lacking the knowledge of Tryton internals.
--
Tom Schutter
t.sch...@comcast.net
You must create a record "ir.action.report" like in
http://hg.tryton.org/2.0/modules/party/file/0795dfec273a/party.xml#l146
I have this in price_list.xml:
<record model="ir.action.report" id="report_price_list">
<field name="name">Price List</field>
<field name="model">product.price_list</field>
<field name="report_name">product.price_list</field>
<field name="report">product_price_list/price_list.odt</field>
<field name="style">company/header_A4.odt</field>
</record>
<record model="ir.action.keyword" id="report_price_list_keyword">
<field name="keyword">form_print</field>
<field name="model">product.price_list,0</field>
<field name="action" ref="report_price_list"/>
</record>
--
Tom Schutter
t.sch...@comcast.net