Re: [tryton-dev] Re: [tryton-contrib] network vs. asset module

2014-08-07 Thread Sergi Almacellas Abellana


El dijous 17 de juliol de 2014 17:28:19 UTC+2, Albert Cervera i Areny 
va escriure:


2014-07-17 16:46 GMT+02:00 Cédric Krier cedric...@b2ck.com
javascript::
 On 17 Jul 16:16, Albert Cervera i Areny wrote:
  name and code seem redondant

 I don't think they're redundant. I see it just like party and
product
 which both have product and code. Though maybe we could make it
work
 like in party, by default. So the sequence is not required.

 It is. You will have generated code or custom name but not both.
 So I guess it should be possible to do it like for party code.

Maybe not name but I think that a 'description' not required field
makes a lot of sense.

  The linkage with stock_lot doesn't seem to me as a real
benefit. But it
  could be a simple informational link if both modules are
installed.

 It should not be a requirement but it has some use cases. For
example,
 a company who sells a large machine for which it later manages its
 maintenance for the customer. When sold, it should use the lot
as a
 serial number but as soon as it starts doing the maintenance it
will
 need to create the asset.

 I think it is wrong. Something you have sold can not be an asset.

I understand you mean that the asset must be owned by the company but
I don't see a reason for limiting this. The activity of a company can
be managing other companies assets.

 I think that whereas the relationship between asset and
account.asset
 should be o2m (you can have different depreciation tables
because the
 asset is paid in several invoices).

 I don't agree. You don't have many depreciation for the same
asset. If
 you have many invoices for the same asset, you just don't link
the asset
 to any invoice line and manage the amount manually.

What's the problem with managing it this way? Anyway I think your
idea
is to add a m2o from account.asset to asset, so it is up to the user
if he wants to create one or several account assets.


May this field be required or optional?



 I think the link between stock.lot
 and asset it would be a o2o. At least I cannot imagine a reason
for
 o2m or m2o here.

 I think o2o is wrong, it should be many2one. Because a lot is not
 necessary a unique serial number. So with a many2one, it will be
more
 flexible.

Good point.



I just uploaded a review that implements it:

http://codereview.tryton.org/8501002/

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



[tryton-dev] Problem to submit a patch to issue_trac...@tryton.org

2014-08-07 Thread fabien . castarede
Hi,

I've tried two times to submit my patch for issue4063 with Patchbomb 
without success. Here is the smtp server response :

This is the mail system at host smtpfb1-g21.free.fr.
I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.
For further assistance, please send mail to postmaster.
If you do so, please include this problem report. You can
delete your own text from the attached returned message.
  The mail system
issue_trac...@tryton.org: host moretus.b2ck.com[94.23.24.155] said: 451 
4.3.5
   Server configuration problem (in reply to RCPT TO command)
Reporting-MTA: dns; smtpfb1-g21.free.fr
X-Postfix-Queue-ID: EB3BE2CC0E
X-Postfix-Sender: rfc822; cas...@free.fr
Arrival-Date: Tue,  5 Aug 2014 21:47:49 +0200 (CEST)
Final-Recipient: rfc822; issue_trac...@tryton.org
Original-Recipient: rfc822;issue_trac...@tryton.org
Action: failed
Status: 4.3.5
Remote-MTA: dns; moretus.b2ck.com
Diagnostic-Code: smtp; 451 4.3.5 Server configuration problem
*De: *Fabien Castarède cas...@free.fr
*Objet: *
*[PATCH] [issue4063]**Date: *5 août 2014 21:47:41 UTC+2
*À: *issue_trac...@tryton.org

issue4063
review6441003

account.patch

Thanks,

Fab. 


Re: [tryton-dev] Problem to submit a patch to issue_trac...@tryton.org

2014-08-07 Thread Cédric Krier
On 07 Aug 01:48, fabien.castar...@gmail.com wrote:
 Hi,
 
 I've tried two times to submit my patch for issue4063 with Patchbomb 
 without success. Here is the smtp server response :
 
 This is the mail system at host smtpfb1-g21.free.fr.
 I'm sorry to have to inform you that your message could not
 be delivered to one or more recipients. It's attached below.
 For further assistance, please send mail to postmaster.
 If you do so, please include this problem report. You can
 delete your own text from the attached returned message.
   The mail system
 issue_trac...@tryton.org: host moretus.b2ck.com[94.23.24.155] said: 451 
 4.3.5
Server configuration problem (in reply to RCPT TO command)

It should be fixed.

-- 
Cédric Krier - B2CK SPRL
Email/Jabber: cedric.kr...@b2ck.com
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/


pgpY_7SryyYBA.pgp
Description: PGP signature