Re: [Openerp-community] Giving credits to module contributors

2013-11-22 Thread Francesco Apruzzese

+1 if we add a new list value in __openerp__.py file called authors

"authors" : ['John Doe ','My Name ']

Nella citazione in data ven 22 nov 2013 12:56:38 CET, Maxime Chambreuil 
ha scritto:

Hello everyone,

I would like to raise an issue regarding the subject. Depending on
each of us, today we have a different way of managing contributors list.

Here are some ways I have seen so far :

 1. At the end of the description field in the module manifest
 2. In a AUTHORS.txt file at the root of the module
 3. In the header of each file of the source code

I like the first one as it allows to give those contributors
visibility when reading the description within OpenERP or on Apps.
Displaying a long list of contributors also gives a good information
about the popularity of a module.

If everyone agrees on this, I would like to add this to the
documentation. Contributors would be listed as "Firstname Lastname
"

What do you think ?

Regards,
--
Maxime Chambreuil
+1 (514) 276-5468 #126



___
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] Style: dictionaries

2013-12-04 Thread Francesco Apruzzese

The second one is the best for me.

Nella citazione in data mer 04 dic 2013 17:24:37 CET, Leonardo Pistone 
ha scritto:

Hi all,
I bring to your attention Sandy's review here:

https://code.launchpad.net/~camptocamp/stock-logistic-flows/6.1-add-mrp_open_lot_attributes-lep/+merge/196749


according to pep8, two styles of indentation are possible. Take for
example a dictionary:

{'name': 'spam',
 'color': 'brown'
 }

or

{
'name': 'eggs',
'color': 'white'
}

According to the pep8 document and to the pep8 checker, they both
work. I personally would accept both.

What do you think?

Best, Leo


___
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


[Openerp-community] OpenERP Magento connector is killing me! How to update product

2014-01-14 Thread Francesco Apruzzese

Hi all.

We are using openerp-magento-connector ( 
http://openerp-magento-connector.com/) but we have problem with product 
update. How can we update the product? What menu we must use to do this?


Please help us becose this is a big limit now
___
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] Re-Compute storable function field

2014-02-06 Thread Francesco Apruzzese

Hi all,

sometime I need to re-compute a field function based on a particular 
store structure. I need to recompute the function without change data in 
the original recod. It's possible? Now my solution is to set the store 
parameter on True, restart the OpenERP server, stop it, reset the store 
to the original value and start the server again. This make me crazy 
everytime.


___
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] Re-Compute storable function field

2014-02-06 Thread Francesco Apruzzese


Il 06/02/2014 14:46, Leonardo Pistone ha scritto:

Francesco,

have you tried to specify a trigger method for your field instead of
just store=True?

On Thu, Feb 6, 2014 at 2:42 PM, Francesco Apruzzese  wrote:

Hi all,

sometime I need to re-compute a field function based on a particular store
structure. I need to recompute the function without change data in the
original recod. It's possible? Now my solution is to set the store parameter
on True, restart the OpenERP server, stop it, reset the store to the
original value and start the server again. This make me crazy everytime.

___
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


Hi Leonardo,

my function is based on a trigger method yet but if the fields set in 
the store structure (or one of them) don't change, the function doesn't 
do what I want. Sometime I change the function code but the data are the 
some and I need that the function change the field value based on the 
new code.


___
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] Re-Compute storable function field

2014-02-06 Thread Francesco Apruzzese


Il 06/02/2014 15:03, Holger Brunn ha scritto:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256


sometime I need to re-compute a field function based on a
particular store structure. I need to recompute the function
without change data in the original recod. It's possible? Now my
solution is to set the store parameter on True, restart the OpenERP
server, stop it, reset the store to the original value and start
the server again. This make me crazy everytime.

create a button that calls _update_store
(http://bazaar.launchpad.net/~openerp/openobject-server/7.0/view/head:/openerp/osv/orm.py#L2795)
on the model/field you want to recompute

Wasn't there a development helper module floating around that does
stuff like this?

- -- 
Therp - Maatwerk in open ontwikkeling


Holger Brunn - Ontwerp en implementatie

mail: hol...@therp.nl
web: http://therp.nl
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Icedove - http://www.enigmail.net/

iF4EAREIAAYFAlLzljQACgkQAcl2D+yjrhhhogD+PHS1JoQD1YgbHYCgqCQ5+d1N
aJPmJEkuQyjYkn+Gul4BALsmwl8wkEIY21Ys+ehdMJQxkJEFjsVI9FM+EeNKbXU0
=HlH+
-END PGP SIGNATURE-

___
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


Thank you but for me this ins't a professional solution

___
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] Re-Compute storable function field

2014-02-06 Thread Francesco Apruzzese


Il 06/02/2014 15:51, Christopher Ormaza ha scritto:

I had the same problem, I resolved it as follows:

  * Create a class with one field of type datetime
  * The class had wanted to recalculate the fields without the
intervention of some other process will add the datetime field as
a trigger of the other class
  * Create a cron that was responsible for writing the datetime field
