[Openerp-community] Odoo License restriction?

2014-07-09 Thread Axel Mendoza Pupo
Some time ago I did some modules for another software based on code taken
from OpenERP v7.0 and those modules was accepted to be part of the software
core functionalities. The modules was developed to be able to send and
receive emails via SMTP, POP3 and IMAP.

My question are related to the license restriction that someone may have
when the code from OpenERP/Odoo is used in a modified form to develop new
features for another software.
Odoo have the license:
GNU AFFERO GENERAL PUBLIC LICENSE, Version 3, 19 November 2007
And the other software have LGPL license

The software maintainer write me with concerns about the license
interactions, and the news that the modules could not be integrated into
the core without removing the OpenERP source code.

Is there a way to allow someone to do this kind of develop based on OpenERP
source code??

We all develop OpenSource
___
Mailing list: https://launchpad.net/~openerp-community
Post to : openerp-community@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openerp-community
More help   : https://help.launchpad.net/ListHelp


Re: [Openerp-community] Odoo License restriction?

2014-07-09 Thread Axel Mendoza Pupo
That's helps a lot, thanks. My modules right now are apart from the core,
the idea is to get integrated into the API ecosystem. They are tools to be
used in an ESB environment to send and receive mails while developing web
services. Right now they live as part as a module, so you said that if the
module is licensed as AGPL 3, then it can be used as a dependency and the
rest of the software could remains LGPL without get contaminated with the
AGPL 3 restrictions??



On Wed, Jul 9, 2014 at 8:32 PM, Raphael Valyi rva...@gmail.com wrote:

 Hello Axel,

 this is probably correct: basically you cannot put AGPL v3 code
 (OpenERP/Odoo) along with LGPL code without distributing the combined work
 under the AGPL v3 (which is aggressively open source ad may not be inline
 with the philosophy of that LGPL software).

 open source sounds like just a simple word but there are very important
 licensing details. For instance if you heard about the Oracle vs Google
 case, both software were open source, Java was GPL and Google developed
 Dalvik under was Apache 2 because they didn't want to use GPL code OpenJDK
 in their phones. You see were it went...

 So yes, that may sounds boring but that's true. Not all open source
 projects have the same vision: GPL and AGPL have a copyleft vision where
 all derivative work should respect their initial license, that ensure for
 instance that any user can get access to the source code. That's very nice
 for the user, but sometimes that's not so nice for the editor business or
 just even the software production, that's why other licenses, such as LGPL
 instead allows making closed source software with their code to some extent.

 The following graph may help you to get an idea of how it works and how
 AGPL v3 seats as the most militant license here:
 http://timreview.ca/ojs/february11/february11_daffara1.png

 (and that's a choice that was made by OpenERP SA during 2009 as they moved
 from GPL to AGPL deliberately)


 Eventually you can take the AGPL code you extracted from OpenERP and wrap
 is in a small web service that you would publish as AGPL code and call that
 webservice from your LGPL code without contaminating it. It's the same
 thing as browsing Odoo with Internet Explorer doesn't force Microsoft to
 publish Internet Explorer closed source source code.

 So AGPL is cool because it prevents some big company to come and make a
 close version of Odoo and destroy the work of everybody from the community
 or even OpenERP SA and the freedom of their users, or even in the
 eventuality OpenERP SA would fail as a business and the founder wouldn't be
 the ones deciding for the software anymore.
 But while it's there to avoid such hijacking, you can still probably work
 around your use case with a proper architecture if you really need some
 Odoo features at some point in your project. In fact the hardest part of
 AGPL is probably the fact that nobody sells modules, so the ecosystem is a
 bit slower to develop, but the good part is that unlike something like
 Magento apps store, it's there to stay.

 Hope this helps.


 --
 Raphaël Valyi
 Founder and consultant
 http://twitter.com/rvalyi http://twitter.com/#!/rvalyi
 +55 21 3942-2434
 www.akretion.com





 On Wed, Jul 9, 2014 at 9:03 PM, Axel Mendoza Pupo aekr...@gmail.com
 wrote:

 Some time ago I did some modules for another software based on code taken
 from OpenERP v7.0 and those modules was accepted to be part of the software
 core functionalities. The modules was developed to be able to send and
 receive emails via SMTP, POP3 and IMAP.

 My question are related to the license restriction that someone may have
 when the code from OpenERP/Odoo is used in a modified form to develop new
 features for another software.
 Odoo have the license:
 GNU AFFERO GENERAL PUBLIC LICENSE, Version 3, 19 November 2007
 And the other software have LGPL license

 The software maintainer write me with concerns about the license
 interactions, and the news that the modules could not be integrated into
 the core without removing the OpenERP source code.

 Is there a way to allow someone to do this kind of develop based on
 OpenERP source code??

 We all develop OpenSource

 ___
 Mailing list: https://launchpad.net/~openerp-community
 Post to : openerp-community@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~openerp-community
 More help   : https://help.launchpad.net/ListHelp



