[MERGE] forward port branch 9.0 up to 799f12c
This commit is contained in:
@@ -198,7 +198,12 @@ class AccountAssetAsset(models.Model):
|
||||
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
|
||||
|
||||
@@ -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
|
||||
@@ -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>
|
||||
|
||||
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user