Skip to content

Commit

Permalink
[TEST] New local repo
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonioMariaVigliotti committed Mar 5, 2021
1 parent 51d94b0 commit e45917c
Show file tree
Hide file tree
Showing 1,021 changed files with 221,630 additions and 117,284 deletions.
Empty file modified .github/ISSUE_TEMPLATE.md
100644 → 100755
Empty file.
Empty file modified .github/PULL_REQUEST_TEMPLATE.md
100644 → 100755
Empty file.
8 changes: 8 additions & 0 deletions .gitignore
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,21 @@ stdout.log
./project/
.gitrepname
OCB/
account-reconcile
l10n-italy-supplemental/
management-system/
profiles/
uncovered/
__to_remove/
apuliasoftware/
crm/
commission/
sale-workflow/
contract/
project/
purchase-workflow/
server-brand/
web/
website-themes/
website/
zerobug-test/
Empty file modified .gitmodules
100644 → 100755
Empty file.
Empty file modified .mailmap
100644 → 100755
Empty file.
Empty file modified .travis.yml
100644 → 100755
Empty file.
Empty file modified .tx/config
100644 → 100755
Empty file.
Empty file modified CONTRIBUTING.md
100644 → 100755
Empty file.
Empty file modified COPYRIGHT
100644 → 100755
Empty file.
Empty file modified LICENSE
100644 → 100755
Empty file.
Empty file modified MANIFEST.in
100644 → 100755
Empty file.
Empty file modified Makefile
100644 → 100755
Empty file.
975 changes: 499 additions & 476 deletions README.rst

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion addons/account/models/account.py
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,7 @@ def name_search(self, name='', args=None, operator='ilike', limit=100):
@api.depends('company_id')
def _belong_to_company(self):
for journal in self:
journal.belong_to_company = (journal.company_id.id == self.env.user.company_id.id)
journal.belongs_to_company = (journal.company_id.id == self.env.user.company_id.id)

@api.multi
def _search_company_journals(self, operator, value):
Expand Down
2 changes: 1 addition & 1 deletion addons/account/models/account_bank_statement.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ def reconciliation_widget_preprocess(self):

#try to assign partner to bank_statement_line
stl_to_assign_partner = [stl.id for stl in st_lines_left if not stl.partner_id]
refs = list(set([st.name for st in st_lines_left if not stl.partner_id]))
refs = list(set([st.name for st in st_lines_left if not st.partner_id]))
if st_lines_left and stl_to_assign_partner and refs\
and st_lines_left[0].journal_id.default_credit_account_id\
and st_lines_left[0].journal_id.default_debit_account_id:
Expand Down
3 changes: 3 additions & 0 deletions addons/account/models/account_invoice.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ def _default_journal(self):
('type', 'in', filter(None, map(TYPE2JOURNAL.get, inv_types))),
('company_id', '=', company_id),
]
# [antoniov: 2020-02-26] journal sequence order
return self.env['account.journal'].search(domain, order='sequence', limit=1)