___
Mailing list: https://launchpad.net/~openerp-community
Post to : openerp-community@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openerp-community
More help   : https://help.launchpad.net/ListHelp


Re: [Openerp-community] Javascript JSON-RPC client for OpenERP

2014-02-24 Thread Axel Mendoza Pupo
You should check the OpenERP WebClient JSON-RPC since it has an specific
implementation to manipulate the payload, more specifically the uid of the
session and the httpsession params to maintain the HttpSession in OpenERP
server, you could look at instance.web.Session class in coresetup.js and
in instance.web.JsonRPC at corelib.js who is the class that implements
JsonRPC in the WebClient. All of this js files are located at
/addons/web/static/src/js folder
Hope this helps
Cheers


On Mon, Feb 24, 2014 at 11:23 AM, Daniel Reis dgr...@sapo.pt wrote:

  Hello all,

 I'm trying to build a WebApp proof-of-concept for OpenERP.
 It should be a offline-first, mobile-first app, and work independently
 from OpenERP's webclient.

 For my proof-of-concept I'll be using Boostrap and Backbone with
 LocalStorage.
 These components are already part of OpenERP's stack, and my research
 tells me they can meet my goals.

 Now, my missing piece is the communication with the OpenERP Server.
 I know I can use JSON-RPC, but I can't find any concise documentation on
 how to do it with Javascript.
 I may be missing something obvious, but my next step is going to dig into
 OpenERP web client libraries to figure that out.
 I want to get a working pure javascript example for reading and writing
 data for an OpenERP Model, using JSON-RPC to interact with the server.


 I would greatly appreciate some help from knowledgeable people that could .
 I promise to share the results.

 Regards

 /DR

 ___
 Mailing list: https://launchpad.net/~openerp-community
 Post to : openerp-community@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~openerp-community
 More help   : https://help.launchpad.net/ListHelp


___
Mailing list: https://launchpad.net/~openerp-community
Post to : openerp-community@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openerp-community
More help   : https://help.launchpad.net/ListHelp


Re: [Openerp-community] report_webkit future

2014-02-18 Thread Axel Mendoza Pupo
The solutions to print reports based on HTML DOM combined with specific CSS
rules have that drawback that notebook pages does not get displayed
properly, is this resolved already? This must complete the solution to
render reports based on HTML DOM. If this is resolved already using CSS
rules, sorry my mistake.


On Tue, Feb 18, 2014 at 10:01 AM, Olivier Dony o...@openerp.com wrote:

 On 02/18/2014 11:53 AM, Niels Huylebroeck wrote:

 Nicolas,

 I can't see how you can compare wkhtmltopdf and qweb ?
 Wouldn't it make more sense to compare jinja2 with qweb ?


 Comparing QWeb to Jinja2 is more accurate indeed.

 As you probably know, v8 will introduce a reporting engine based on QWeb
 templates that is also using wkthmltopdf to produce PDF reports [1]
 So you will basically have 2 alternatives to design custom HTML-based
 reports:
  - manual design of Jinja2 templates, with report_webkit
  - manual or wysiwyg design of QWeb templates (using the Website Builder)

 But both will be available for server-side PDF rendering using wkhtmltopdf
 (which has luckily been receiving some love and important features recently)



  I can see some benefit in using qweb to generate the underlying html since
 it would allow inheritance for report generation (stacking multiple
 reports
 on top of the same base templates) and reducing the number of templating
 languages to learn while developing with OpenERP.


 Yes, that's one of the points :-)



  But in the end if you want to print to pdf you will have to either use
 wkhtmltopdf or the browser's own ability to convert html to paginated
 format/layout and save or print the output.

 Currently though I'm not sure if qweb is used for generating the screen
 layout when you do a print (preview) from the browser. Most of the layout
 there is defined by the regular model view afaik.


 QWeb is the templating engine that renders the HTML output of any page,
 and it comes in two flavors:
 - When you access the back-end (the regular OpenERP web client since
 v6.1), the output is rendered client-side using the Javascript-based QWeb
 engine, automatically combining the QWeb templates of the web client widgets
 - When you access the front-end (plain web pages such as Website, Blogs,
 eCommerce, new in v8), the output is rendered server-side using the
 Python-based QWeb engine, by combining the relevant pages and templates

 And in both cases when you use the Print button of your browser the PDF
 result is produced by your browser itself [2], based on the current HTML
 DOM combined with specific CSS rules for printing.
 Server-side PDFs are only rendered when you call a specific report URL,
 such as the new /report/pdf route in Simon's branch [1].



 [1] http://openerp-community.2306076.n4.nabble.com/Openerp-
 community-tests-feedbacks-for-the-new-reporting-tt4644385.html
 [2] Incidentally, if you are using Chrome, the underlying engine is almost
 the same as what wkhtmltopdf uses.

 ___
 Mailing list: https://launchpad.net/~openerp-community
 Post to : openerp-community@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~openerp-community
 More help   : https://help.launchpad.net/ListHelp

