openerp-community team mailing list archive
-
openerp-community team
-
Mailing list archive
-
Message #06981
Re: Suggestion for OCA conventions
@sylvain
ok for me
makes sense to have 'mandatory' and 'nice to have' rules
and in 'nice to have' could we capture travis answers in PR comments like ?
"your file ... have more X00 lines, have you considered to split several
files to improve readbility ..."
or
"seems there are no link between models in your file ..."
maybe with these kinds of tools https://pythonhosted.org/jig/
my 2 cents
David BEAL - Akretion
Odoo Development / Integration
+33 (0)6 67 22 86 89 - +33 (0)4 82 53 84 60
2014-10-21 15:12 GMT+02:00 Sylvain LE GAL <sylvain.legal@xxxxxxxxx>:
> Stefen, Raphael +1
>
> What about to have 2 sections in
> http://odoo-community.org/page/website.how-to
>
> - "Mandatory" rules: pep8 ... that will block PR if not respected;
> - "Nice to Have" rules with sandy's remarks (and others conventions), that
> will not block PR;
>
> My 2 cents.
>
> *Sylvain LE GAL*
>
> * Service informatiqueGroupement Régional Alimentaire de Proximité*
> 3 Grande rue des feuillants 69001 Lyon
> *Bureau : *(+33) 09.72.32.33.17
> *Astreinte :* (+33) 06.81.85.61.43
> *Site Web** : *www.grap.coop
> *Twitter : *@legalsylvain* <https://twitter.com/legalsylvain>*
>
> 2014-10-21 14:37 GMT+02:00 Raphael Valyi <rvalyi@xxxxxxxxx>:
>
>> Hello, I share the same opinion as Stefan about this.
>> In any case we should not forget the big picture and loose our energy on
>> details that could easily become void depending on the big picture, even if
>> ideally enforcing such guidelines will be great for new stuff or
>> refactoring.
>>
>> Regards and thanks for the work.
>>
>> On Tue, Oct 21, 2014 at 10:15 AM, Stefan <stefan@xxxxxxxx> wrote:
>>
>>> On 20-10-14 16:52, Sandy Carter wrote:
>>> > What the consensus I seem to get out of this is: Often it is better to
>>> > separate the models (especially in xml), but there are some acceptable
>>> > exceptions:
>>> >
>>> > * Small changes to models
>>> > * One to many relationships (single column add to related model)
>>> > * At some point, a small change becomes to big and the file must be
>>> split.
>>> > * All changes are very closely related to a same feature
>>> > * Wizards
>>> > * Connectors (I'm adding this one)
>>> >
>>> > No one seemed to object to naming the Class, .py file and xml files
>>> > according to the model (or largest model in the case of filenames).
>>> >
>>> > Is this something we can agree on?
>>>
>>> Thanks for writing such a clear motivation! I support your proposal, as
>>> long as refactorings along these lines will not be demanded in reviews
>>> of small bug fixing pull requests in legacy modules.
>>>
>>>
>>>
>>> _______________________________________________
>>> Mailing list: https://launchpad.net/~openerp-community
>>> Post to : openerp-community@xxxxxxxxxxxxxxxxxxx
>>> Unsubscribe : https://launchpad.net/~openerp-community
>>> More help : https://help.launchpad.net/ListHelp
>>>
>>
>>
>> _______________________________________________
>> Mailing list: https://launchpad.net/~openerp-community
>> Post to : openerp-community@xxxxxxxxxxxxxxxxxxx
>> Unsubscribe : https://launchpad.net/~openerp-community
>> More help : https://help.launchpad.net/ListHelp
>>
>>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~openerp-community
> Post to : openerp-community@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~openerp-community
> More help : https://help.launchpad.net/ListHelp
>
>
References
-
Suggestion for OCA conventions
From: Sandy Carter, 2014-10-17
-
Re: Suggestion for OCA conventions
From: David Beal, 2014-10-17
-
Re: Suggestion for OCA conventions
From: Sandy Carter, 2014-10-17
-
Re: Suggestion for OCA conventions
From: Pedro Manuel Baeza Romero, 2014-10-18
-
Re: Suggestion for OCA conventions
From: Daniel Reis, 2014-10-19
-
Re: Suggestion for OCA conventions
From: Sylvain LE GAL, 2014-10-19
-
Re: Suggestion for OCA conventions
From: Graeme Gellatly, 2014-10-19
-
Re: Suggestion for OCA conventions
From: Guewen Baconnier, 2014-10-20
-
Re: Suggestion for OCA conventions
From: Leonardo Pistone, 2014-10-20
-
Re: Suggestion for OCA conventions
From: Sandy Carter, 2014-10-20
-
Re: Suggestion for OCA conventions
From: Stefan, 2014-10-21
-
Re: Suggestion for OCA conventions
From: Raphael Valyi, 2014-10-21
-
Re: Suggestion for OCA conventions
From: Sylvain LE GAL, 2014-10-21