@api.model
Expand Down Expand Up @@ -1076,6 +1077,8 @@ def _prepare_refund(self, invoice, date_invoice=None, date=None, description=Non

values['type'] = TYPE2REFUND[invoice['type']]
values['date_invoice'] = date_invoice or fields.Date.context_today(invoice)
if values.get('date_due', False) and values['date_invoice'] > values['date_due']:
values['date_due'] = values['date_invoice']
values['state'] = 'draft'
values['number'] = False
values['origin'] = invoice.number
Expand Down
7 changes: 4 additions & 3 deletions addons/account/models/account_move.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@ def _reconcile_reversed_pair(self, move, reversed_move):
@api.multi
def _reverse_move(self, date=None, journal_id=None):
self.ensure_one()
date = date or fields.Date.today()
reversed_move = self.copy(default={
'date': date,
'journal_id': journal_id.id if journal_id else self.journal_id.id,
Expand Down Expand Up @@ -322,7 +323,7 @@ def _amount_residual(self):
else:
date = partial_line.credit_move_id.date if partial_line.debit_move_id == line else partial_line.debit_move_id.date
rate = line.currency_id.with_context(date=date).rate
amount_residual_currency += sign_partial_line * line.currency_id.round(partial_line.amount * rate)
amount_residual_currency += sign_partial_line * partial_line.amount * rate

#computing the `reconciled` field. As we book exchange rate difference on each partial matching,
#we can only check the amount in company currency
Expand Down Expand Up @@ -434,8 +435,8 @@ def _get_counterpart(self):
help="Technical field used to mark a tax line as exigible in the vat report or not (only exigible journal items are displayed). By default all new journal items are directly exigible, but with the module account_tax_cash_basis, some will become exigible only when the payment is recorded.")

_sql_constraints = [
('credit_debit1', 'CHECK (credit*debit=0)', 'Wrong credit or debit value in accounting entry !'),
('credit_debit2', 'CHECK (credit+debit>=0)', 'Wrong credit or debit value in accounting entry !'),
('credit_debit1', 'CHECK (credit*debit=0)', 'Wrong credit or debit value in accounting entry! Credit or debit should be zero.'),
('credit_debit2', 'CHECK (credit+debit>=0)', 'Wrong credit or debit value in accounting entry! Credit and debit should be positive.'),
]

@api.multi
Expand Down
7 changes: 3 additions & 4 deletions addons/account/models/partner.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ class ResPartner(models.Model):

@api.multi
def _credit_debit_get(self):
tables, where_clause, where_params = self.env['account.move.line']._query_get()
tables, where_clause, where_params = self.env['account.move.line'].with_context(company_id=self.env.user.company_id.id)._query_get()
where_params = [tuple(self.ids)] + where_params
if where_clause:
where_clause = 'AND ' + where_clause
Expand Down Expand Up @@ -241,9 +241,9 @@ def _asset_difference_search(self, account_type, operator, operand):
LEFT JOIN account_move_line aml ON aml.partner_id = partner.id
RIGHT JOIN account_account acc ON aml.account_id = acc.id
WHERE acc.internal_type = %s
AND NOT acc.deprecated
AND NOT acc.deprecated AND acc.company_id = %s
GROUP BY partner.id
HAVING %s * COALESCE(SUM(aml.amount_residual), 0) ''' + operator + ''' %s''', (account_type, sign, operand))
HAVING %s * COALESCE(SUM(aml.amount_residual), 0) ''' + operator + ''' %s''', (account_type, self.env.user.company_id.id, sign, operand))
res = self._cr.fetchall()
if not res:
return [('id', '=', '0')]
Expand All @@ -261,7 +261,6 @@ def _debit_search(self, operator, operand):
def _invoice_total(self):
account_invoice_report = self.env['account.invoice.report']
if not self.ids:
self.total_invoiced = 0.0
return True

user_currency_id = self.env.user.company_id.currency_id.id
Expand Down
2 changes: 1 addition & 1 deletion addons/account/views/report_invoice.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<data>
<template id="report_invoice_document">
<t t-call="report.external_layout">
<t t-set="o" t-value="o.with_context({'lang':o.partner_id.lang})" />
<t t-set="o" t-value="o.with_context(lang=o.partner_id.lang)" />
<div class="page">
<div class="row">
<div name="invoice_address" class="col-xs-5 col-xs-offset-7">
Expand Down
3 changes: 2 additions & 1 deletion addons/account/views/report_overdue.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
<div class="page">
<div class="row">
<div class="col-xs-5 col-xs-offset-7">
<span t-field="o.name"/><br/>
<!-- When partner is a company, its name is included in contact_address -->
<span t-if="not o.is_company"><span t-field="o.name"/><br/></span>
<span t-raw="o.contact_address.replace('\n\n', '\n').replace('\n', '&lt;br&gt;')"/>
<span t-field="o.vat"/>
</div>
Expand Down
5 changes: 5 additions & 0 deletions addons/account_asset/i18n/account_asset.pot
Original file line number Diff line number Diff line change
Expand Up @@ -737,6 +737,11 @@ msgstr ""
msgid "Next Period Depreciation"
msgstr ""

#. module: account_asset
#: model:ir.ui.view,arch_db:account_asset.view_asset_asset_report_search
msgid "Not archived"
msgstr ""

#. module: account_asset
#: model:ir.model.fields,field_description:account_asset.field_account_asset_asset_note
msgid "Note"
Expand Down
24 changes: 15 additions & 9 deletions addons/account_asset/i18n/ar.po
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,28 @@
# * account_asset
#
# Translators:
# Ghaith Gammar <g.gammar@saharaifs.net>, 2016
# Walid Baruni <baruni@osoul.ly>, 2016
# Martin Trigaux <mat@odoo.com>, 2016
# Ali zuaby <ali@zuaby.net>, 2016
# Mustafa Rawi <mustafa@cubexco.com>, 2016
# Osama Ahmaro <osamaahmaro@gmail.com>, 2016
# Eng.Walid Ramadan <tdatasa@gmail.com>, 2016
# Akram Alfusayal <akram_ma@hotmail.com>, 2016
# Mohammed Albasha <m.albasha.ma@gmail.com>, 2016
# hoxhe Aits <hoxhe0@gmail.com>, 2016
# amrnegm <amrnegm.01@gmail.com>, 2016
# hoxhe Aits <hoxhe0@gmail.com>, 2016
# Mohammed Ibrahim <m.ibrahim@mussder.com>, 2016
# Eng.Walid Ramadan <tdatasa@gmail.com>, 2016
# Martin Trigaux, 2016
# hamza tayseer atieh <hamza.atieh@minervadata.com>, 2016
# Osama Ahmaro <osamaahmaro@gmail.com>, 2016
# Mustafa Rawi <mustafa@cubexco.com>, 2016
# Osoul <baruni@osoul.ly>, 2016
# Mustafa J. Kadhem <safi2266@gmail.com>, 2016
# Ghaith Gammar <g.gammar@saharaifs.net>, 2017
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0c\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-09-07 08:56+0000\n"
"PO-Revision-Date: 2016-09-07 08:56+0000\n"
"Last-Translator: Mustafa J. Kadhem <safi2266@gmail.com>, 2016\n"
"PO-Revision-Date: 2016-09-07 09:15+0000\n"
"Last-Translator: Ghaith Gammar <g.gammar@saharaifs.net>, 2017\n"
"Language-Team: Arabic (https://www.transifex.com/odoo/teams/41243/ar/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
Expand Down Expand Up @@ -782,6 +783,11 @@ msgstr "الايرادات الشهرية المتكررة"
msgid "Next Period Depreciation"
msgstr "إستهلاك الفترة القادمة"

#. module: account_asset
#: model:ir.ui.view,arch_db:account_asset.view_asset_asset_report_search
msgid "Not archived"
msgstr ""

#. module: account_asset
#: model:ir.model.fields,field_description:account_asset.field_account_asset_asset_note
msgid "Note"
Expand Down
14 changes: 10 additions & 4 deletions addons/account_asset/i18n/bg.po
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,20 @@
#
# Translators:
# kalatchev, 2016
# Maria Boyadjieva <marabo2000@gmail.com>, 2016
# Martin Trigaux, 2016
# Kaloyan Naumov <kaloyan@lumnus.net>, 2016
# Martin Trigaux, 2016
# kirily <kiril@teracomp.eu>, 2017
# Albena Mincheva <albena_vicheva@abv.bg>, 2018
# Boyan Rabchev <boyan.rabchev@plana.solutions>, 2018
# Maria Boyadjieva <marabo2000@gmail.com>, 2018
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0c\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-09-07 08:56+0000\n"
"PO-Revision-Date: 2016-09-07 08:56+0000\n"
"Last-Translator: Boyan Rabchev <boyan.rabchev@plana.solutions>, 2018\n"
"PO-Revision-Date: 2016-09-07 09:15+0000\n"
"Last-Translator: Maria Boyadjieva <marabo2000@gmail.com>, 2018\n"
"Language-Team: Bulgarian (https://www.transifex.com/odoo/teams/41243/bg/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
Expand Down Expand Up @@ -786,6 +787,11 @@ msgstr "Месечно периодичен приход"
msgid "Next Period Depreciation"
msgstr "Амортизация за следващ период"

#. module: account_asset
#: model:ir.ui.view,arch_db:account_asset.view_asset_asset_report_search
msgid "Not archived"
msgstr ""

#. module: account_asset
#: model:ir.model.fields,field_description:account_asset.field_account_asset_asset_note
msgid "Note"
Expand Down
14 changes: 10 additions & 4 deletions addons/account_asset/i18n/bs.po
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,17 @@
# * account_asset
#
# Translators:
# Martin Trigaux <mat@odoo.com>, 2016
# Boško Stojaković <bluesoft83@gmail.com>, 2016
# Bole <bole@dajmi5.com>, 2016
# Martin Trigaux, 2016
# Boško Stojaković <bluesoft83@gmail.com>, 2017
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0c\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-09-07 08:56+0000\n"
"PO-Revision-Date: 2016-09-07 08:56+0000\n"
"Last-Translator: Bole <bole@dajmi5.com>, 2016\n"
"PO-Revision-Date: 2016-09-07 09:15+0000\n"
"Last-Translator: Boško Stojaković <bluesoft83@gmail.com>, 2017\n"
"Language-Team: Bosnian (https://www.transifex.com/odoo/teams/41243/bs/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
Expand Down Expand Up @@ -765,6 +766,11 @@ msgstr ""
msgid "Next Period Depreciation"
msgstr "Sljedeći period amortizacije"

#. module: account_asset
#: model:ir.ui.view,arch_db:account_asset.view_asset_asset_report_search
msgid "Not archived"
msgstr ""

#. module: account_asset
#: model:ir.model.fields,field_description:account_asset.field_account_asset_asset_note
msgid "Note"
Expand Down
14 changes: 10 additions & 4 deletions addons/account_asset/i18n/ca.po
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,19 @@
# * account_asset
#
# Translators:
# RGB Consulting <odoo@rgbconsulting.com>, 2016
# Martin Trigaux, 2016
# Marc Tormo i Bochaca <mtbochaca@gmail.com>, 2016
# Eric Antones <eantones@users.noreply.github.com>, 2016
# Carles Antoli <carlesantoli@hotmail.com>, 2016
# Marc Tormo i Bochaca <mtbochaca@gmail.com>, 2016
# Martin Trigaux, 2016
# RGB Consulting <odoo@rgbconsulting.com>, 2017
# Lluís Dalmau <lluis.dalmau@guifi.net>, 2018
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0c\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-09-07 08:56+0000\n"
"PO-Revision-Date: 2016-09-07 08:56+0000\n"
"PO-Revision-Date: 2016-09-07 09:15+0000\n"
"Last-Translator: Lluís Dalmau <lluis.dalmau@guifi.net>, 2018\n"
"Language-Team: Catalan (https://www.transifex.com/odoo/teams/41243/ca/)\n"
"MIME-Version: 1.0\n"
Expand Down Expand Up @@ -781,6 +782,11 @@ msgstr "Ingrés mensual recurrent"
msgid "Next Period Depreciation"
msgstr "Amortització del següent període"

#. module: account_asset
#: model:ir.ui.view,arch_db:account_asset.view_asset_asset_report_search
msgid "Not archived"
msgstr ""

#. module: account_asset
#: model:ir.model.fields,field_description:account_asset.field_account_asset_asset_note
msgid "Note"
Expand Down

0 comments on commit e45917c

Please sign in to comment.