which is sent to recalculate the fields of the class wanted to work

It's a little cumbersome but it worked me


2014-02-06 Francesco Apruzzese <mailto:cesc...@gmail.com>>:


Hi all,

sometime I need to re-compute a field function based on a
particular store structure. I need to recompute the function
without change data in the original recod. It's possible? Now my
solution is to set the store parameter on True, restart the
OpenERP server, stop it, reset the store to the original value and
start the server again. This make me crazy everytime.

___
Mailing list: https://launchpad.net/~openerp-community
<https://launchpad.net/%7Eopenerp-community>
Post to : openerp-community@lists.launchpad.net
<mailto:openerp-community@lists.launchpad.net>
Unsubscribe : https://launchpad.net/~openerp-community
<https://launchpad.net/%7Eopenerp-community>
More help   : https://help.launchpad.net/ListHelp




--
logo
*Christopher Ormaza* /OpenERP Expert/ /, Ecuadorenlinea.net/
| Mobile: 593980160581
chris.orm...@gmail.com <mailto:chris.orm...@gmail.com> | 
http://openerpecuador.org |


Too much work for a stupid problem. I think all our solutions arre valid 
but every solution require too time for this type of problem. I think a 
solution can be to add the possibility to pass a parameter to terminal 
when you lanch openerp that indcate to re-calculate the function. So a 
developer can test his code in a simplest way.
___
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] wkhtmltopdf 12.x repeat THEAD/TFOOT when table contains page breaks

2014-02-19 Thread Francesco Apruzzese

What feature are you talking about?

Il 18/02/2014 20:48, Ferdinand Gassauer ha scritto:

spread the word
a long outstanding feature arrived

http://wkhtmltopdf.org/



___
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-19 Thread Francesco Apruzzese

and +1000 here!!

Il 19/02/2014 13:39, Dave Burkholder ha scritto:

+1,000

On 2/19/2014 6:54 AM, Pedro Manuel Baeza Romero wrote:
Hi, Antony, ¡excellent news! Why don't you develop this option 
directly in the core and give people the possibility to select output 
format on report definition the same as Aeroo does?


About my question of the other mail, do you plan to improve report 
engine with community feedback?


Regards.


2014-02-19 12:49 GMT+01:00 Antony Lesuisse >:


Yes i forgot to mention that the new report module natively
support excel reports (or anything else, png, svg, odt...).

For an excel report you should define a controller that output
the file. For excel 97 you may use xlwt, for excel 2007 and above
you could use qweb with the bloated office xml format xlsx.

@http.route('/mymodule/report/mymodel_excel97_report1/',
type='http', auth="user")
def export_xls(self,ids):
workbook = xlwt.Workbook()
(...)
   response = request.make_response(None,
headers=[('Content-Type', 'application/vnd.ms-excel'),
('Content-Disposition', 'attachment; filename=table.xls;')])
   workbook.save(response.stream)
   return response

Then you define a 'qweb-pdf' report (yes we need to rename this
into 'controller').

We will add an example in the report module.


On 02/19/2014 06:45 AM, Carlos Vásquez wrote:

Antony,

What about generating spreadsheets or text documents? Have
you looked for
something like wkhtmltopdf that is capable of generating a
xls, doc, ods or
odt from an html? Is it in your plans?

This could be, I think, the missing feature to ensure the
community is on
board with this change.

I really like the qweb report engine. You guys have done a
great job. We will
start migrating our main report set for the localization by
the end of March.
Do you have an idea of when will it be merged in trunk (more
or less)? This
can help to plan our work to prepare for v8.

Regards,
--
PS: escribí este email desde mi teléfono, por favor disculpe
la brevedad y
cualquier error de escritura.

Carlos Vásquez
CTO · Director de Ingeniería

carlos.vasq...@clearcorp.co.cr

>

CR: +(506) 4000 CORP (4000 2677)
US: +1 (786) 472-4267 
Cel: +(506) 8351 4484 
skype: crvasquez
twitter: cvclearcorp

300 m. Este de la Escuela
Calle de Platanares
11402 San Jerónimo, Moravia
San José, Costa Rica

http://www.clearcorp.co.cr


___
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


___
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-20 Thread Francesco Apruzzese


Il 19/02/2014 23:09, Marc Pierlot ha scritto:

open erp is bad



[troll]
Open Erp is bad! You're right! But OpenERP is cool!
[/troll]

___
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] Rationale for proposing the project "openerp-nomenclature" to join the OCA projects

2014-03-15 Thread Francesco Apruzzese


Il 15/03/2014 09:07, Franco Tampieri ha scritto:

Hi Joel,

Last days talking with Lionel, we have though to propose to create a 
team named: openerp-eu-data with subproject openerp-nomenclature: this 
project aims to contains all the data like bank address lists by 
nation, NACE categorization, City/ZIP address list and so on (Only 
Data in xml file format and very very little logic).


What do you think?