___
Mailing list: https://launchpad.net/~openerp-community
Post to : openerp-community@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openerp-community
More help   : https://help.launchpad.net/ListHelp


Re: [Openerp-community] OpenERP and Business Intelligence

2014-01-23 Thread Axel Mendoza Pupo
You could take a look at http://cubes.databrewery.org/ itś a python based
solution, it seems to be a good tool, lightweight, powerful and will be not
very difficult to get integrated into OpenERP

Light-weight Python framework and OLAP HTTP server for easy development of
reporting applications and aggregate browsing of multi-dimensionally
modeled data.

Hope this helps


On Thu, Jan 23, 2014 at 6:00 AM, Eric Caudal eric.cau...@elico-corp.comwrote:

  Thanks everybody for the feedback!
 BTW: the branch in runbot is not responsive. I will test it locally though.

 Eric Caudal*CEO*
 --*Elico Corporation, Shanghai branch
 OpenERP Premium Certified Training Partner *

 Cell: + 86 186 2136 1670
 Office: + 86 21 6211 8017/27/37
 Skype: elico.corperic.cau...@elico-corp.com
 http://www.elico-corp.com

 [image: Elico Corp]
 On 01/23/2014 06:44 PM, Antony Lesuisse wrote:

 You may also check the branch trunk-new-graphview-ged it's available on
 runbot http://runbot.openerp.com/

 It's a new graph view with BI capabilities. It will be merged in trunk in
 a few days.

 https://code.launchpad.net/~openerp-dev/openerp-web/trunk-new-graphview-ged

 On 01/23/2014 07:24 AM, Eric Caudal wrote:

 Hi,
 What are currently the technical solutions available for OpenERP to be
 able to
 generate cubes for Business Intelligence?

 I need to prepare a panel of solutions for one of my customers and would
 like
 to know:
 - Tools and vendors involved
 - Difficulty to integrate withh OpenERP7 current data model
 - Price range if relevant.

 NB:
 I am not really looking for static reporting tools but more for dynamic
 data
 builders (equivalent to Cognos or Crystal Report).
 It doesnot need to be opensource and Google is not an option as google.doc
 is
 not available in China.

 Looking forward to reading you
 --
 Eric CAUDAL

 Eric Caudal
 /CEO/
 --
 *Elico Corporation, Shanghai branch
 /OpenERP Premium Certified Training Partner/  *
 Cell: + 86 186 2136 1670
 Office: + 86 21 6211 8017/27/37
 Skype: elico.corp
 eric.cau...@elico-corp.com  
 mailto:eric.cau...@elico-corp.comeric.cau...@elico-corp.com
 http://www.elico-corp.com

 Elico Corp


 ___
 Mailing list: https://launchpad.net/~openerp-community
 Post to : openerp-community@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~openerp-community
 More help   : https://help.launchpad.net/ListHelp


 ___
 Mailing list: https://launchpad.net/~openerp-community
 Post to : openerp-community@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~openerp-community
 More help   : https://help.launchpad.net/ListHelp



 ___
 Mailing list: https://launchpad.net/~openerp-community
 Post to : openerp-community@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~openerp-community
 More help   : https://help.launchpad.net/ListHelp


elico_signature.jpg___
Mailing list: https://launchpad.net/~openerp-community
Post to : openerp-community@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openerp-community
More help   : https://help.launchpad.net/ListHelp


