Skip to content

Commit

Permalink
[MERGE] forward port branch 9.0 up to 799f12c
Browse files Browse the repository at this point in the history
  • Loading branch information
KangOl committed Dec 6, 2016
2 parents 5301951 + 799f12c commit 345755e
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 1 deletion.
7 changes: 6 additions & 1 deletion addons/account_asset/account_asset.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,12 @@ def compute_depreciation_board(self):
if self.value_residual != 0.0:
amount_to_depr = residual_amount = self.value_residual
if self.prorata:
depreciation_date = datetime.strptime(self._get_last_depreciation_date()[self.id], DF).date()
# if we already have some previous validated entries, starting date is last entry + method period
if posted_depreciation_line_ids and posted_depreciation_line_ids[-1].depreciation_date:
last_depreciation_date = datetime.strptime(posted_depreciation_line_ids[-1].depreciation_date, DF).date()
depreciation_date = last_depreciation_date + relativedelta(months=+self.method_period)
else:
depreciation_date = datetime.strptime(self._get_last_depreciation_date()[self.id], DF).date()
else:
# depreciation_date = 1st of January of purchase year if annual valuation, 1st of
# purchase month in other cases
Expand Down
11 changes: 11 additions & 0 deletions doc/cla/individual/kurkop.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Colombia, 2015-12-23

I hereby agree to the terms of the Odoo Individual Contributor License
Agreement v1.0.

I declare that I am authorized and able to make this agreement and sign this
declaration.

Signed,

Juan Pablo Arias jpa@devco.co https://github.com/kurkop
1 change: 1 addition & 0 deletions openerp/addons/base/res/res_country_data.xml
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,7 @@
<field file="base/static/img/country_flags/co.png" name="image" type="base64" />
<field name="currency_id" ref="COP" />
<field eval="57" name="phone_code" />
<field name="address_format" eval="'%(street)s\n%(street2)s\n%(city)s %(state_name)s %(zip)s\n%(country_name)s'" />
</record>
<record id="cr" model="res.country">
<field name="name">Costa Rica</field>
Expand Down
1 change: 1 addition & 0 deletions openerp/addons/base/res/res_currency_data.xml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
<field name="symbol">$</field>
<field name="rounding">0.01</field>
<field name="active" eval="False"/>
<field name="position">before</field>
</record>

<record id="CZK" model="res.currency">
Expand Down

0 comments on commit 345755e

Please sign in to comment.