Why XML? Why not CSV?
___
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] [Merge] lp:~therp-nl/server-env-tools/6.1-mass_editing-fix_dataloss into lp:~openerp-community/server-env-tools/6.1-mass_editing

2014-03-17 Thread Francesco Apruzzese


Il 17/03/2014 17:38, Yannick Vaucher @ Camptocamp ha scritto:

Review: Needs Fixing

Instead of dict.update({split_key: m2m_list})

You can simply write

dict['split_key'] = m2m_list

It might be a bit more readable


If you use dict['split_key'], are you sure 'split_key' key exists in 
dict? If you use update, python create the key for you if not exist or 
update it if exists yet.


___
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] CamelCase

2014-04-04 Thread Francesco Apruzzese

+1 for jeff.wang

Il 04/04/2014 11:47, jeff.wang ha scritto:

Hi All,

Totally agree, underscore is working well, CamelCase make no sense.

--
Jeff Wang |  j...@osbzr.com | 18016291663 | 02158980787
@OpenERP_Jeff "As simple as possible, As complex as needed"

Maintainer of Open ERP china community
http://www.openerp-china.org


-- Original --
*From: * "Guewen Baconnier";;
*Date: * Fri, Apr 4, 2014 05:25 PM
*To: * "openerp-community";
*Subject: * Re: [Openerp-community] CamelCase

On 04/04/2014 11:05 AM, Sebastien Beau wrote:
> Hi All,
> I always hesitate to move or not on CamelCase for every class in OCA 
module.

> I prefer CamelCase but a lot of code do not use it.
> And sometime not using CamelCase can introduce bug and you have to 
rename

> the class in something different like here
> 
https://code.launchpad.net/~camptocamp/carriers-deliveries/7.0-change-class-name-to-avoid-error_rde/+merge/213881

>
> Maybe it's time to move on CamelCase and update the great Nicolas Bessi
> tools to check the class name 
(https://github.com/nbessi/openerp-conventions

> )?
>
> What do you think?
>


Hi,

I totally support pep8 usually, but I'm also an advocate of consistency,
and on this point actually if we want to be consistent, we have to use
the underscore style. One of the pep8's main point is the consistency
(in the chapter "A Foolish Consistency is the Hobgoblin of Little
Minds"), stating:


Some other good reasons to ignore a particular guideline:
[...]
2. To be consistent with surrounding code that also breaks it (maybe for
historic reasons) -- although this is also an opportunity to clean up
someone else's mess (in true XP style).
[...]


That's not that important so I won't really argue about this choice, but
my opinion is that we should stick with the underscores to be
consistent. Or switch to CamelCase but propose the change on the
official addons, which sounds like to me a wasted effort that would
never be merged.


- Guewen

[0] http://legacy.python.org/dev/peps/pep-0008/#id9



___
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


Re: [Openerp-community] CamelCase

2014-04-04 Thread Francesco Apruzzese


Il 04/04/2014 16:25, Mariano Ruiz ha scritto:
I agree with Sylvain, the correct direction is follow the OpenERP SA 
guidelines, and if OpenERP SA will be change to CamelCase, then will 
be good move to this direction all community addons.




It's not important WHAT OpenERP SA guidelines say but WHY OpenERP SA 
guidelines say this!

Why change class name in camel case style? Is this usefull for anything?
___
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] Advance search on Web client

2014-04-11 Thread Francesco Apruzzese


Il 10/04/2014 19:58, Robin Bahadur ha scritto:


Hello Community

 I am digging into advance search and I found that there is a 
need of two date search field on top of tree view. Start date and End 
date same search that we have in journal items tree view.


Global search for all tree view.
Start date & End date.

I want all your views for this feature.




+10

It's a feature all users search in OpenERP!!!
___
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] Draft Proposal for a new field type for OpenERP/Odoo

2014-07-14 Thread Francesco Apruzzese

Il 14/07/2014 09:52, Alaney Kilson Dória ha scritto:

Hi all,

We are sending a draft proposal for new field type for OpenERP. This 
is a draft that all can contribute with the main idea, and we are open 
to suggestions and feedback.




Why XML and not JSON?

___
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] Print a string for EVERY write

2014-10-14 Thread Francesco Apruzzese

Hi all,

I need to print a string for EVERY write in OpenERP 7. I'm trying to 
inherit BaseModel to super the "write" function but this isn't the right 
way (I think).


Can anyone help me?

___
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] Print a string for EVERY write

2014-10-14 Thread Francesco Apruzzese

Il 14/10/2014 12:24, atchutha...@gmail.com ha scritto:

Thank you! This is what i'm searching!


Hi,

You can use the functionality used at Connector module available 
at OCA(https://github.com/OCA/connector/blob/7.0/connector/producer.py)


from openerp.osv import orm
write_original = orm.BaseModel.write
def write(self, cr, uid, ids, vals, context=None):
print "Your custom statement"
# Create a logger entry here
result = write_original(self, cr, uid, ids, vals, context=context)
return result
orm.BaseModel.write = write

Add this python code in your module, then for every WRITE function, 
your custom string will be printed to your console.





___
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