Re: [Openerp-community] How to debug Record Rules?

2014-01-22 Thread Axel Mendoza Pupo
You should debug inside of domain_get method of ir.rule model to know wish
rules get applied always check for the model_name that you want to debug
for their ir.rules
hope this helps


On Wed, Jan 22, 2014 at 12:28 PM, Daniel Reis dgr...@sapo.pt wrote:

  I need to ask for some advice on this:

 I have some custom record access rule, and have found some cases where the
 users are having unwanted access denied errors.
 My problem is that it's hard to trace how the record rules end up being
 mixed together and figuring out what's wrong.

 Currently, I have to debug into the ORM, and often end up checking long
 ORM-generated SQL sentences, but it's very time consuming.
 I'm hoping someone knows a better technique to sort this out.

 Thanks in advance.

 /DR

 ___
 Mailing list: https://launchpad.net/~openerp-community
 Post to : openerp-community@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~openerp-community
 More help   : https://help.launchpad.net/ListHelp


___
Mailing list: https://launchpad.net/~openerp-community
Post to : openerp-community@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openerp-community
More help   : https://help.launchpad.net/ListHelp


Re: [Openerp-community] Portal partner rule bug

2014-01-16 Thread Axel Mendoza Pupo
Thanks a lot for your response, I solve this successfully thanks to you, I
create a domain rule that apply for read as portal does and apply only to
portal group, anonymous group still find their way into portal rule check
I just forgot that the domain rules for groups apply using OR
Thanks again


On Thu, Jan 16, 2014 at 4:04 AM, Olivier Dony o...@openerp.com wrote:

 On 01/15/2014 03:56 PM, Axel Mendoza Pupo wrote:

 This bug is related with search on model res.partner when the module
 portal is
 installed because of an ir.rule of res.partner in that module security
 Suppose that there is an extension of res.partner that add one or more
 many2one
 fields to res.users, and those users have their own partner, I mean that
 they
 are not users of this parent, just relations to express business. If you
 want
 to do search over those res.users relation fields that involve the
 res.partner
 model, ex:
 [('partner_id.user_urgency_id', '=', uid)]
 then this domain or search that use this domain will not work properly
 due to
 the ir.rule of portal module that adds checks to the domain that cannot
 let you
 find the correct values.


 If an extension adds extra relationships towards users/partners on the
 regular partner model, this extension should decide whether those related
 records should be made available to portal users.

 So it's not a bug, it's a configuration issue. By default the portal
 module will only allow portal users to read their own partner data (i.e.
 the partner that corresponds to their user). This is a security restriction
 to prevent your customers from accessing the list of your other customers,
 suppliers or employees. Otherwise they could do that by following
 relationships on the screens, manipulating URLs or making direct RPC calls.

 So if your extension wants to make the extra relationship data available
 for portal users, it should simply add new ir.rule entries to permit this.

 You should only disable the default portal security rule if you understand
 what you are doing, or if you don't care about security at all.

___
Mailing list: https://launchpad.net/~openerp-community
Post to : openerp-community@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openerp-community
More help   : https://help.launchpad.net/ListHelp


[Openerp-community] Portal partner rule bug

2014-01-15 Thread Axel Mendoza Pupo
This bug is related with search on model res.partner when the module portal
is installed because of an ir.rule of res.partner in that module security
Suppose that there is an extension of res.partner that add one or more
many2one fields to res.users, and those users have their own partner, I
mean that they are not users of this parent, just relations to express
business. If you want to do search over those res.users relation fields
that involve the res.partner model, ex:
[('partner_id.user_urgency_id', '=', uid)]
then this domain or search that use this domain will not work properly due
to the ir.rule of portal module that adds checks to the domain that cannot
let you find the correct values. I my case I don't see anything as results.
The ir.rule of portal module portal_read_own_res_partner, have the
domain_force:
[('user_ids', 'in', user.id)]
To make all work like this rule tell your new many2one relations in
res.partner yould be expressed as user_ids of res.partner, that means that
those users cannot have another partner, they are users of this partner,
and that is not the case.
All works ok when the rule is disabled or deleted to not apply anymore on
res.partner.

Is this rule important for something more that Im missing?

Cheers
___
Mailing list: https://launchpad.net/~openerp-community
Post to : openerp-community@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openerp-community
More help   : https://help.launchpad.net/ListHelp