Compare commits
47 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
79e51a1b2c | ||
|
|
ab3c17f687 | ||
|
|
6d50a1d6a5 | ||
|
|
549328b846 | ||
|
|
361176a280 | ||
|
|
1df8d0a461 | ||
|
|
f09e459e82 | ||
|
|
47d659a320 | ||
|
|
4a77ff9e8f | ||
|
|
e4ff071565 | ||
|
|
210c6e2583 | ||
|
|
b21159940b | ||
|
|
9b0d3c1311 | ||
|
|
199496380d | ||
|
|
34439b72ad | ||
|
|
2a454294c3 | ||
|
|
4c097fdb96 | ||
|
|
d88211408b | ||
|
|
8b069d314e | ||
|
|
3a71748b8d | ||
|
|
0b4a1add6b | ||
|
|
2abbe14109 | ||
|
|
0d3c98d99e | ||
|
|
8463de054b | ||
|
|
8c0717db2f | ||
|
|
3888495071 | ||
|
|
93acac8e19 | ||
|
|
44b32672e2 | ||
|
|
1160cce1d8 | ||
|
|
16664bcb7f | ||
|
|
cfb92ec23a | ||
|
|
a3844004fb | ||
|
|
9319b120bf | ||
|
|
7fd5ab9cf1 | ||
|
|
8f463db179 | ||
|
|
f8720c7a36 | ||
|
|
e74e53c804 | ||
|
|
5388638941 | ||
|
|
d943ef262f | ||
|
|
a787e092ed | ||
|
|
8e5f0b0afa | ||
|
|
cb21028a48 | ||
|
|
ffa6e74a19 | ||
|
|
1e062af883 | ||
|
|
31f191aecb | ||
|
|
51c982bf2f | ||
|
|
3d7241407e |
@@ -25,5 +25,5 @@ This module has been written by Alexis de Lattre from Akretion
|
|||||||
'data': [
|
'data': [
|
||||||
'analytic_view.xml',
|
'analytic_view.xml',
|
||||||
],
|
],
|
||||||
'installable': False,
|
'installable': True,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -45,5 +45,5 @@ This module has been written by Alexis de Lattre from Akretion <alexis.delattre@
|
|||||||
'website': 'http://www.akretion.com',
|
'website': 'http://www.akretion.com',
|
||||||
'depends': ['account_bank_statement_import'],
|
'depends': ['account_bank_statement_import'],
|
||||||
'data': ['account_view.xml'],
|
'data': ['account_view.xml'],
|
||||||
'installable': False,
|
'installable': True,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,32 @@
|
|||||||
|
# Translation of Odoo Server.
|
||||||
|
# This file contains the translation of the following modules:
|
||||||
|
# * account_bank_statement_import_usability
|
||||||
|
#
|
||||||
|
msgid ""
|
||||||
|
msgstr ""
|
||||||
|
"Project-Id-Version: Odoo Server 8.0\n"
|
||||||
|
"Report-Msgid-Bugs-To: \n"
|
||||||
|
"POT-Creation-Date: 2017-11-06 10:15+0000\n"
|
||||||
|
"PO-Revision-Date: 2017-11-06 10:15+0000\n"
|
||||||
|
"Last-Translator: <>\n"
|
||||||
|
"Language-Team: \n"
|
||||||
|
"MIME-Version: 1.0\n"
|
||||||
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
|
"Content-Transfer-Encoding: \n"
|
||||||
|
"Plural-Forms: \n"
|
||||||
|
|
||||||
|
#. module: account_bank_statement_import_usability
|
||||||
|
#: model:ir.model,name:account_bank_statement_import_usability.model_account_bank_statement
|
||||||
|
msgid "Bank Statement"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_bank_statement_import_usability
|
||||||
|
#: model:ir.model,name:account_bank_statement_import_usability.model_account_bank_statement_import
|
||||||
|
msgid "Import Bank Statement"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_bank_statement_import_usability
|
||||||
|
#: view:account.bank.statement:account_bank_statement_import_usability.view_bank_statement_tree
|
||||||
|
msgid "blue:state=='draft';black:state=='confirm'"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
32
account_bank_statement_import_usability/i18n/fr.po
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
# Translation of Odoo Server.
|
||||||
|
# This file contains the translation of the following modules:
|
||||||
|
# * account_bank_statement_import_usability
|
||||||
|
#
|
||||||
|
msgid ""
|
||||||
|
msgstr ""
|
||||||
|
"Project-Id-Version: Odoo Server 8.0\n"
|
||||||
|
"Report-Msgid-Bugs-To: \n"
|
||||||
|
"POT-Creation-Date: 2017-11-06 10:15+0000\n"
|
||||||
|
"PO-Revision-Date: 2017-11-06 10:15+0000\n"
|
||||||
|
"Last-Translator: <>\n"
|
||||||
|
"Language-Team: \n"
|
||||||
|
"MIME-Version: 1.0\n"
|
||||||
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
|
"Content-Transfer-Encoding: \n"
|
||||||
|
"Plural-Forms: \n"
|
||||||
|
|
||||||
|
#. module: account_bank_statement_import_usability
|
||||||
|
#: model:ir.model,name:account_bank_statement_import_usability.model_account_bank_statement
|
||||||
|
msgid "Bank Statement"
|
||||||
|
msgstr "Relevé Bancaire"
|
||||||
|
|
||||||
|
#. module: account_bank_statement_import_usability
|
||||||
|
#: model:ir.model,name:account_bank_statement_import_usability.model_account_bank_statement_import
|
||||||
|
msgid "Import Bank Statement"
|
||||||
|
msgstr "Importer Relevé Bancaire"
|
||||||
|
|
||||||
|
#. module: account_bank_statement_import_usability
|
||||||
|
#: view:account.bank.statement:account_bank_statement_import_usability.view_bank_statement_tree
|
||||||
|
msgid "blue:state=='draft';black:state=='confirm'"
|
||||||
|
msgstr "blue:state=='draft';black:state=='confirm'"
|
||||||
|
|
||||||
@@ -42,5 +42,5 @@ This module has been written by Alexis de Lattre from Akretion <alexis.delattre@
|
|||||||
'website': 'http://www.akretion.com',
|
'website': 'http://www.akretion.com',
|
||||||
'depends': ['account_credit_control', 'partner_aged_open_invoices'],
|
'depends': ['account_credit_control', 'partner_aged_open_invoices'],
|
||||||
'data': ['account_credit_control_view.xml'],
|
'data': ['account_credit_control_view.xml'],
|
||||||
'installable': False,
|
'installable': True,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -20,5 +20,5 @@ This module has been written by Alexis de Lattre from Akretion <alexis.delattre@
|
|||||||
'website': 'http://www.akretion.com',
|
'website': 'http://www.akretion.com',
|
||||||
'depends': ['account_cutoff_accrual_picking', 'report_aeroo'],
|
'depends': ['account_cutoff_accrual_picking', 'report_aeroo'],
|
||||||
'data': ['report.xml'],
|
'data': ['report.xml'],
|
||||||
'installable': False,
|
'installable': True,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -39,5 +39,5 @@ This module has been written by Alexis de Lattre from Akretion <alexis.delattre@
|
|||||||
'website': 'http://www.akretion.com',
|
'website': 'http://www.akretion.com',
|
||||||
'depends': ['account_cutoff_prepaid', 'report_aeroo'],
|
'depends': ['account_cutoff_prepaid', 'report_aeroo'],
|
||||||
'data': ['report.xml'],
|
'data': ['report.xml'],
|
||||||
'installable': False,
|
'installable': True,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -43,5 +43,5 @@ This module has been written by Alexis de Lattre from Akretion <alexis.delattre@
|
|||||||
'website': 'http://www.akretion.com',
|
'website': 'http://www.akretion.com',
|
||||||
'depends': ['account_banking_sepa_direct_debit', 'account_payment_partner'],
|
'depends': ['account_banking_sepa_direct_debit', 'account_payment_partner'],
|
||||||
'data': [],
|
'data': [],
|
||||||
'installable': False,
|
'installable': True,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -22,5 +22,5 @@ This module has been written by Alexis de Lattre from Akretion <alexis.delattre@
|
|||||||
'data': [
|
'data': [
|
||||||
'account_fiscal_position_view.xml',
|
'account_fiscal_position_view.xml',
|
||||||
],
|
],
|
||||||
'installable': False,
|
'installable': True,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -39,5 +39,5 @@ Please contact Alexis de Lattre from Akretion <alexis.delattre@akretion.com> for
|
|||||||
'website': 'http://www.akretion.com',
|
'website': 'http://www.akretion.com',
|
||||||
'depends': ['account'],
|
'depends': ['account'],
|
||||||
'data': [],
|
'data': [],
|
||||||
'installable': False,
|
'installable': True,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -26,5 +26,5 @@ This module has been written by Alexis de Lattre from Akretion
|
|||||||
'website': 'http://www.akretion.com',
|
'website': 'http://www.akretion.com',
|
||||||
'depends': ['account', 'base_usability'],
|
'depends': ['account', 'base_usability'],
|
||||||
'data': ['account_view.xml'],
|
'data': ['account_view.xml'],
|
||||||
'installable': False,
|
'installable': True,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -40,5 +40,5 @@ This module has been written by Alexis de Lattre from Akretion <alexis.delattre@
|
|||||||
'author': 'Akretion',
|
'author': 'Akretion',
|
||||||
'website': 'http://www.akretion.com',
|
'website': 'http://www.akretion.com',
|
||||||
'depends': ['account'],
|
'depends': ['account'],
|
||||||
'installable': False,
|
'installable': True,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -28,6 +28,10 @@ class AccountInvoice(models.Model):
|
|||||||
|
|
||||||
@api.multi
|
@api.multi
|
||||||
def invoice_filename_to_match(self):
|
def invoice_filename_to_match(self):
|
||||||
|
# I cannot use
|
||||||
|
# safe_eval(report.attachment, {'object': obj, 'time': time})
|
||||||
|
# Because, when this code is executed, the obj.state is not 'open'
|
||||||
|
# nor 'paid', so we can't get the filename that way
|
||||||
return 'INV%.pdf'
|
return 'INV%.pdf'
|
||||||
|
|
||||||
@api.multi
|
@api.multi
|
||||||
|
|||||||
@@ -39,5 +39,5 @@ This module has been written by Alexis de Lattre from Akretion <alexis.delattre@
|
|||||||
'website': 'http://www.akretion.com',
|
'website': 'http://www.akretion.com',
|
||||||
'depends': ['account'],
|
'depends': ['account'],
|
||||||
'data': ['account_invoice_view.xml'],
|
'data': ['account_invoice_view.xml'],
|
||||||
'installable': False,
|
'installable': True,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -39,5 +39,5 @@ This module has been written by Alexis de Lattre from Akretion
|
|||||||
'data': [
|
'data': [
|
||||||
'account_invoice_view.xml',
|
'account_invoice_view.xml',
|
||||||
],
|
],
|
||||||
'installable': False,
|
'installable': True,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -37,5 +37,5 @@ This module has been written by Alexis de Lattre from Akretion
|
|||||||
'website': 'http://www.akretion.com',
|
'website': 'http://www.akretion.com',
|
||||||
'depends': ['account_invoice_margin', 'bi_invoice_company_currency'],
|
'depends': ['account_invoice_margin', 'bi_invoice_company_currency'],
|
||||||
'data': [],
|
'data': [],
|
||||||
'installable': False,
|
'installable': True,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -39,5 +39,5 @@ This module has been written by Alexis de Lattre from Akretion <alexis.delattre@
|
|||||||
'website': 'http://www.akretion.com',
|
'website': 'http://www.akretion.com',
|
||||||
'depends': ['account'],
|
'depends': ['account'],
|
||||||
'data': ['company_view.xml'],
|
'data': ['company_view.xml'],
|
||||||
'installable': False,
|
'installable': True,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -34,9 +34,6 @@ Account Invoice Picking Label
|
|||||||
Adds a function field named *picking_ids_label* on invoices. This field contains the list of pickings related to the invoice as a string. This field is designed to be displayed in the invoice report.""",
|
Adds a function field named *picking_ids_label* on invoices. This field contains the list of pickings related to the invoice as a string. This field is designed to be displayed in the invoice report.""",
|
||||||
'author': 'Akretion',
|
'author': 'Akretion',
|
||||||
'website': 'http://www.akretion.com/',
|
'website': 'http://www.akretion.com/',
|
||||||
'depends': ['stock_account'],
|
'depends': ['stock_picking_invoice_link'],
|
||||||
'data': [],
|
'installable': True,
|
||||||
'installable': False,
|
|
||||||
'active': False,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -36,13 +36,10 @@ class account_invoice(orm.Model):
|
|||||||
pickings = self.pool['stock.picking'].read(
|
pickings = self.pool['stock.picking'].read(
|
||||||
cr, uid, invoice['picking_ids'], ['name'],
|
cr, uid, invoice['picking_ids'], ['name'],
|
||||||
context=context)
|
context=context)
|
||||||
first = True
|
pick_names = []
|
||||||
for picking in pickings:
|
for picking in pickings:
|
||||||
if first:
|
pick_names.append(picking['name'])
|
||||||
label += picking['name']
|
label = ','.join(pick_names)
|
||||||
first = False
|
|
||||||
else:
|
|
||||||
label += ', %s' % picking['name']
|
|
||||||
res[invoice['id']] = label
|
res[invoice['id']] = label
|
||||||
return res
|
return res
|
||||||
|
|
||||||
|
|||||||
@@ -41,6 +41,6 @@ Please contact Alexis de Lattre from Akretion <alexis.delattre@akretion.com> for
|
|||||||
'website': 'http://www.akretion.com',
|
'website': 'http://www.akretion.com',
|
||||||
'depends': ['sale'],
|
'depends': ['sale'],
|
||||||
'data': ['account_invoice_view.xml'],
|
'data': ['account_invoice_view.xml'],
|
||||||
'installable': False,
|
'installable': True,
|
||||||
'active': False,
|
'active': False,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -30,5 +30,5 @@ This module adds a button *Update Invoice* on Customer and Supplier invoices in
|
|||||||
'wizard/account_invoice_update_view.xml',
|
'wizard/account_invoice_update_view.xml',
|
||||||
'views/account_invoice.xml',
|
'views/account_invoice.xml',
|
||||||
],
|
],
|
||||||
'installable': False,
|
'installable': True,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -23,7 +23,7 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
'name': 'Account Move Line Filter Wizard',
|
'name': 'Account Move Line Filter Wizard',
|
||||||
'version': '0.1',
|
'version': '8.0.1.0.1',
|
||||||
'category': 'Accounting & Finance',
|
'category': 'Accounting & Finance',
|
||||||
'license': 'AGPL-3',
|
'license': 'AGPL-3',
|
||||||
'summary': 'Easy and fast access to the details of an account',
|
'summary': 'Easy and fast access to the details of an account',
|
||||||
@@ -31,7 +31,7 @@
|
|||||||
Account Move Line Filter Wizard
|
Account Move Line Filter Wizard
|
||||||
===============================
|
===============================
|
||||||
|
|
||||||
This module adds a wizard in Accounting > ... >
|
This module adds a wizard in *Accounting > Adviser > Journal Items of Account*.
|
||||||
|
|
||||||
This module has been written by Alexis de Lattre from Akretion <alexis.delattre@akretion.com>.
|
This module has been written by Alexis de Lattre from Akretion <alexis.delattre@akretion.com>.
|
||||||
""",
|
""",
|
||||||
@@ -39,5 +39,5 @@ This module has been written by Alexis de Lattre from Akretion <alexis.delattre@
|
|||||||
'website': 'http://www.akretion.com',
|
'website': 'http://www.akretion.com',
|
||||||
'depends': ['account_usability'],
|
'depends': ['account_usability'],
|
||||||
'data': ['wizard/account_move_line_filter_view.xml'],
|
'data': ['wizard/account_move_line_filter_view.xml'],
|
||||||
'installable': False,
|
'installable': True,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,103 @@
|
|||||||
|
# Translation of Odoo Server.
|
||||||
|
# This file contains the translation of the following modules:
|
||||||
|
# * account_move_line_filter_wizard
|
||||||
|
#
|
||||||
|
msgid ""
|
||||||
|
msgstr ""
|
||||||
|
"Project-Id-Version: Odoo Server 8.0\n"
|
||||||
|
"Report-Msgid-Bugs-To: \n"
|
||||||
|
"POT-Creation-Date: 2017-12-13 22:53+0000\n"
|
||||||
|
"PO-Revision-Date: 2017-12-13 22:53+0000\n"
|
||||||
|
"Last-Translator: <>\n"
|
||||||
|
"Language-Team: \n"
|
||||||
|
"MIME-Version: 1.0\n"
|
||||||
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
|
"Content-Transfer-Encoding: \n"
|
||||||
|
"Plural-Forms: \n"
|
||||||
|
|
||||||
|
#. module: account_move_line_filter_wizard
|
||||||
|
#: field:account.move.line.filter.wizard,account_id:0
|
||||||
|
msgid "Account"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_move_line_filter_wizard
|
||||||
|
#: view:account.move.line.filter.wizard:account_move_line_filter_wizard.account_move_line_filter_wizard_form
|
||||||
|
msgid "Account Move Lines"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_move_line_filter_wizard
|
||||||
|
#: view:account.move.line.filter.wizard:account_move_line_filter_wizard.account_move_line_filter_wizard_form
|
||||||
|
msgid "Cancel"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_move_line_filter_wizard
|
||||||
|
#: field:account.move.line.filter.wizard,create_uid:0
|
||||||
|
msgid "Created by"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_move_line_filter_wizard
|
||||||
|
#: field:account.move.line.filter.wizard,create_date:0
|
||||||
|
msgid "Created on"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_move_line_filter_wizard
|
||||||
|
#: view:account.move.line.filter.wizard:account_move_line_filter_wizard.account_move_line_filter_wizard_form
|
||||||
|
msgid "Filters"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_move_line_filter_wizard
|
||||||
|
#: selection:account.move.line.filter.wizard,reconcile:0
|
||||||
|
msgid "Fully Reconciled"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_move_line_filter_wizard
|
||||||
|
#: field:account.move.line.filter.wizard,id:0
|
||||||
|
msgid "ID"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_move_line_filter_wizard
|
||||||
|
#: model:ir.actions.act_window,name:account_move_line_filter_wizard.account_move_line_filter_wizard_action
|
||||||
|
#: model:ir.ui.menu,name:account_move_line_filter_wizard.account_move_line_filter_wizard_menu
|
||||||
|
msgid "Journal Items of Account"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_move_line_filter_wizard
|
||||||
|
#: field:account.move.line.filter.wizard,write_uid:0
|
||||||
|
msgid "Last Updated by"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_move_line_filter_wizard
|
||||||
|
#: field:account.move.line.filter.wizard,write_date:0
|
||||||
|
msgid "Last Updated on"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_move_line_filter_wizard
|
||||||
|
#: selection:account.move.line.filter.wizard,reconcile:0
|
||||||
|
msgid "Partially Reconciled"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_move_line_filter_wizard
|
||||||
|
#: field:account.move.line.filter.wizard,partner_id:0
|
||||||
|
msgid "Partner"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_move_line_filter_wizard
|
||||||
|
#: field:account.move.line.filter.wizard,reconcile:0
|
||||||
|
msgid "Reconciliation Filter"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_move_line_filter_wizard
|
||||||
|
#: view:account.move.line.filter.wizard:account_move_line_filter_wizard.account_move_line_filter_wizard_form
|
||||||
|
msgid "Show"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_move_line_filter_wizard
|
||||||
|
#: selection:account.move.line.filter.wizard,reconcile:0
|
||||||
|
msgid "Unreconciled"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_move_line_filter_wizard
|
||||||
|
#: model:ir.model,name:account_move_line_filter_wizard.model_account_move_line_filter_wizard
|
||||||
|
msgid "Wizard for easy and fast access to account move lines"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
103
account_move_line_filter_wizard/i18n/fr.po
Normal file
@@ -0,0 +1,103 @@
|
|||||||
|
# Translation of Odoo Server.
|
||||||
|
# This file contains the translation of the following modules:
|
||||||
|
# * account_move_line_filter_wizard
|
||||||
|
#
|
||||||
|
msgid ""
|
||||||
|
msgstr ""
|
||||||
|
"Project-Id-Version: Odoo Server 8.0\n"
|
||||||
|
"Report-Msgid-Bugs-To: \n"
|
||||||
|
"POT-Creation-Date: 2017-12-13 22:53+0000\n"
|
||||||
|
"PO-Revision-Date: 2017-12-13 22:53+0000\n"
|
||||||
|
"Last-Translator: <>\n"
|
||||||
|
"Language-Team: \n"
|
||||||
|
"MIME-Version: 1.0\n"
|
||||||
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
|
"Content-Transfer-Encoding: \n"
|
||||||
|
"Plural-Forms: \n"
|
||||||
|
|
||||||
|
#. module: account_move_line_filter_wizard
|
||||||
|
#: field:account.move.line.filter.wizard,account_id:0
|
||||||
|
msgid "Account"
|
||||||
|
msgstr "Compte"
|
||||||
|
|
||||||
|
#. module: account_move_line_filter_wizard
|
||||||
|
#: view:account.move.line.filter.wizard:account_move_line_filter_wizard.account_move_line_filter_wizard_form
|
||||||
|
msgid "Account Move Lines"
|
||||||
|
msgstr "Lignes comptables"
|
||||||
|
|
||||||
|
#. module: account_move_line_filter_wizard
|
||||||
|
#: view:account.move.line.filter.wizard:account_move_line_filter_wizard.account_move_line_filter_wizard_form
|
||||||
|
msgid "Cancel"
|
||||||
|
msgstr "Annuler"
|
||||||
|
|
||||||
|
#. module: account_move_line_filter_wizard
|
||||||
|
#: field:account.move.line.filter.wizard,create_uid:0
|
||||||
|
msgid "Created by"
|
||||||
|
msgstr "Created by"
|
||||||
|
|
||||||
|
#. module: account_move_line_filter_wizard
|
||||||
|
#: field:account.move.line.filter.wizard,create_date:0
|
||||||
|
msgid "Created on"
|
||||||
|
msgstr "Created on"
|
||||||
|
|
||||||
|
#. module: account_move_line_filter_wizard
|
||||||
|
#: view:account.move.line.filter.wizard:account_move_line_filter_wizard.account_move_line_filter_wizard_form
|
||||||
|
msgid "Filters"
|
||||||
|
msgstr "Filtres"
|
||||||
|
|
||||||
|
#. module: account_move_line_filter_wizard
|
||||||
|
#: selection:account.move.line.filter.wizard,reconcile:0
|
||||||
|
msgid "Fully Reconciled"
|
||||||
|
msgstr "Totalement lettré"
|
||||||
|
|
||||||
|
#. module: account_move_line_filter_wizard
|
||||||
|
#: field:account.move.line.filter.wizard,id:0
|
||||||
|
msgid "ID"
|
||||||
|
msgstr "ID"
|
||||||
|
|
||||||
|
#. module: account_move_line_filter_wizard
|
||||||
|
#: model:ir.actions.act_window,name:account_move_line_filter_wizard.account_move_line_filter_wizard_action
|
||||||
|
#: model:ir.ui.menu,name:account_move_line_filter_wizard.account_move_line_filter_wizard_menu
|
||||||
|
msgid "Journal Items of Account"
|
||||||
|
msgstr "Consulter compte"
|
||||||
|
|
||||||
|
#. module: account_move_line_filter_wizard
|
||||||
|
#: field:account.move.line.filter.wizard,write_uid:0
|
||||||
|
msgid "Last Updated by"
|
||||||
|
msgstr "Last Updated by"
|
||||||
|
|
||||||
|
#. module: account_move_line_filter_wizard
|
||||||
|
#: field:account.move.line.filter.wizard,write_date:0
|
||||||
|
msgid "Last Updated on"
|
||||||
|
msgstr "Last Updated on"
|
||||||
|
|
||||||
|
#. module: account_move_line_filter_wizard
|
||||||
|
#: selection:account.move.line.filter.wizard,reconcile:0
|
||||||
|
msgid "Partially Reconciled"
|
||||||
|
msgstr "Partiellement lettré"
|
||||||
|
|
||||||
|
#. module: account_move_line_filter_wizard
|
||||||
|
#: field:account.move.line.filter.wizard,partner_id:0
|
||||||
|
msgid "Partner"
|
||||||
|
msgstr "Partenaire"
|
||||||
|
|
||||||
|
#. module: account_move_line_filter_wizard
|
||||||
|
#: field:account.move.line.filter.wizard,reconcile:0
|
||||||
|
msgid "Reconciliation Filter"
|
||||||
|
msgstr "Filtre lettrage"
|
||||||
|
|
||||||
|
#. module: account_move_line_filter_wizard
|
||||||
|
#: view:account.move.line.filter.wizard:account_move_line_filter_wizard.account_move_line_filter_wizard_form
|
||||||
|
msgid "Show"
|
||||||
|
msgstr "Consulter"
|
||||||
|
|
||||||
|
#. module: account_move_line_filter_wizard
|
||||||
|
#: selection:account.move.line.filter.wizard,reconcile:0
|
||||||
|
msgid "Unreconciled"
|
||||||
|
msgstr "Non lettré"
|
||||||
|
|
||||||
|
#. module: account_move_line_filter_wizard
|
||||||
|
#: model:ir.model,name:account_move_line_filter_wizard.model_account_move_line_filter_wizard
|
||||||
|
msgid "Wizard for easy and fast access to account move lines"
|
||||||
|
msgstr "Wizard for easy and fast access to account move lines"
|
||||||
|
|
||||||
@@ -22,7 +22,7 @@
|
|||||||
attrs="{'invisible': [('account_reconcile', '!=', True)]}"/>
|
attrs="{'invisible': [('account_reconcile', '!=', True)]}"/>
|
||||||
</group>
|
</group>
|
||||||
<footer>
|
<footer>
|
||||||
<button type="object" name="go" string="Go" class="oe_highlight"/>
|
<button type="object" name="go" string="Show" class="oe_highlight"/>
|
||||||
<button special="cancel" string="Cancel" class="oe_link"/>
|
<button special="cancel" string="Cancel" class="oe_link"/>
|
||||||
</footer>
|
</footer>
|
||||||
</form>
|
</form>
|
||||||
|
|||||||
@@ -40,5 +40,5 @@ This module has been written by Alexis de Lattre from Akretion
|
|||||||
'website': 'http://www.akretion.com/',
|
'website': 'http://www.akretion.com/',
|
||||||
'depends': ['account_cutoff_prepaid', 'account_move_line_report_xls'],
|
'depends': ['account_cutoff_prepaid', 'account_move_line_report_xls'],
|
||||||
'data': [],
|
'data': [],
|
||||||
'installable': False,
|
'installable': True,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -37,5 +37,4 @@ This module has been written by Alexis de Lattre from Akretion <alexis.delattre@
|
|||||||
'author': 'Akretion',
|
'author': 'Akretion',
|
||||||
'depends': ['account_payment'],
|
'depends': ['account_payment'],
|
||||||
'data': ['payment_view.xml'],
|
'data': ['payment_view.xml'],
|
||||||
'installable': False,
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -40,5 +40,4 @@ Please contact Alexis de Lattre from Akretion <alexis.delattre@akretion.com> for
|
|||||||
'payment_view.xml',
|
'payment_view.xml',
|
||||||
],
|
],
|
||||||
'active': False,
|
'active': False,
|
||||||
'installable': False,
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -42,5 +42,4 @@ Please contact Alexis de Lattre from Akretion <alexis.delattre@akretion.com> for
|
|||||||
'security/ir.model.access.csv',
|
'security/ir.model.access.csv',
|
||||||
],
|
],
|
||||||
'active': False,
|
'active': False,
|
||||||
'installable': False,
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
# -*- encoding: utf-8 -*-
|
# -*- encoding: utf-8 -*-
|
||||||
|
|
||||||
from . import account
|
from . import account
|
||||||
|
from . import wizard
|
||||||
|
|||||||
@@ -49,6 +49,9 @@ This module has been written by Alexis de Lattre from Akretion <alexis.delattre@
|
|||||||
'website': 'http://www.akretion.com',
|
'website': 'http://www.akretion.com',
|
||||||
'depends': ['account'],
|
'depends': ['account'],
|
||||||
'conflicts': ['account_invoice_overdue_filter'],
|
'conflicts': ['account_invoice_overdue_filter'],
|
||||||
'data': ['account_view.xml'],
|
'data': [
|
||||||
'installable': False,
|
'account_view.xml',
|
||||||
|
'wizard/account_invoice_mark_sent_view.xml',
|
||||||
|
],
|
||||||
|
'installable': True,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -29,6 +29,7 @@ logger = logging.getLogger(__name__)
|
|||||||
|
|
||||||
class AccountInvoice(models.Model):
|
class AccountInvoice(models.Model):
|
||||||
_inherit = 'account.invoice'
|
_inherit = 'account.invoice'
|
||||||
|
_order = "date_invoice desc, number desc, id desc"
|
||||||
|
|
||||||
origin = fields.Char(track_visibility='onchange')
|
origin = fields.Char(track_visibility='onchange')
|
||||||
supplier_invoice_number = fields.Char(track_visibility='onchange')
|
supplier_invoice_number = fields.Char(track_visibility='onchange')
|
||||||
@@ -43,6 +44,37 @@ class AccountInvoice(models.Model):
|
|||||||
journal_id = fields.Many2one(track_visibility='onchange')
|
journal_id = fields.Many2one(track_visibility='onchange')
|
||||||
partner_bank_id = fields.Many2one(track_visibility='onchange')
|
partner_bank_id = fields.Many2one(track_visibility='onchange')
|
||||||
fiscal_position = fields.Many2one(track_visibility='onchange')
|
fiscal_position = fields.Many2one(track_visibility='onchange')
|
||||||
|
# has_attachment is useful for those who use attachment to archive
|
||||||
|
# supplier invoices. It allows them to find supplier invoices
|
||||||
|
# that don't have any attachment
|
||||||
|
has_attachment = fields.Boolean(
|
||||||
|
compute='_compute_has_attachment',
|
||||||
|
search='_search_has_attachment', readonly=True)
|
||||||
|
|
||||||
|
@api.multi
|
||||||
|
def _compute_has_attachment(self):
|
||||||
|
iao = self.env['ir.attachment']
|
||||||
|
for inv in self:
|
||||||
|
if iao.search([
|
||||||
|
('res_model', '=', 'account.invoice'),
|
||||||
|
('res_id', '=', inv.id),
|
||||||
|
('type', '=', 'binary'),
|
||||||
|
('company_id', '=', inv.company_id.id)], limit=1):
|
||||||
|
inv.has_attachment = True
|
||||||
|
else:
|
||||||
|
inv.has_attachment = False
|
||||||
|
|
||||||
|
def _search_has_attachment(self, operator, value):
|
||||||
|
att_inv_ids = {}
|
||||||
|
if operator == '=':
|
||||||
|
search_res = self.env['ir.attachment'].search_read([
|
||||||
|
('res_model', '=', 'account.invoice'),
|
||||||
|
('type', '=', 'binary'),
|
||||||
|
('res_id', '!=', False)], ['res_id'])
|
||||||
|
for att in search_res:
|
||||||
|
att_inv_ids[att['res_id']] = True
|
||||||
|
res = [('id', value and 'in' or 'not in', att_inv_ids.keys())]
|
||||||
|
return res
|
||||||
|
|
||||||
@api.multi
|
@api.multi
|
||||||
def onchange_payment_term_date_invoice(
|
def onchange_payment_term_date_invoice(
|
||||||
@@ -130,6 +162,21 @@ class AccountAccount(models.Model):
|
|||||||
else:
|
else:
|
||||||
return super(AccountAccount, self).name_get()
|
return super(AccountAccount, self).name_get()
|
||||||
|
|
||||||
|
def _check_account_type(self, cr, uid, ids, context=None):
|
||||||
|
'''Disable this native python constraint, because we want to be able
|
||||||
|
to configure payable/receivable accounts with an account type
|
||||||
|
with close_method == 'balance' in order to have opening entries with
|
||||||
|
fewer lines. It is not a problem because we always use
|
||||||
|
account_financial_report_webkit which doesn't take the detailed
|
||||||
|
opening entries into account.'''
|
||||||
|
return True
|
||||||
|
|
||||||
|
_constraints = [
|
||||||
|
# The method name must be exactly the same as the native
|
||||||
|
# method, in order to override it
|
||||||
|
(_check_account_type, 'No error message', ['user_type', 'type']),
|
||||||
|
]
|
||||||
|
|
||||||
@api.model
|
@api.model
|
||||||
def check_account_hierarchy(self):
|
def check_account_hierarchy(self):
|
||||||
'''designed to be called by a script'''
|
'''designed to be called by a script'''
|
||||||
@@ -183,6 +230,10 @@ class AccountMove(models.Model):
|
|||||||
# update account_move set ref=left(ref,32) where ref is not null;
|
# update account_move set ref=left(ref,32) where ref is not null;
|
||||||
# update account_move_line set ref=left(ref,32) where ref is not null;
|
# update account_move_line set ref=left(ref,32) where ref is not null;
|
||||||
|
|
||||||
|
# Allow to duplicate an account.move that belongs to a closed period
|
||||||
|
period_id = fields.Many2one(copy=False)
|
||||||
|
date = fields.Date(copy=False)
|
||||||
|
|
||||||
@api.onchange('date')
|
@api.onchange('date')
|
||||||
def date_onchange(self):
|
def date_onchange(self):
|
||||||
if self.date:
|
if self.date:
|
||||||
@@ -366,6 +417,8 @@ class ResPartner(models.Model):
|
|||||||
payable_journal_item_count = fields.Integer(
|
payable_journal_item_count = fields.Integer(
|
||||||
compute='_compute_journal_item_count',
|
compute='_compute_journal_item_count',
|
||||||
string="Payable Journal Items", readonly=True)
|
string="Payable Journal Items", readonly=True)
|
||||||
|
property_account_position = fields.Many2one(
|
||||||
|
track_visibility='onchange')
|
||||||
|
|
||||||
|
|
||||||
class AccountFiscalPosition(models.Model):
|
class AccountFiscalPosition(models.Model):
|
||||||
|
|||||||
@@ -38,6 +38,11 @@
|
|||||||
<field name="period_id" position="attributes">
|
<field name="period_id" position="attributes">
|
||||||
<attribute name="groups"></attribute>
|
<attribute name="groups"></attribute>
|
||||||
</field>
|
</field>
|
||||||
|
<!-- move sent field and make it visible -->
|
||||||
|
<field name="sent" position="replace"/>
|
||||||
|
<field name="move_id" position="after">
|
||||||
|
<field name="sent"/>
|
||||||
|
</field>
|
||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
|
|
||||||
@@ -61,6 +66,11 @@
|
|||||||
<filter name="unpaid" position="after">
|
<filter name="unpaid" position="after">
|
||||||
<filter name="overdue" string="Overdue"
|
<filter name="overdue" string="Overdue"
|
||||||
domain="[('state', '=', 'open'), ('date_due', '<', current_date)]"/>
|
domain="[('state', '=', 'open'), ('date_due', '<', current_date)]"/>
|
||||||
|
<separator/>
|
||||||
|
<filter name="to_send" string="To Send" domain="[('sent', '=', False), ('state', 'in', ('open', 'paid'))]"/>
|
||||||
|
<filter name="sent" string="Sent" domain="[('sent', '=', True)]"/>
|
||||||
|
<separator/>
|
||||||
|
<filter name="no_attachment" string="Missing Attachment" domain="[('has_attachment', '=', False)]"/>
|
||||||
</filter>
|
</filter>
|
||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
@@ -180,10 +190,24 @@ module -->
|
|||||||
<!-- model account.move.line / Journal Items -->
|
<!-- model account.move.line / Journal Items -->
|
||||||
<record id="account.action_account_moves_all_a" model="ir.actions.act_window">
|
<record id="account.action_account_moves_all_a" model="ir.actions.act_window">
|
||||||
<field name="limit">200</field>
|
<field name="limit">200</field>
|
||||||
|
<!-- add graph -->
|
||||||
|
<field name="view_mode">tree_account_move_line_quickadd,form,graph</field>
|
||||||
<!-- Win space, because there are already many columns -->
|
<!-- Win space, because there are already many columns -->
|
||||||
<field name="context">{'journal_show_code_only': True}</field>
|
<field name="context">{'journal_show_code_only': True}</field>
|
||||||
</record>
|
</record>
|
||||||
|
|
||||||
|
<record id="account_move_line_graph" model="ir.ui.view">
|
||||||
|
<field name="name">usability.account.move.line.graph</field>
|
||||||
|
<field name="model">account.move.line</field>
|
||||||
|
<field name="inherit_id" ref="account.account_move_line_graph"/>
|
||||||
|
<field name="arch" type="xml">
|
||||||
|
<graph position="attributes">
|
||||||
|
<!-- pivot by default instead of bar -->
|
||||||
|
<attribute name="type">pivot</attribute>
|
||||||
|
</graph>
|
||||||
|
</field>
|
||||||
|
</record>
|
||||||
|
|
||||||
<!-- model account.move / Journal Entries -->
|
<!-- model account.move / Journal Entries -->
|
||||||
<record id="account.action_move_journal_line" model="ir.actions.act_window">
|
<record id="account.action_move_journal_line" model="ir.actions.act_window">
|
||||||
<field name="limit">200</field>
|
<field name="limit">200</field>
|
||||||
@@ -222,6 +246,9 @@ module -->
|
|||||||
<field name="name" position="attributes">
|
<field name="name" position="attributes">
|
||||||
<attribute name="string">Name or Reference</attribute>
|
<attribute name="string">Name or Reference</attribute>
|
||||||
</field>
|
</field>
|
||||||
|
<field name="account_id" position="after">
|
||||||
|
<field name="analytic_account_id"/>
|
||||||
|
</field>
|
||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
|
|
||||||
@@ -293,9 +320,10 @@ module -->
|
|||||||
</button>
|
</button>
|
||||||
</button>
|
</button>
|
||||||
<button name="%(account.action_account_moves_all_tree)d" position="attributes">
|
<button name="%(account.action_account_moves_all_tree)d" position="attributes">
|
||||||
<attribute name="type">object</attribute>
|
<attribute name="invisible">True</attribute>
|
||||||
<attribute name="name">show_receivable_account</attribute>
|
</button>
|
||||||
<attribute name="attrs">{'invisible': [('customer', '=', False)]}</attribute>
|
<button name="%(account.action_account_moves_all_tree)d" position="after">
|
||||||
|
<button type="object" class="oe_stat_button" name="show_receivable_account" icon="fa-list" attrs="{'invisible': [('customer', '=', False)]}"/>
|
||||||
</button>
|
</button>
|
||||||
<field name="journal_item_count" position="attributes">
|
<field name="journal_item_count" position="attributes">
|
||||||
<attribute name="string">Receivable Account</attribute>
|
<attribute name="string">Receivable Account</attribute>
|
||||||
|
|||||||
379
account_usability/i18n/account_usability.pot
Normal file
@@ -0,0 +1,379 @@
|
|||||||
|
# Translation of Odoo Server.
|
||||||
|
# This file contains the translation of the following modules:
|
||||||
|
# * account_usability
|
||||||
|
#
|
||||||
|
msgid ""
|
||||||
|
msgstr ""
|
||||||
|
"Project-Id-Version: Odoo Server 8.0\n"
|
||||||
|
"Report-Msgid-Bugs-To: \n"
|
||||||
|
"POT-Creation-Date: 2017-11-06 10:16+0000\n"
|
||||||
|
"PO-Revision-Date: 2017-11-06 10:16+0000\n"
|
||||||
|
"Last-Translator: <>\n"
|
||||||
|
"Language-Team: \n"
|
||||||
|
"MIME-Version: 1.0\n"
|
||||||
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
|
"Content-Transfer-Encoding: \n"
|
||||||
|
"Plural-Forms: \n"
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: help:account.invoice.line,state:0
|
||||||
|
msgid " * The 'Draft' status is used when a user is encoding a new and unconfirmed Invoice.\n"
|
||||||
|
" * The 'Pro-forma' when invoice is in Pro-forma status,invoice does not have an invoice number.\n"
|
||||||
|
" * The 'Open' status is used when user create invoice,a invoice number is generated.Its in open status till user does not pay invoice.\n"
|
||||||
|
" * The 'Paid' status is set automatically when the invoice is paid. Its related journal entries may or may not be reconciled.\n"
|
||||||
|
" * The 'Cancelled' status is used when user cancel invoice."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: view:account.invoice.line:account_usability.account_invoice_line_search
|
||||||
|
#: model:ir.model,name:account_usability.model_account_account
|
||||||
|
msgid "Account"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: model:ir.model,name:account_usability.model_account_move
|
||||||
|
msgid "Account Entry"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: model:ir.model,name:account_usability.model_account_analytic_account
|
||||||
|
msgid "Analytic Account"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: model:ir.model,name:account_usability.model_account_bank_statement
|
||||||
|
msgid "Bank Statement"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: model:ir.model,name:account_usability.model_account_bank_statement_line
|
||||||
|
msgid "Bank Statement Line"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: view:account.invoice.mark.sent:account_usability.account_invoice_mark_sent_form
|
||||||
|
msgid "Cancel"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: field:account.invoice.line,commercial_partner_id:0
|
||||||
|
msgid "Commercial Entity"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: view:account.invoice.line:account_usability.account_invoice_line_search
|
||||||
|
msgid "Commercial Partner"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: field:account.invoice.mark.sent,create_uid:0
|
||||||
|
msgid "Created by"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: field:account.invoice.mark.sent,create_date:0
|
||||||
|
msgid "Created on"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: field:account.invoice.line,currency_id:0
|
||||||
|
msgid "Currency"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: model:ir.actions.act_window,name:account_usability.out_invoice_line_action
|
||||||
|
msgid "Customer Invoice Lines"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: view:account.invoice.line:account_usability.account_invoice_line_search
|
||||||
|
msgid "Customer Invoices"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: model:ir.actions.act_window,name:account_usability.out_refund_line_action
|
||||||
|
msgid "Customer Refund Lines"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: view:account.invoice.line:account_usability.account_invoice_line_search
|
||||||
|
msgid "Customer Refunds"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: view:account.move.line:account_usability.view_account_move_line_filter
|
||||||
|
msgid "Debit or Credit"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: field:account.invoice.mark.sent,display_name:0
|
||||||
|
msgid "Display Name"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: view:account.invoice.line:account_usability.account_invoice_line_search
|
||||||
|
msgid "Draft"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: view:account.bank.statement:account_usability.view_bank_statement_search
|
||||||
|
#: field:account.bank.statement,end_date:0
|
||||||
|
msgid "End Date"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: model:ir.model,name:account_usability.model_account_fiscal_position
|
||||||
|
msgid "Fiscal Position"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: model:ir.model,name:account_usability.model_account_fiscalyear
|
||||||
|
msgid "Fiscal Year"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: view:account.move.line:account_usability.view_account_move_line_filter
|
||||||
|
msgid "Fully Reconciled"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: view:account.invoice.line:account_usability.account_invoice_line_search
|
||||||
|
msgid "Group By"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: field:account.invoice.mark.sent,id:0
|
||||||
|
msgid "ID"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: model:ir.model,name:account_usability.model_account_invoice
|
||||||
|
msgid "Invoice"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: view:account.invoice.line:account_usability.account_invoice_line_search
|
||||||
|
#: field:account.invoice.line,date_invoice:0
|
||||||
|
msgid "Invoice Date"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: model:ir.model,name:account_usability.model_account_invoice_line
|
||||||
|
msgid "Invoice Line"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: field:account.analytic.account,invoice_line_ids:0
|
||||||
|
msgid "Invoice Lines"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: field:account.invoice.line,invoice_number:0
|
||||||
|
msgid "Invoice Number"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: field:account.invoice.line,state:0
|
||||||
|
msgid "Invoice State"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: model:ir.model,name:account_usability.model_account_journal
|
||||||
|
msgid "Journal"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: model:ir.model,name:account_usability.model_account_move_line
|
||||||
|
msgid "Journal Items"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: help:account.invoice.line,date_invoice:0
|
||||||
|
msgid "Keep empty to use the current date"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: field:account.invoice.mark.sent,__last_update:0
|
||||||
|
msgid "Last Modified on"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: field:account.invoice.mark.sent,write_uid:0
|
||||||
|
msgid "Last Updated by"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: field:account.invoice.mark.sent,write_date:0
|
||||||
|
msgid "Last Updated on"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: view:account.invoice.mark.sent:account_usability.account_invoice_mark_sent_form
|
||||||
|
#: model:ir.actions.act_window,name:account_usability.account_invoice_mark_sent_action
|
||||||
|
msgid "Mark as Sent"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: view:account.invoice.mark.sent:account_usability.account_invoice_mark_sent_form
|
||||||
|
#: model:ir.model,name:account_usability.model_account_invoice_mark_sent
|
||||||
|
msgid "Mark invoices as sent"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: view:account.invoice:account_usability.view_account_invoice_filter
|
||||||
|
msgid "Missing Attachment"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: code:addons/account_usability/account.py:255
|
||||||
|
#, python-format
|
||||||
|
msgid "Move %d has a line !"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: view:account.move.line:account_usability.view_account_move_line_filter
|
||||||
|
msgid "Name or Reference"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: constraint:account.account:0
|
||||||
|
msgid "No error message"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: code:addons/account_usability/account.py:374
|
||||||
|
#, python-format
|
||||||
|
msgid "No journal entry linked to this bank statement line."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: view:account.invoice.line:account_usability.account_invoice_line_search
|
||||||
|
msgid "Not Paid"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: view:account.invoice:account_usability.view_account_invoice_filter
|
||||||
|
msgid "Overdue"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: view:account.invoice.line:account_usability.account_invoice_line_search
|
||||||
|
msgid "Paid"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: code:addons/account_usability/account.py:192
|
||||||
|
#, python-format
|
||||||
|
msgid "Parent account %s should have type=view (current type=%s)"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: code:addons/account_usability/account.py:196
|
||||||
|
#, python-format
|
||||||
|
msgid "Parent account %s should have user_type=view (current (user_type=%s)"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: view:account.move.line:account_usability.view_account_move_line_filter
|
||||||
|
msgid "Partially Reconciled"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: view:account.invoice.line:account_usability.account_invoice_line_search
|
||||||
|
#: model:ir.model,name:account_usability.model_res_partner
|
||||||
|
msgid "Partner"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: view:res.partner:account_usability.partner_view_button_journal_item_count
|
||||||
|
msgid "Payable Account"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: view:account.invoice.line:account_usability.account_invoice_line_search
|
||||||
|
#: view:account.invoice.report:account_usability.view_account_invoice_report_search
|
||||||
|
msgid "Product"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: view:res.partner:account_usability.partner_view_button_journal_item_count
|
||||||
|
msgid "Receivable Account"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: view:account.analytic.account:account_usability.view_account_analytic_account_form
|
||||||
|
msgid "Related Invoice Lines"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: view:account.invoice.line:account_usability.account_invoice_line_search
|
||||||
|
msgid "Search Invoice Lines"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: view:account.invoice:account_usability.view_account_invoice_filter
|
||||||
|
msgid "Sent"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: view:account.bank.statement:account_usability.view_bank_statement_search
|
||||||
|
#: field:account.bank.statement,start_date:0
|
||||||
|
msgid "Start Date"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: model:ir.actions.act_window,name:account_usability.in_invoice_line_action
|
||||||
|
msgid "Supplier Invoice Lines"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: view:account.invoice.line:account_usability.account_invoice_line_search
|
||||||
|
msgid "Supplier Invoices"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: model:ir.actions.act_window,name:account_usability.in_refund_line_action
|
||||||
|
msgid "Supplier Refund Lines"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: view:account.invoice.line:account_usability.account_invoice_line_search
|
||||||
|
msgid "Supplier Refunds"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: view:account.invoice.mark.sent:account_usability.account_invoice_mark_sent_form
|
||||||
|
msgid "This wizard will mark as sent all the selected invoices."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: view:account.invoice:account_usability.view_account_invoice_filter
|
||||||
|
msgid "To Send"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: view:res.partner:account_usability.partner_view_button_journal_item_count
|
||||||
|
msgid "True"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: field:account.invoice.line,invoice_type:0
|
||||||
|
msgid "Type"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: view:account.bank.statement:account_usability.view_bank_statement_form
|
||||||
|
msgid "View Account Move"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: view:account.move.line:account_usability.account_move_line_graph
|
||||||
|
msgid "pivot"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: view:account.invoice:account_usability.invoice_form
|
||||||
|
#: view:account.invoice:account_usability.invoice_supplier_form
|
||||||
|
msgid "selection"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
383
account_usability/i18n/fr.po
Normal file
@@ -0,0 +1,383 @@
|
|||||||
|
# Translation of Odoo Server.
|
||||||
|
# This file contains the translation of the following modules:
|
||||||
|
# * account_usability
|
||||||
|
#
|
||||||
|
msgid ""
|
||||||
|
msgstr ""
|
||||||
|
"Project-Id-Version: Odoo Server 8.0\n"
|
||||||
|
"Report-Msgid-Bugs-To: \n"
|
||||||
|
"POT-Creation-Date: 2017-11-06 10:16+0000\n"
|
||||||
|
"PO-Revision-Date: 2017-11-06 10:16+0000\n"
|
||||||
|
"Last-Translator: <>\n"
|
||||||
|
"Language-Team: \n"
|
||||||
|
"MIME-Version: 1.0\n"
|
||||||
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
|
"Content-Transfer-Encoding: \n"
|
||||||
|
"Plural-Forms: \n"
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: help:account.invoice.line,state:0
|
||||||
|
msgid " * The 'Draft' status is used when a user is encoding a new and unconfirmed Invoice.\n"
|
||||||
|
" * The 'Pro-forma' when invoice is in Pro-forma status,invoice does not have an invoice number.\n"
|
||||||
|
" * The 'Open' status is used when user create invoice,a invoice number is generated.Its in open status till user does not pay invoice.\n"
|
||||||
|
" * The 'Paid' status is set automatically when the invoice is paid. Its related journal entries may or may not be reconciled.\n"
|
||||||
|
" * The 'Cancelled' status is used when user cancel invoice."
|
||||||
|
msgstr " * The 'Draft' status is used when a user is encoding a new and unconfirmed Invoice.\n"
|
||||||
|
" * The 'Pro-forma' when invoice is in Pro-forma status,invoice does not have an invoice number.\n"
|
||||||
|
" * The 'Open' status is used when user create invoice,a invoice number is generated.Its in open status till user does not pay invoice.\n"
|
||||||
|
" * The 'Paid' status is set automatically when the invoice is paid. Its related journal entries may or may not be reconciled.\n"
|
||||||
|
" * The 'Cancelled' status is used when user cancel invoice."
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: view:account.invoice.line:account_usability.account_invoice_line_search
|
||||||
|
#: model:ir.model,name:account_usability.model_account_account
|
||||||
|
msgid "Account"
|
||||||
|
msgstr "Compte"
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: model:ir.model,name:account_usability.model_account_move
|
||||||
|
msgid "Account Entry"
|
||||||
|
msgstr "Pièce comptable"
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: model:ir.model,name:account_usability.model_account_analytic_account
|
||||||
|
msgid "Analytic Account"
|
||||||
|
msgstr "Compte analytique"
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: model:ir.model,name:account_usability.model_account_bank_statement
|
||||||
|
msgid "Bank Statement"
|
||||||
|
msgstr "Relevé Bancaire"
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: model:ir.model,name:account_usability.model_account_bank_statement_line
|
||||||
|
msgid "Bank Statement Line"
|
||||||
|
msgstr "Ligne de Relevé Bancaire"
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: view:account.invoice.mark.sent:account_usability.account_invoice_mark_sent_form
|
||||||
|
msgid "Cancel"
|
||||||
|
msgstr "Annuler"
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: field:account.invoice.line,commercial_partner_id:0
|
||||||
|
msgid "Commercial Entity"
|
||||||
|
msgstr "Entité Commercial"
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: view:account.invoice.line:account_usability.account_invoice_line_search
|
||||||
|
msgid "Commercial Partner"
|
||||||
|
msgstr "Partenaire Commercial"
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: field:account.invoice.mark.sent,create_uid:0
|
||||||
|
msgid "Created by"
|
||||||
|
msgstr "Créé par"
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: field:account.invoice.mark.sent,create_date:0
|
||||||
|
msgid "Created on"
|
||||||
|
msgstr "Créé le"
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: field:account.invoice.line,currency_id:0
|
||||||
|
msgid "Currency"
|
||||||
|
msgstr "Monnaie"
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: model:ir.actions.act_window,name:account_usability.out_invoice_line_action
|
||||||
|
msgid "Customer Invoice Lines"
|
||||||
|
msgstr "Lignes de facture client"
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: view:account.invoice.line:account_usability.account_invoice_line_search
|
||||||
|
msgid "Customer Invoices"
|
||||||
|
msgstr "Factures Client"
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: model:ir.actions.act_window,name:account_usability.out_refund_line_action
|
||||||
|
msgid "Customer Refund Lines"
|
||||||
|
msgstr "Lignes d'avoir client"
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: view:account.invoice.line:account_usability.account_invoice_line_search
|
||||||
|
msgid "Customer Refunds"
|
||||||
|
msgstr "Avoir CLient"
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: view:account.move.line:account_usability.view_account_move_line_filter
|
||||||
|
msgid "Debit or Credit"
|
||||||
|
msgstr "Debit ou Credit"
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: field:account.invoice.mark.sent,display_name:0
|
||||||
|
msgid "Display Name"
|
||||||
|
msgstr "Display Name"
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: view:account.invoice.line:account_usability.account_invoice_line_search
|
||||||
|
msgid "Draft"
|
||||||
|
msgstr "Brouillon"
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: view:account.bank.statement:account_usability.view_bank_statement_search
|
||||||
|
#: field:account.bank.statement,end_date:0
|
||||||
|
msgid "End Date"
|
||||||
|
msgstr "Date de Fin"
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: model:ir.model,name:account_usability.model_account_fiscal_position
|
||||||
|
msgid "Fiscal Position"
|
||||||
|
msgstr "Position fiscale"
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: model:ir.model,name:account_usability.model_account_fiscalyear
|
||||||
|
msgid "Fiscal Year"
|
||||||
|
msgstr "Exercice"
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: view:account.move.line:account_usability.view_account_move_line_filter
|
||||||
|
msgid "Fully Reconciled"
|
||||||
|
msgstr "Complétement Réconcillié"
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: view:account.invoice.line:account_usability.account_invoice_line_search
|
||||||
|
msgid "Group By"
|
||||||
|
msgstr "Groupé par"
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: field:account.invoice.mark.sent,id:0
|
||||||
|
msgid "ID"
|
||||||
|
msgstr "ID"
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: model:ir.model,name:account_usability.model_account_invoice
|
||||||
|
msgid "Invoice"
|
||||||
|
msgstr "Facture"
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: view:account.invoice.line:account_usability.account_invoice_line_search
|
||||||
|
#: field:account.invoice.line,date_invoice:0
|
||||||
|
msgid "Invoice Date"
|
||||||
|
msgstr "Date de Facture"
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: model:ir.model,name:account_usability.model_account_invoice_line
|
||||||
|
msgid "Invoice Line"
|
||||||
|
msgstr "Lignes de facture"
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: field:account.analytic.account,invoice_line_ids:0
|
||||||
|
msgid "Invoice Lines"
|
||||||
|
msgstr "Lignes de Facture"
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: field:account.invoice.line,invoice_number:0
|
||||||
|
msgid "Invoice Number"
|
||||||
|
msgstr "N° de Facture"
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: field:account.invoice.line,state:0
|
||||||
|
msgid "Invoice State"
|
||||||
|
msgstr "Etat de la facture"
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: model:ir.model,name:account_usability.model_account_journal
|
||||||
|
msgid "Journal"
|
||||||
|
msgstr "Journal"
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: model:ir.model,name:account_usability.model_account_move_line
|
||||||
|
msgid "Journal Items"
|
||||||
|
msgstr "Écritures comptables"
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: help:account.invoice.line,date_invoice:0
|
||||||
|
msgid "Keep empty to use the current date"
|
||||||
|
msgstr "Laisser vide pour utiliser la date courante"
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: field:account.invoice.mark.sent,__last_update:0
|
||||||
|
msgid "Last Modified on"
|
||||||
|
msgstr "Modifié le"
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: field:account.invoice.mark.sent,write_uid:0
|
||||||
|
msgid "Last Updated by"
|
||||||
|
msgstr "Modifié par"
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: field:account.invoice.mark.sent,write_date:0
|
||||||
|
msgid "Last Updated on"
|
||||||
|
msgstr "Modifié le"
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: view:account.invoice.mark.sent:account_usability.account_invoice_mark_sent_form
|
||||||
|
#: model:ir.actions.act_window,name:account_usability.account_invoice_mark_sent_action
|
||||||
|
msgid "Mark as Sent"
|
||||||
|
msgstr "Marquer comme envoyé"
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: view:account.invoice.mark.sent:account_usability.account_invoice_mark_sent_form
|
||||||
|
#: model:ir.model,name:account_usability.model_account_invoice_mark_sent
|
||||||
|
msgid "Mark invoices as sent"
|
||||||
|
msgstr "Marquer les factures comme envoyé"
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: view:account.invoice:account_usability.view_account_invoice_filter
|
||||||
|
msgid "Missing Attachment"
|
||||||
|
msgstr "Pièce jointe manquante"
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: code:addons/account_usability/account.py:255
|
||||||
|
#, python-format
|
||||||
|
msgid "Move %d has a line !"
|
||||||
|
msgstr "Le mouvement %d a une ligne !"
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: view:account.move.line:account_usability.view_account_move_line_filter
|
||||||
|
msgid "Name or Reference"
|
||||||
|
msgstr "Nom ou Réference"
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: constraint:account.account:0
|
||||||
|
msgid "No error message"
|
||||||
|
msgstr "No error message"
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: code:addons/account_usability/account.py:374
|
||||||
|
#, python-format
|
||||||
|
msgid "No journal entry linked to this bank statement line."
|
||||||
|
msgstr "Aucune entrée de journal n'est liée à ce relevé bancaire."
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: view:account.invoice.line:account_usability.account_invoice_line_search
|
||||||
|
msgid "Not Paid"
|
||||||
|
msgstr "Non Payé"
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: view:account.invoice:account_usability.view_account_invoice_filter
|
||||||
|
msgid "Overdue"
|
||||||
|
msgstr "En retard"
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: view:account.invoice.line:account_usability.account_invoice_line_search
|
||||||
|
msgid "Paid"
|
||||||
|
msgstr "Payé"
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: code:addons/account_usability/account.py:192
|
||||||
|
#, python-format
|
||||||
|
msgid "Parent account %s should have type=view (current type=%s)"
|
||||||
|
msgstr "Parent account %s should have type=view (current type=%s)"
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: code:addons/account_usability/account.py:196
|
||||||
|
#, python-format
|
||||||
|
msgid "Parent account %s should have user_type=view (current (user_type=%s)"
|
||||||
|
msgstr "Parent account %s should have user_type=view (current (user_type=%s)"
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: view:account.move.line:account_usability.view_account_move_line_filter
|
||||||
|
msgid "Partially Reconciled"
|
||||||
|
msgstr "Partiellement Réconcillié"
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: view:account.invoice.line:account_usability.account_invoice_line_search
|
||||||
|
#: model:ir.model,name:account_usability.model_res_partner
|
||||||
|
msgid "Partner"
|
||||||
|
msgstr "Partenaire"
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: view:res.partner:account_usability.partner_view_button_journal_item_count
|
||||||
|
msgid "Payable Account"
|
||||||
|
msgstr "Compte Créditeur"
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: view:account.invoice.line:account_usability.account_invoice_line_search
|
||||||
|
#: view:account.invoice.report:account_usability.view_account_invoice_report_search
|
||||||
|
msgid "Product"
|
||||||
|
msgstr "Produit"
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: view:res.partner:account_usability.partner_view_button_journal_item_count
|
||||||
|
msgid "Receivable Account"
|
||||||
|
msgstr "Compte Débiteur"
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: view:account.analytic.account:account_usability.view_account_analytic_account_form
|
||||||
|
msgid "Related Invoice Lines"
|
||||||
|
msgstr "Lignes de facture associées"
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: view:account.invoice.line:account_usability.account_invoice_line_search
|
||||||
|
msgid "Search Invoice Lines"
|
||||||
|
msgstr "Rechercher les lignes de facture"
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: view:account.invoice:account_usability.view_account_invoice_filter
|
||||||
|
msgid "Sent"
|
||||||
|
msgstr "Envoyé"
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: view:account.bank.statement:account_usability.view_bank_statement_search
|
||||||
|
#: field:account.bank.statement,start_date:0
|
||||||
|
msgid "Start Date"
|
||||||
|
msgstr "Date de Début"
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: model:ir.actions.act_window,name:account_usability.in_invoice_line_action
|
||||||
|
msgid "Supplier Invoice Lines"
|
||||||
|
msgstr "Lignes de Facture Fournisseur"
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: view:account.invoice.line:account_usability.account_invoice_line_search
|
||||||
|
msgid "Supplier Invoices"
|
||||||
|
msgstr "Facture Fournisseur"
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: model:ir.actions.act_window,name:account_usability.in_refund_line_action
|
||||||
|
msgid "Supplier Refund Lines"
|
||||||
|
msgstr "Lignes d'avoir fournisseur"
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: view:account.invoice.line:account_usability.account_invoice_line_search
|
||||||
|
msgid "Supplier Refunds"
|
||||||
|
msgstr "Avoirs Fournisseur"
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: view:account.invoice.mark.sent:account_usability.account_invoice_mark_sent_form
|
||||||
|
msgid "This wizard will mark as sent all the selected invoices."
|
||||||
|
msgstr "Cet assistant marquera comme envoyé toutes les factures sélectionnées."
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: view:account.invoice:account_usability.view_account_invoice_filter
|
||||||
|
msgid "To Send"
|
||||||
|
msgstr "A Envoyer"
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: view:res.partner:account_usability.partner_view_button_journal_item_count
|
||||||
|
msgid "True"
|
||||||
|
msgstr "Vrai"
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: field:account.invoice.line,invoice_type:0
|
||||||
|
msgid "Type"
|
||||||
|
msgstr "Type"
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: view:account.bank.statement:account_usability.view_bank_statement_form
|
||||||
|
msgid "View Account Move"
|
||||||
|
msgstr "Voir les mouvements comptables"
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: view:account.move.line:account_usability.account_move_line_graph
|
||||||
|
msgid "pivot"
|
||||||
|
msgstr "pivot"
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: view:account.invoice:account_usability.invoice_form
|
||||||
|
#: view:account.invoice:account_usability.invoice_supplier_form
|
||||||
|
msgid "selection"
|
||||||
|
msgstr "selection"
|
||||||
|
|
||||||
|
Before Width: | Height: | Size: 6.5 KiB After Width: | Height: | Size: 84 KiB |
3
account_usability/wizard/__init__.py
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
# -*- encoding: utf-8 -*-
|
||||||
|
|
||||||
|
from . import account_invoice_mark_sent
|
||||||
23
account_usability/wizard/account_invoice_mark_sent.py
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
# © 2017 Akretion (Alexis de Lattre <alexis.delattre@akretion.com>)
|
||||||
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||||
|
|
||||||
|
from openerp import models, api
|
||||||
|
import logging
|
||||||
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
|
class AccountInvoiceMarkSent(models.TransientModel):
|
||||||
|
_name = 'account.invoice.mark.sent'
|
||||||
|
_description = 'Mark invoices as sent'
|
||||||
|
|
||||||
|
@api.multi
|
||||||
|
def run(self):
|
||||||
|
assert self.env.context.get('active_model') == 'account.invoice',\
|
||||||
|
'Source model must be invoices'
|
||||||
|
assert self.env.context.get('active_ids'), 'No invoices selected'
|
||||||
|
invoices = self.env['account.invoice'].browse(
|
||||||
|
self.env.context.get('active_ids'))
|
||||||
|
invoices.write({'sent': True})
|
||||||
|
logger.info('Marking invoices with ID %s as sent', invoices.ids)
|
||||||
|
return
|
||||||
36
account_usability/wizard/account_invoice_mark_sent_view.xml
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!--
|
||||||
|
© 2017 Akretion (Alexis de Lattre <alexis.delattre@akretion.com>)
|
||||||
|
The licence is in the file __openerp__.py
|
||||||
|
-->
|
||||||
|
|
||||||
|
<openerp>
|
||||||
|
<data>
|
||||||
|
|
||||||
|
<record id="account_invoice_mark_sent_form" model="ir.ui.view">
|
||||||
|
<field name="name">account.invoice.mark.sent.form</field>
|
||||||
|
<field name="model">account.invoice.mark.sent</field>
|
||||||
|
<field name="arch" type="xml">
|
||||||
|
<form string="Mark invoices as sent">
|
||||||
|
<p>
|
||||||
|
This wizard will mark as sent all the selected invoices.
|
||||||
|
</p>
|
||||||
|
<footer>
|
||||||
|
<button type="object" name="run" string="Mark as Sent" class="oe_highlight"/>
|
||||||
|
<button special="cancel" string="Cancel" class="oe_link"/>
|
||||||
|
</footer>
|
||||||
|
</form>
|
||||||
|
</field>
|
||||||
|
</record>
|
||||||
|
|
||||||
|
<act_window id="account_invoice_mark_sent_action"
|
||||||
|
multi="True"
|
||||||
|
key2="client_action_multi"
|
||||||
|
name="Mark as Sent"
|
||||||
|
res_model="account.invoice.mark.sent"
|
||||||
|
src_model="account.invoice"
|
||||||
|
view_mode="form"
|
||||||
|
target="new" />
|
||||||
|
|
||||||
|
</data>
|
||||||
|
</openerp>
|
||||||
@@ -39,5 +39,5 @@ This module has been written by Alexis de Lattre from Akretion <alexis.delattre@
|
|||||||
'website': 'http://www.akretion.com',
|
'website': 'http://www.akretion.com',
|
||||||
'depends': ['account_voucher'],
|
'depends': ['account_voucher'],
|
||||||
'data': [],
|
'data': [],
|
||||||
'installable': False,
|
'installable': True,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -48,5 +48,5 @@ This module has been written by Alexis de Lattre from Akretion <alexis.delattre@
|
|||||||
'report_aeroo',
|
'report_aeroo',
|
||||||
'base_other_report_engines',
|
'base_other_report_engines',
|
||||||
],
|
],
|
||||||
'installable': False,
|
'installable': True,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -21,5 +21,5 @@ Contributors: David BEAL
|
|||||||
'data': [
|
'data': [
|
||||||
'view.xml',
|
'view.xml',
|
||||||
],
|
],
|
||||||
'installable': False,
|
'installable': True,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -41,5 +41,5 @@ This module adds 2 fields on the Company :
|
|||||||
'website': 'http://www.akretion.com',
|
'website': 'http://www.akretion.com',
|
||||||
'depends': ['base'],
|
'depends': ['base'],
|
||||||
'data': ['company_view.xml'],
|
'data': ['company_view.xml'],
|
||||||
'installable': False,
|
'installable': True,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -39,5 +39,5 @@ Please contact Alexis de Lattre from Akretion <alexis.delattre@akretion.com> for
|
|||||||
'website': 'http://www.akretion.com',
|
'website': 'http://www.akretion.com',
|
||||||
'depends': ['base'],
|
'depends': ['base'],
|
||||||
'data': [],
|
'data': [],
|
||||||
'installable': False,
|
'installable': True,
|
||||||
}
|
}
|
||||||
|
|||||||
3
base_mail_sender_bcc/__init__.py
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
from . import ir_mail_server
|
||||||
22
base_mail_sender_bcc/__openerp__.py
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
# © 2017 Akretion (http://www.akretion.com)
|
||||||
|
# @author Alexis de Lattre <alexis.delattre@akretion.com>
|
||||||
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||||
|
|
||||||
|
{
|
||||||
|
'name': 'Mail Sender Bcc',
|
||||||
|
'version': '8.0.1.0.0',
|
||||||
|
'category': 'Mail',
|
||||||
|
'license': 'AGPL-3',
|
||||||
|
'summary': "Always send a copy of the mail to the sender",
|
||||||
|
'description': """
|
||||||
|
Mail Sender Bcc
|
||||||
|
===============
|
||||||
|
|
||||||
|
With this module, when Odoo sends an outgoing email, it adds the sender as Bcc (blind copy) of the email.
|
||||||
|
""",
|
||||||
|
'author': 'Akretion',
|
||||||
|
'website': 'http://www.akretion.com',
|
||||||
|
'depends': ['base'],
|
||||||
|
'installable': True,
|
||||||
|
}
|
||||||
28
base_mail_sender_bcc/ir_mail_server.py
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
# © 2017 Akretion (Alexis de Lattre <alexis.delattre@akretion.com>)
|
||||||
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||||
|
|
||||||
|
from openerp import models
|
||||||
|
|
||||||
|
|
||||||
|
class IrMailServer(models.Model):
|
||||||
|
_inherit = 'ir.mail_server'
|
||||||
|
|
||||||
|
def build_email(
|
||||||
|
self, email_from, email_to, subject, body, email_cc=None,
|
||||||
|
email_bcc=None, reply_to=False, attachments=None,
|
||||||
|
message_id=None, references=None, object_id=False,
|
||||||
|
subtype='plain', headers=None,
|
||||||
|
body_alternative=None, subtype_alternative='plain'):
|
||||||
|
if email_from:
|
||||||
|
if email_bcc is None:
|
||||||
|
email_bcc = [email_from]
|
||||||
|
elif isinstance(email_bcc, list) and email_from not in email_bcc:
|
||||||
|
email_bcc.append(email_from)
|
||||||
|
return super(IrMailServer, self).build_email(
|
||||||
|
email_from, email_to, subject, body, email_cc=email_cc,
|
||||||
|
email_bcc=email_bcc, reply_to=reply_to, attachments=attachments,
|
||||||
|
message_id=message_id, references=references, object_id=object_id,
|
||||||
|
subtype=subtype, headers=headers,
|
||||||
|
body_alternative=body_alternative,
|
||||||
|
subtype_alternative=subtype_alternative)
|
||||||
@@ -37,6 +37,6 @@ By default, you can't enter several addresses for an individual in OpenERP becau
|
|||||||
'website': 'http://www.akretion.com',
|
'website': 'http://www.akretion.com',
|
||||||
'depends': ['base'],
|
'depends': ['base'],
|
||||||
'data': ['partner_view.xml'],
|
'data': ['partner_view.xml'],
|
||||||
'installable': False,
|
'installable': True,
|
||||||
'active': False,
|
'active': False,
|
||||||
}
|
}
|
||||||
|
|||||||
3
base_partner_ref/__init__.py
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
from . import models
|
||||||
27
base_partner_ref/__openerp__.py
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
# Copyright 2017-2024 Akretion France (https://www.akretion.com)
|
||||||
|
# @author Alexis de Lattre <alexis.delattre@akretion.com>
|
||||||
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||||
|
|
||||||
|
{
|
||||||
|
'name': 'Base Partner Reference',
|
||||||
|
'version': '8.0.1.0.0',
|
||||||
|
'category': 'Partner',
|
||||||
|
'license': 'AGPL-3',
|
||||||
|
'summary': "Improve usage of partner's Internal Reference",
|
||||||
|
'description': """
|
||||||
|
Base Partner Reference
|
||||||
|
======================
|
||||||
|
|
||||||
|
* Adds Internal Reference in partner tree view
|
||||||
|
|
||||||
|
* Adds Internal Reference in name_get()
|
||||||
|
|
||||||
|
* Adds unicity constraint on Internal Reference
|
||||||
|
""",
|
||||||
|
'author': 'Akretion',
|
||||||
|
'website': 'https://github.com/akretion/odoo-usability',
|
||||||
|
'depends': ['base'],
|
||||||
|
'data': ['views/res_partner.xml'],
|
||||||
|
'installable': True,
|
||||||
|
}
|
||||||
3
base_partner_ref/models/__init__.py
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
from . import res_partner
|
||||||
62
base_partner_ref/models/res_partner.py
Normal file
@@ -0,0 +1,62 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
# Copyright 2017-2024 Akretion France
|
||||||
|
# @author: Alexis de Lattre <alexis.delattre@akretion.com>
|
||||||
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||||
|
|
||||||
|
from openerp import models, fields, api
|
||||||
|
|
||||||
|
|
||||||
|
class ResPartner(models.Model):
|
||||||
|
_inherit = 'res.partner'
|
||||||
|
|
||||||
|
display_name = fields.Char(compute="_compute_display_name", store=True, string="Name")
|
||||||
|
# copy=False on 'ref' is already in base_usability
|
||||||
|
|
||||||
|
_sql_constraints = [(
|
||||||
|
'ref_unique',
|
||||||
|
'unique(ref)',
|
||||||
|
'A partner already exists with this internal reference!'
|
||||||
|
)]
|
||||||
|
|
||||||
|
# inspired by _display_name_compute from base module
|
||||||
|
@api.multi
|
||||||
|
@api.depends('parent_id', 'is_company', 'name', 'ref')
|
||||||
|
def _compute_display_name(self):
|
||||||
|
for partner in self:
|
||||||
|
partner.display_name = partner.with_context(show_address=False, show_address_only=False, show_email=False).name_get()[0][1]
|
||||||
|
|
||||||
|
def name_get(self, cr, uid, ids, context=None):
|
||||||
|
if context is None:
|
||||||
|
context = {}
|
||||||
|
if isinstance(ids, (int, long)):
|
||||||
|
ids = [ids]
|
||||||
|
res = []
|
||||||
|
for record in self.browse(cr, uid, ids, context=context):
|
||||||
|
name = record.name
|
||||||
|
# START modif of native name_get() method
|
||||||
|
if record.ref:
|
||||||
|
name = u"[%s] %s" % (record.ref, name)
|
||||||
|
# END modif of native name_get() method
|
||||||
|
if record.parent_id and not record.is_company:
|
||||||
|
name = "%s, %s" % (record.parent_name, name)
|
||||||
|
if context.get('show_address_only'):
|
||||||
|
name = self._display_address(cr, uid, record, without_company=True, context=context)
|
||||||
|
if context.get('show_address'):
|
||||||
|
name = name + "\n" + self._display_address(cr, uid, record, without_company=True, context=context)
|
||||||
|
name = name.replace('\n\n', '\n')
|
||||||
|
name = name.replace('\n\n', '\n')
|
||||||
|
if context.get('show_email') and record.email:
|
||||||
|
name = "%s <%s>" % (name, record.email)
|
||||||
|
res.append((record.id, name))
|
||||||
|
return res
|
||||||
|
|
||||||
|
@api.model
|
||||||
|
def name_search(self, name='', args=None, operator='ilike', limit=100):
|
||||||
|
if args is None:
|
||||||
|
args = []
|
||||||
|
if name and operator == 'ilike':
|
||||||
|
recs = self.search([('ref', '=', name)] + args, limit=limit)
|
||||||
|
if recs:
|
||||||
|
rec_childs = self.search([('id', 'child_of', recs.ids)])
|
||||||
|
return rec_childs.name_get()
|
||||||
|
return super(ResPartner, self).name_search(name=name, args=args, operator=operator, limit=limit)
|
||||||
54
base_partner_ref/views/res_partner.xml
Normal file
@@ -0,0 +1,54 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!--
|
||||||
|
Copyright 2017-2024 Akretion France (https://www.akretion.com/)
|
||||||
|
@author: Alexis de Lattre <alexis.delattre@akretion.com>
|
||||||
|
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||||
|
-->
|
||||||
|
|
||||||
|
<openerp>
|
||||||
|
<data>
|
||||||
|
|
||||||
|
<record id="view_partner_form" model="ir.ui.view">
|
||||||
|
<field name="name">Move ref in partner form to make it more visible</field>
|
||||||
|
<field name="model">res.partner</field>
|
||||||
|
<field name="inherit_id" ref="base.view_partner_form"/>
|
||||||
|
<field name="arch" type="xml">
|
||||||
|
<field name="website" position="before">
|
||||||
|
<field name="ref"/>
|
||||||
|
</field>
|
||||||
|
<xpath expr="//page[@name='sales_purchases']//field[@name='ref']" position="replace"/>
|
||||||
|
</field>
|
||||||
|
</record>
|
||||||
|
|
||||||
|
<record id="view_partner_tree" model="ir.ui.view">
|
||||||
|
<field name="name">Add ref in partner tree view</field>
|
||||||
|
<field name="model">res.partner</field>
|
||||||
|
<field name="inherit_id" ref="base.view_partner_tree"/>
|
||||||
|
<field name="arch" type="xml">
|
||||||
|
<!-- show name and ref in separate columns -->
|
||||||
|
<field name="display_name" position="after">
|
||||||
|
<field name="ref"/>
|
||||||
|
<field name="name"/>
|
||||||
|
</field>
|
||||||
|
<field name="display_name" position="attributes">
|
||||||
|
<attribute name="invisible">1</attribute>
|
||||||
|
</field>
|
||||||
|
</field>
|
||||||
|
</record>
|
||||||
|
|
||||||
|
<record id="res_partner_kanban_view" model="ir.ui.view">
|
||||||
|
<field name="name">Add ref in partner kanban view</field>
|
||||||
|
<field name="model">res.partner</field>
|
||||||
|
<field name="inherit_id" ref="base.res_partner_kanban_view"/>
|
||||||
|
<field name="arch" type="xml">
|
||||||
|
<field name="display_name" position="after">
|
||||||
|
<field name="ref"/>
|
||||||
|
</field>
|
||||||
|
<li t-if="record.email.raw_value" position="after">
|
||||||
|
<li t-if="record.ref.raw_value">Ref: <field name="ref"/></li>
|
||||||
|
</li>
|
||||||
|
</field>
|
||||||
|
</record>
|
||||||
|
|
||||||
|
</data>
|
||||||
|
</openerp>
|
||||||
@@ -53,5 +53,5 @@ A group by 'State' is added to module search view.
|
|||||||
'module_view.xml',
|
'module_view.xml',
|
||||||
'translation_view.xml',
|
'translation_view.xml',
|
||||||
],
|
],
|
||||||
'installable': False,
|
'installable': True,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,6 +12,9 @@
|
|||||||
<field name="model">ir.module.module</field>
|
<field name="model">ir.module.module</field>
|
||||||
<field name="inherit_id" ref="base.view_module_filter"/>
|
<field name="inherit_id" ref="base.view_module_filter"/>
|
||||||
<field name="arch" type="xml">
|
<field name="arch" type="xml">
|
||||||
|
<xpath expr="//filter[@name='extra']" position="after">
|
||||||
|
<filter name="installable" string="Installable" domain="[('state', '!=', 'uninstallable')]"/>
|
||||||
|
</xpath>
|
||||||
<xpath expr="//filter[@string='Category']" position="after">
|
<xpath expr="//filter[@string='Category']" position="after">
|
||||||
<filter string="State" domain="[]" context="{'group_by':'state'}"/>
|
<filter string="State" domain="[]" context="{'group_by':'state'}"/>
|
||||||
</xpath>
|
</xpath>
|
||||||
@@ -20,7 +23,7 @@
|
|||||||
|
|
||||||
<record id="base.open_module_tree" model="ir.actions.act_window">
|
<record id="base.open_module_tree" model="ir.actions.act_window">
|
||||||
<field name="res_model">ir.module.module</field>
|
<field name="res_model">ir.module.module</field>
|
||||||
<field name="context">{}</field>
|
<field name="context">{'search_default_installable': 1}</field>
|
||||||
</record>
|
</record>
|
||||||
|
|
||||||
</data>
|
</data>
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ class Partner(models.Model):
|
|||||||
|
|
||||||
name = fields.Char(track_visibility='onchange')
|
name = fields.Char(track_visibility='onchange')
|
||||||
parent_id = fields.Many2one(track_visibility='onchange')
|
parent_id = fields.Many2one(track_visibility='onchange')
|
||||||
ref = fields.Char(track_visibility='onchange')
|
ref = fields.Char(track_visibility='onchange', copy=False)
|
||||||
lang = fields.Selection(track_visibility='onchange')
|
lang = fields.Selection(track_visibility='onchange')
|
||||||
user_id = fields.Many2one(track_visibility='onchange')
|
user_id = fields.Many2one(track_visibility='onchange')
|
||||||
vat = fields.Char(track_visibility='onchange')
|
vat = fields.Char(track_visibility='onchange')
|
||||||
@@ -45,6 +45,7 @@ class Partner(models.Model):
|
|||||||
is_company = fields.Boolean(track_visibility='onchange')
|
is_company = fields.Boolean(track_visibility='onchange')
|
||||||
use_parent_address = fields.Boolean(track_visibility='onchange')
|
use_parent_address = fields.Boolean(track_visibility='onchange')
|
||||||
active = fields.Boolean(track_visibility='onchange')
|
active = fields.Boolean(track_visibility='onchange')
|
||||||
|
company_id = fields.Many2one(track_visibility='onchange')
|
||||||
# For reports
|
# For reports
|
||||||
name_title = fields.Char(
|
name_title = fields.Char(
|
||||||
compute='_compute_name_title', string='Name with Title')
|
compute='_compute_name_title', string='Name with Title')
|
||||||
@@ -54,9 +55,15 @@ class Partner(models.Model):
|
|||||||
def _compute_name_title(self):
|
def _compute_name_title(self):
|
||||||
name_title = self.name
|
name_title = self.name
|
||||||
if self.title:
|
if self.title:
|
||||||
title = self.title.shortcut or self.title
|
title = self.title.shortcut or self.title.name
|
||||||
if self.is_company:
|
if self.is_company:
|
||||||
name_title = ' '.join([name_title, title])
|
name_title = ' '.join([name_title, title])
|
||||||
else:
|
else:
|
||||||
name_title = ' '.join([title, name_title])
|
name_title = ' '.join([title, name_title])
|
||||||
self.name_title = name_title
|
self.name_title = name_title
|
||||||
|
|
||||||
|
|
||||||
|
class ResPartnerCategory(models.Model):
|
||||||
|
_inherit = 'res.partner.category'
|
||||||
|
|
||||||
|
name = fields.Char(translate=False)
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 6.5 KiB After Width: | Height: | Size: 84 KiB |
37
base_user_auth_log/README.rst
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
|
||||||
|
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
|
||||||
|
:alt: License: AGPL-3
|
||||||
|
|
||||||
|
========================
|
||||||
|
User Authentication Logs
|
||||||
|
========================
|
||||||
|
|
||||||
|
This module adds user authentication logs in Odoo. It logs both authentication success and failures.
|
||||||
|
|
||||||
|
Usage
|
||||||
|
=====
|
||||||
|
|
||||||
|
The authentication logs can be seen:
|
||||||
|
|
||||||
|
* on the users's form view in the *Auth Logs* tab,
|
||||||
|
* in the menu *Settings > Technical > Security > Authentication Logs*.
|
||||||
|
|
||||||
|
Authentication failure logs are displayed in red. Authentication success logs are displayed in black.
|
||||||
|
|
||||||
|
To have read access to the logs, you need to be part of the *Access Rights* group.
|
||||||
|
|
||||||
|
Bug Tracker
|
||||||
|
===========
|
||||||
|
|
||||||
|
Bugs are tracked on `GitHub Issues
|
||||||
|
<https://github.com/akretion/odoo-usability/issues>`_. In case of trouble, please
|
||||||
|
check there if your issue has already been reported. If you spotted it first,
|
||||||
|
help us smashing it by providing a detailed and welcomed feedback.
|
||||||
|
|
||||||
|
Credits
|
||||||
|
=======
|
||||||
|
|
||||||
|
Contributors
|
||||||
|
------------
|
||||||
|
|
||||||
|
* Alexis de Lattre <alexis.delattre@akretion.com>
|
||||||
3
base_user_auth_log/__init__.py
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
from . import models
|
||||||
21
base_user_auth_log/__openerp__.py
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
# © 2017 Akretion (Alexis de Lattre <alexis.delattre@akretion.com>)
|
||||||
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||||
|
|
||||||
|
{
|
||||||
|
'name': 'Users authentification logs',
|
||||||
|
'version': '8.0.1.0.0',
|
||||||
|
'category': 'Tools',
|
||||||
|
'license': 'AGPL-3',
|
||||||
|
'summary': 'Adds users authentication logs',
|
||||||
|
'author': 'Akretion',
|
||||||
|
'website': 'http://www.akretion.com',
|
||||||
|
'depends': ['base'],
|
||||||
|
'data': [
|
||||||
|
'security/ir.model.access.csv',
|
||||||
|
'views/res_users_auth_log.xml',
|
||||||
|
'views/res_users.xml',
|
||||||
|
'data/ir_cron.xml',
|
||||||
|
],
|
||||||
|
'installable': True,
|
||||||
|
}
|
||||||
24
base_user_auth_log/data/ir_cron.xml
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!--
|
||||||
|
© 2017 Akretion (Alexis de Lattre <alexis.delattre@akretion.com>)
|
||||||
|
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||||
|
-->
|
||||||
|
|
||||||
|
<openerp>
|
||||||
|
<data noupdate="1"> <!-- noupdate = 1 for the 'active' field -->
|
||||||
|
|
||||||
|
<record id="purge_auth_log_cron" model="ir.cron">
|
||||||
|
<field name="name">Purge old authentication logs</field>
|
||||||
|
<field name="active" eval="True"/>
|
||||||
|
<field name="user_id" ref="base.user_root"/>
|
||||||
|
<field name="interval_number">1</field>
|
||||||
|
<field name="interval_type">months</field>
|
||||||
|
<field name="numbercall">-1</field> <!-- don't limit the number of calls -->
|
||||||
|
<field name="doall" eval="False"/>
|
||||||
|
<field name="model" eval="'res.users.auth.log'"/>
|
||||||
|
<field name="function" eval="'_purge_old_auth_logs'" />
|
||||||
|
<field name="args" eval="'()'"/>
|
||||||
|
</record>
|
||||||
|
|
||||||
|
</data>
|
||||||
|
</openerp>
|
||||||
4
base_user_auth_log/models/__init__.py
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
from . import res_users_auth_log
|
||||||
|
from . import res_users
|
||||||
42
base_user_auth_log/models/res_users.py
Normal file
@@ -0,0 +1,42 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
# © 2017 Akretion (Alexis de Lattre <alexis.delattre@akretion.com>)
|
||||||
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||||
|
|
||||||
|
from openerp import models, fields, registry, SUPERUSER_ID
|
||||||
|
import logging
|
||||||
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
|
class ResUsers(models.Model):
|
||||||
|
_inherit = 'res.users'
|
||||||
|
|
||||||
|
auth_log_ids = fields.One2many(
|
||||||
|
'res.users.auth.log', 'user_id', string='Authentication Logs')
|
||||||
|
|
||||||
|
def _login(self, db, login, password):
|
||||||
|
user_id = super(ResUsers, self)._login(db, login, password)
|
||||||
|
with registry(db).cursor() as cr:
|
||||||
|
if user_id:
|
||||||
|
result = 'success'
|
||||||
|
else:
|
||||||
|
user_id = None # To write a null value, psycopg2 wants None
|
||||||
|
result = 'failure'
|
||||||
|
cr.execute(
|
||||||
|
"SELECT id FROM res_users WHERE login=%s", (login, ))
|
||||||
|
user_select = cr.fetchall()
|
||||||
|
if user_select:
|
||||||
|
user_id = user_select[0][0]
|
||||||
|
|
||||||
|
cr.execute("""
|
||||||
|
INSERT INTO res_users_auth_log (
|
||||||
|
create_uid,
|
||||||
|
create_date,
|
||||||
|
date,
|
||||||
|
login,
|
||||||
|
result,
|
||||||
|
user_id
|
||||||
|
) VALUES (
|
||||||
|
%s, NOW() AT TIME ZONE 'UTC', NOW() AT TIME ZONE 'UTC',
|
||||||
|
%s, %s, %s)""", (SUPERUSER_ID, login, result, user_id))
|
||||||
|
logger.info('Auth log created for login %s type %s', login, result)
|
||||||
|
return user_id
|
||||||
44
base_user_auth_log/models/res_users_auth_log.py
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
# © 2017 Akretion (Alexis de Lattre <alexis.delattre@akretion.com>)
|
||||||
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||||
|
|
||||||
|
from openerp import models, fields, api, _
|
||||||
|
from openerp.exceptions import Warning as UserError
|
||||||
|
from datetime import datetime, timedelta
|
||||||
|
import logging
|
||||||
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
|
class ResUsersAuthLog(models.Model):
|
||||||
|
_name = 'res.users.auth.log'
|
||||||
|
_description = 'Users Authentication Logs'
|
||||||
|
_order = 'date desc'
|
||||||
|
_rec_name = 'date'
|
||||||
|
|
||||||
|
user_id = fields.Many2one(
|
||||||
|
'res.users', string='User', ondelete='cascade', readonly=True)
|
||||||
|
login = fields.Char(string='Login', readonly=True)
|
||||||
|
date = fields.Datetime(
|
||||||
|
string='Authentication Date', required=True, readonly=True)
|
||||||
|
result = fields.Selection([
|
||||||
|
('success', 'Success'),
|
||||||
|
('failure', 'Failure'),
|
||||||
|
], string='Result', required=True, readonly=True)
|
||||||
|
|
||||||
|
@api.model
|
||||||
|
def create(self, vals):
|
||||||
|
if not self._context.get('authenticate_create'):
|
||||||
|
raise UserError(_(
|
||||||
|
"You cannot manually create an authentication log."))
|
||||||
|
return super(ResUsersAuthLog, self).create(vals)
|
||||||
|
|
||||||
|
@api.multi
|
||||||
|
def write(self, vals):
|
||||||
|
raise UserError(_("You cannot modify an authentication log."))
|
||||||
|
|
||||||
|
@api.model
|
||||||
|
def _purge_old_auth_logs(self):
|
||||||
|
expiry_date = datetime.today() - timedelta(days=365)
|
||||||
|
self._cr.execute(
|
||||||
|
"DELETE FROM res_users_auth_log WHERE date <= %s", (expiry_date, ))
|
||||||
|
logger.info('Auth logs older than %s have been purged', expiry_date)
|
||||||
2
base_user_auth_log/security/ir.model.access.csv
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
|
||||||
|
access_res_users_auth_log,Read access to Access rights group,model_res_users_auth_log,base.group_erp_manager,1,0,0,0
|
||||||
|
26
base_user_auth_log/views/res_users.xml
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!--
|
||||||
|
© 2017 Akretion (Alexis de Lattre <alexis.delattre@akretion.com>)
|
||||||
|
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||||
|
-->
|
||||||
|
|
||||||
|
<openerp>
|
||||||
|
<data>
|
||||||
|
|
||||||
|
|
||||||
|
<record id="view_users_form" model="ir.ui.view">
|
||||||
|
<field name="name">auth_logs.res.users.form</field>
|
||||||
|
<field name="model">res.users</field>
|
||||||
|
<field name="inherit_id" ref="base.view_users_form"/>
|
||||||
|
<field name="arch" type="xml">
|
||||||
|
<notebook position="inside">
|
||||||
|
<page string="Auth Logs" name="auth_logs">
|
||||||
|
<field name="auth_log_ids" nolabel="1"/>
|
||||||
|
</page>
|
||||||
|
</notebook>
|
||||||
|
</field>
|
||||||
|
</record>
|
||||||
|
|
||||||
|
|
||||||
|
</data>
|
||||||
|
</openerp>
|
||||||
81
base_user_auth_log/views/res_users_auth_log.xml
Normal file
@@ -0,0 +1,81 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!--
|
||||||
|
© 2017 Akretion (Alexis de Lattre <alexis.delattre@akretion.com>)
|
||||||
|
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||||
|
-->
|
||||||
|
|
||||||
|
<openerp>
|
||||||
|
<data>
|
||||||
|
|
||||||
|
|
||||||
|
<record id="res_users_auth_log_form" model="ir.ui.view">
|
||||||
|
<field name="name">res.users.auth.logs.form</field>
|
||||||
|
<field name="model">res.users.auth.log</field>
|
||||||
|
<field name="arch" type="xml">
|
||||||
|
<form string="Authentication Log">
|
||||||
|
<group name="main">
|
||||||
|
<field name="date"/>
|
||||||
|
<field name="user_id"/>
|
||||||
|
<field name="login"/>
|
||||||
|
<field name="result"/>
|
||||||
|
</group>
|
||||||
|
</form>
|
||||||
|
</field>
|
||||||
|
</record>
|
||||||
|
|
||||||
|
<record id="res_users_auth_log_tree" model="ir.ui.view">
|
||||||
|
<field name="name">res.users.auth.logs.tree</field>
|
||||||
|
<field name="model">res.users.auth.log</field>
|
||||||
|
<field name="arch" type="xml">
|
||||||
|
<tree string="Authentication Logs" colors="red:result=='failure'">
|
||||||
|
<field name="date"/>
|
||||||
|
<field name="user_id" invisible="not context.get('auth_logs_main_view')"/>
|
||||||
|
<field name="login" invisible="not context.get('auth_logs_main_view')"/>
|
||||||
|
<field name="result"/>
|
||||||
|
</tree>
|
||||||
|
</field>
|
||||||
|
</record>
|
||||||
|
|
||||||
|
<record id="res_users_auth_log_search" model="ir.ui.view">
|
||||||
|
<field name="name">res.users.auth.logs.search</field>
|
||||||
|
<field name="model">res.users.auth.log</field>
|
||||||
|
<field name="arch" type="xml">
|
||||||
|
<search string="Search Authentication Logs">
|
||||||
|
<field name="user_id"/>
|
||||||
|
<filter name="success" string="Success" domain="[('result', '=', 'success')]"/>
|
||||||
|
<filter name="failure" string="Failure" domain="[('result', '=', 'failure')]"/>
|
||||||
|
<group string="Group By" name="groupby">
|
||||||
|
<filter name="day_groupby" string="Day" context="{'group_by': 'date:day'}"/>
|
||||||
|
<filter name="week_groupby" string="Week" context="{'group_by': 'date:week'}"/>
|
||||||
|
<filter name="month_groupby" string="Month" context="{'group_by': 'date:month'}"/>
|
||||||
|
<filter name="user_groupby" string="User" context="{'group_by': 'user_id'}"/>
|
||||||
|
<filter name="result_groupby" string="Result" context="{'group_by': 'result'}"/>
|
||||||
|
</group>
|
||||||
|
</search>
|
||||||
|
</field>
|
||||||
|
</record>
|
||||||
|
|
||||||
|
<record id="res_users_auth_log_graph" model="ir.ui.view">
|
||||||
|
<field name="name">res.users.auth.logs.graph</field>
|
||||||
|
<field name="model">res.users.auth.log</field>
|
||||||
|
<field name="arch" type="xml">
|
||||||
|
<graph string="Analyze Authentication Logs" type="pivot">
|
||||||
|
<field name="date" type="row" interval="week"/>
|
||||||
|
<field name="user_id" type="col"/>
|
||||||
|
</graph>
|
||||||
|
</field>
|
||||||
|
</record>
|
||||||
|
|
||||||
|
<record id="res_users_auth_log_action" model="ir.actions.act_window">
|
||||||
|
<field name="name">Authentication Logs</field>
|
||||||
|
<field name="res_model">res.users.auth.log</field>
|
||||||
|
<field name="view_mode">tree,form,graph</field>
|
||||||
|
<field name="context">{'auth_logs_main_view': True}</field>
|
||||||
|
</record>
|
||||||
|
|
||||||
|
<menuitem id="res_users_auth_log_menu" action="res_users_auth_log_action"
|
||||||
|
parent="base.menu_security" sequence="100"/>
|
||||||
|
|
||||||
|
|
||||||
|
</data>
|
||||||
|
</openerp>
|
||||||
@@ -1,3 +1,4 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
from . import wizard
|
from . import wizard
|
||||||
|
from . import crm
|
||||||
|
|||||||
@@ -31,5 +31,5 @@ This module has been written by Alexis de Lattre from Akretion
|
|||||||
'wizard/base_partner_merge_view.xml',
|
'wizard/base_partner_merge_view.xml',
|
||||||
'security/rule.xml',
|
'security/rule.xml',
|
||||||
],
|
],
|
||||||
'installable': False,
|
'installable': True,
|
||||||
}
|
}
|
||||||
|
|||||||
12
crm_usability/crm.py
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
# © 2017 Akretion (http://www.akretion.com)
|
||||||
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||||
|
# @author Alexis de Lattre <alexis.delattre@akretion.com>
|
||||||
|
|
||||||
|
from openerp import models, fields
|
||||||
|
|
||||||
|
|
||||||
|
class CrmCaseCateg(models.Model):
|
||||||
|
_inherit = 'crm.case.categ'
|
||||||
|
|
||||||
|
name = fields.Char(translate=False)
|
||||||
@@ -39,5 +39,5 @@ This module has been written by Alexis de Lattre from Akretion <alexis.delattre@
|
|||||||
'website': 'http://www.akretion.com',
|
'website': 'http://www.akretion.com',
|
||||||
'depends': ['delivery'],
|
'depends': ['delivery'],
|
||||||
'data': [],
|
'data': [],
|
||||||
'installable': False,
|
'installable': True,
|
||||||
}
|
}
|
||||||
|
|||||||
1
delivery_usability/__init__.py
Normal file
@@ -0,0 +1 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
30
delivery_usability/__openerp__.py
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
# Copyright 2017 Akretion (http://www.akretion.com).
|
||||||
|
# @author Sébastien BEAU <sebastien.beau@akretion.com>
|
||||||
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||||
|
|
||||||
|
{
|
||||||
|
"name": "Delivery usability",
|
||||||
|
"summary": "Delivery Usability",
|
||||||
|
"version": "8.0.1.0.0",
|
||||||
|
"category": "Warehouse",
|
||||||
|
"website": "www.akretion.com",
|
||||||
|
"author": " Akretion",
|
||||||
|
"license": "AGPL-3",
|
||||||
|
"application": False,
|
||||||
|
"installable": True,
|
||||||
|
"external_dependencies": {
|
||||||
|
"python": [],
|
||||||
|
"bin": [],
|
||||||
|
},
|
||||||
|
"depends": [
|
||||||
|
"delivery",
|
||||||
|
],
|
||||||
|
"data": [
|
||||||
|
"views/stock_picking_view.xml",
|
||||||
|
],
|
||||||
|
"demo": [
|
||||||
|
],
|
||||||
|
"qweb": [
|
||||||
|
]
|
||||||
|
}
|
||||||
20
delivery_usability/views/stock_picking_view.xml
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<openerp>
|
||||||
|
<data>
|
||||||
|
|
||||||
|
<record id="view_picking_withcarrier_out_form" model="ir.ui.view">
|
||||||
|
<field name="model">stock.picking</field>
|
||||||
|
<field name="inherit_id" ref="delivery.view_picking_withcarrier_out_form"/>
|
||||||
|
<field name="priority" eval="100"/>
|
||||||
|
<field name="arch" type="xml">
|
||||||
|
<xpath expr="//field[@name='carrier_id']/.." position="replace">
|
||||||
|
</xpath>
|
||||||
|
<field name="backorder_id" position="after">
|
||||||
|
<field name="carrier_id"/>
|
||||||
|
<field name="carrier_tracking_ref"/>
|
||||||
|
</field>
|
||||||
|
</field>
|
||||||
|
</record>
|
||||||
|
|
||||||
|
</data>
|
||||||
|
</openerp>
|
||||||
@@ -23,7 +23,7 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
'name': 'Eradicate Quick Create',
|
'name': 'Eradicate Quick Create',
|
||||||
'version': '9.0.1.0.0',
|
'version': '0.1',
|
||||||
'category': 'Tools',
|
'category': 'Tools',
|
||||||
'license': 'AGPL-3',
|
'license': 'AGPL-3',
|
||||||
'summary': 'Disable quick create on all objects',
|
'summary': 'Disable quick create on all objects',
|
||||||
@@ -39,5 +39,4 @@ Please contact Alexis de Lattre from Akretion <alexis.delattre@akretion.com> for
|
|||||||
'website': 'http://www.akretion.com',
|
'website': 'http://www.akretion.com',
|
||||||
'depends': ['base_optional_quick_create'],
|
'depends': ['base_optional_quick_create'],
|
||||||
'data': [],
|
'data': [],
|
||||||
'installable': True,
|
|
||||||
}
|
}
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 8.4 KiB After Width: | Height: | Size: 4.6 KiB |
@@ -34,5 +34,5 @@
|
|||||||
'data': [
|
'data': [
|
||||||
'security/expense_security.xml',
|
'security/expense_security.xml',
|
||||||
],
|
],
|
||||||
'installable': False,
|
'installable': True,
|
||||||
}
|
}
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 6.5 KiB After Width: | Height: | Size: 84 KiB |
@@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
'name': 'HR Holidays Lunch Voucher',
|
'name': 'HR Holidays Lunch Voucher',
|
||||||
'version': '10.0.1.0.0',
|
'version': '8.0.1.0.0',
|
||||||
'category': 'Human Resources',
|
'category': 'Human Resources',
|
||||||
'license': 'AGPL-3',
|
'license': 'AGPL-3',
|
||||||
'summary': 'Manage lunch vouchers in holidays requests',
|
'summary': 'Manage lunch vouchers in holidays requests',
|
||||||
@@ -24,5 +24,5 @@
|
|||||||
'hr_holidays_view.xml',
|
'hr_holidays_view.xml',
|
||||||
'wizard/hr_holidays_post_view.xml',
|
'wizard/hr_holidays_post_view.xml',
|
||||||
],
|
],
|
||||||
'installable': False,
|
'installable': True,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
'name': 'HR Holidays Lunch Voucher Natixis',
|
'name': 'HR Holidays Lunch Voucher Natixis',
|
||||||
'version': '10.0.1.0.0',
|
'version': '8.0.1.0.0',
|
||||||
'category': 'Human Resources',
|
'category': 'Human Resources',
|
||||||
'license': 'AGPL-3',
|
'license': 'AGPL-3',
|
||||||
'summary': 'Generate order file for Natixis lunch vouchers',
|
'summary': 'Generate order file for Natixis lunch vouchers',
|
||||||
@@ -16,5 +16,5 @@
|
|||||||
'data': [
|
'data': [
|
||||||
'company_view.xml',
|
'company_view.xml',
|
||||||
],
|
],
|
||||||
'installable': False,
|
'installable': True,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
|
|
||||||
from openerp import models, fields, api, _
|
from openerp import models, fields, api, _
|
||||||
from openerp.exceptions import Warning as UserError
|
from openerp.exceptions import Warning as UserError
|
||||||
|
from openerp.tools import float_is_zero
|
||||||
|
|
||||||
|
|
||||||
class LunchVoucherPurchase(models.TransientModel):
|
class LunchVoucherPurchase(models.TransientModel):
|
||||||
@@ -15,6 +16,8 @@ class LunchVoucherPurchase(models.TransientModel):
|
|||||||
self.ensure_one()
|
self.ensure_one()
|
||||||
action = super(LunchVoucherPurchase, self).run()
|
action = super(LunchVoucherPurchase, self).run()
|
||||||
company = self.env.user.company_id
|
company = self.env.user.company_id
|
||||||
|
# force_company to read standard_price properly
|
||||||
|
company = company.with_context(force_company=company.id)
|
||||||
lvao = self.env['lunch.voucher.attribution']
|
lvao = self.env['lunch.voucher.attribution']
|
||||||
assert self._context.get('active_model')\
|
assert self._context.get('active_model')\
|
||||||
== 'lunch.voucher.attribution', 'wrong source model'
|
== 'lunch.voucher.attribution', 'wrong source model'
|
||||||
@@ -37,10 +40,18 @@ class LunchVoucherPurchase(models.TransientModel):
|
|||||||
"Natixis Delivery Code on company '%s' should "
|
"Natixis Delivery Code on company '%s' should "
|
||||||
"have 7 characters/digits.")
|
"have 7 characters/digits.")
|
||||||
% (company.lunch_voucher_natixis_delivery_code, company.name))
|
% (company.lunch_voucher_natixis_delivery_code, company.name))
|
||||||
if not company.lunch_voucher_employer_price:
|
if float_is_zero(
|
||||||
|
company.lunch_voucher_employer_price,
|
||||||
|
precision_digits=2):
|
||||||
raise UserError(_(
|
raise UserError(_(
|
||||||
"Lunch Voucher Employer Price not set on company '%s'.")
|
"Lunch Voucher Employer Price not set on company '%s'.")
|
||||||
% company.name)
|
% company.name)
|
||||||
|
if float_is_zero(
|
||||||
|
company.lunch_voucher_product_id.standard_price,
|
||||||
|
precision_digits=2):
|
||||||
|
raise UserError(_(
|
||||||
|
"Lunch Voucher Standard Price is not set on product '%s'.")
|
||||||
|
% company.lunch_voucher_product_id.display_name)
|
||||||
lvouchers = lvao.browse(self._context['active_ids'])
|
lvouchers = lvao.browse(self._context['active_ids'])
|
||||||
of = u''
|
of = u''
|
||||||
tmp = {}
|
tmp = {}
|
||||||
|
|||||||
@@ -42,5 +42,5 @@
|
|||||||
'security/holiday_security.xml',
|
'security/holiday_security.xml',
|
||||||
'security/ir.model.access.csv',
|
'security/ir.model.access.csv',
|
||||||
],
|
],
|
||||||
'installable': False,
|
'installable': True,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -74,9 +74,11 @@ class HrHolidaysPost(models.TransientModel):
|
|||||||
# because, after the write, it doesn't have a value any more !!!
|
# because, after the write, it doesn't have a value any more !!!
|
||||||
holidays_to_post = self.holidays_to_post_ids
|
holidays_to_post = self.holidays_to_post_ids
|
||||||
today = fields.Date.context_today(self)
|
today = fields.Date.context_today(self)
|
||||||
if not self.holidays_to_post_ids:
|
# Disable the raise below to make the module "hr_holidays_lunch_voucher"
|
||||||
raise Warning(
|
# work even when nobody took holidays on the current month
|
||||||
_('No leave request to post.'))
|
# if not self.holidays_to_post_ids:
|
||||||
|
# raise Warning(
|
||||||
|
# _('No leave request to post.'))
|
||||||
self.holidays_to_post_ids.write({'posted_date': today})
|
self.holidays_to_post_ids.write({'posted_date': today})
|
||||||
view_id = self.env.ref('hr_holidays_usability.hr_holiday_graph').id
|
view_id = self.env.ref('hr_holidays_usability.hr_holiday_graph').id
|
||||||
action = {
|
action = {
|
||||||
|
|||||||
@@ -41,5 +41,5 @@ This module has been developped by Alexis de Lattre <alexis.delattre@akretion.co
|
|||||||
'data': [
|
'data': [
|
||||||
'hr_view.xml',
|
'hr_view.xml',
|
||||||
],
|
],
|
||||||
'installable': False,
|
'installable': True,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -42,5 +42,5 @@ This module has been written by Alexis de Lattre from Akretion <alexis.delattre@
|
|||||||
'depends': ['intrastat_product', 'l10n_fr_intrastat_service'],
|
'depends': ['intrastat_product', 'l10n_fr_intrastat_service'],
|
||||||
'data': ['product_view.xml'],
|
'data': ['product_view.xml'],
|
||||||
'post_init_hook': 'set_intrastat_type_on_products',
|
'post_init_hook': 'set_intrastat_type_on_products',
|
||||||
'installable': False,
|
'installable': True,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -46,5 +46,5 @@ This module has been written by Alexis de Lattre from Akretion <alexis.delattre@
|
|||||||
'author': "Akretion",
|
'author': "Akretion",
|
||||||
'website': 'http://www.akretion.com',
|
'website': 'http://www.akretion.com',
|
||||||
'depends': ['base'],
|
'depends': ['base'],
|
||||||
'installable': False,
|
'installable': True,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -39,5 +39,5 @@ This module has been written by Alexis de Lattre from Akretion <alexis.delattre@
|
|||||||
'website': 'http://www.akretion.com',
|
'website': 'http://www.akretion.com',
|
||||||
'depends': ['l10n_fr_intrastat_product', 'report_aeroo'],
|
'depends': ['l10n_fr_intrastat_product', 'report_aeroo'],
|
||||||
'data': ['report.xml'],
|
'data': ['report.xml'],
|
||||||
'installable': False,
|
'installable': True,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -40,5 +40,5 @@ This module has been written by Alexis de Lattre from Akretion <alexis.delattre@
|
|||||||
'website': 'http://www.akretion.com',
|
'website': 'http://www.akretion.com',
|
||||||
'depends': ['l10n_fr'],
|
'depends': ['l10n_fr'],
|
||||||
'data': [],
|
'data': [],
|
||||||
'installable': False,
|
'installable': True,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -42,6 +42,6 @@ Small usability improvements on mails:
|
|||||||
'author': 'Akretion',
|
'author': 'Akretion',
|
||||||
'website': 'http://www.akretion.com',
|
'website': 'http://www.akretion.com',
|
||||||
'depends': ['mail'],
|
'depends': ['mail'],
|
||||||
'data': [],
|
'data': ['views/mail.xml'],
|
||||||
'installable': False,
|
'installable': True,
|
||||||
}
|
}
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 6.5 KiB After Width: | Height: | Size: 84 KiB |
92
mail_usability/static/src/js/many2many_tags_email.js
Normal file
@@ -0,0 +1,92 @@
|
|||||||
|
openerp_FieldMany2ManyTagsEmail = function(instance) {
|
||||||
|
var _t = instance.web._t;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Extend of FieldMany2ManyTags widget method.
|
||||||
|
* When the user add a partner and the partner don't have an email, open a popup to purpose to add an email.
|
||||||
|
* The user can choose to add an email or cancel and close the popup.
|
||||||
|
*/
|
||||||
|
instance.web.form.FieldMany2ManyTagsEmail = instance.web.form.FieldMany2ManyTags.extend({
|
||||||
|
|
||||||
|
start: function() {
|
||||||
|
this.mutex = new openerp.Mutex();
|
||||||
|
|
||||||
|
// This widget will indirectly trigger a change:value to it's parent widget
|
||||||
|
// when setting the value of valid partners. For this reason we have to keep an
|
||||||
|
// internal state of the last value in order to compute the effective value changes.
|
||||||
|
this.last_processed_value = [];
|
||||||
|
|
||||||
|
this.on("change:value", this, this.on_change_value_check);
|
||||||
|
// Restore pop-up when trying to send to a partner without email
|
||||||
|
this.on_change_value_check();
|
||||||
|
this._super.apply(this, arguments);
|
||||||
|
},
|
||||||
|
|
||||||
|
on_change_value_check : function () {
|
||||||
|
var self = this;
|
||||||
|
var values = this.get('value').slice(0); // Clone the array
|
||||||
|
|
||||||
|
// We only validate partners emails in case the value is not empty
|
||||||
|
// and is different from the last processed value
|
||||||
|
var effective_change = _.difference(values, self.last_processed_value).length;
|
||||||
|
if (values.length && effective_change) {
|
||||||
|
this.mutex.exec(function() {
|
||||||
|
return self._check_email_popup(values);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
_check_email_popup: function (ids) {
|
||||||
|
var self = this;
|
||||||
|
var valid_partners;
|
||||||
|
|
||||||
|
new instance.web.Model('res.partner').call("search", [[
|
||||||
|
["id", "in", ids],
|
||||||
|
["email", "=", false],
|
||||||
|
["notify_email", "in", ['always', 'all_except_notification']]]],
|
||||||
|
{context: this.build_context()})
|
||||||
|
.then(function (record_ids) {
|
||||||
|
var popups_deferreds = [];
|
||||||
|
self.valid_partners = _.difference(ids, record_ids);
|
||||||
|
|
||||||
|
// Propose the user to correct invalid partners
|
||||||
|
_.each(record_ids, function (id) {
|
||||||
|
var popup_def = $.Deferred();
|
||||||
|
popups_deferreds.push(popup_def);
|
||||||
|
|
||||||
|
var pop = new instance.web.form.FormOpenPopup(self);
|
||||||
|
pop.show_element(
|
||||||
|
'res.partner',
|
||||||
|
id,
|
||||||
|
self.build_context(),
|
||||||
|
{
|
||||||
|
title: _t("Please complete partner's informations and Email"),
|
||||||
|
}
|
||||||
|
);
|
||||||
|
pop.on('write_completed', self, function () {
|
||||||
|
self.valid_partners.push(id);
|
||||||
|
});
|
||||||
|
pop.on('closed', self, function () {
|
||||||
|
popup_def.resolve();
|
||||||
|
});
|
||||||
|
});
|
||||||
|
return $.when.apply($, popups_deferreds).then(function() {
|
||||||
|
// All popups have been processed for the given ids
|
||||||
|
// It is now time to set the final value with valid partners ids.
|
||||||
|
var filtered_value = _.uniq(self.valid_partners);
|
||||||
|
self.last_processed_value = filtered_value;
|
||||||
|
self.set({'value': filtered_value});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Registry of form fields
|
||||||
|
*/
|
||||||
|
instance.web.form.widgets = instance.web.form.widgets.extend({
|
||||||
|
'many2many_tags_email' : 'instance.web.form.FieldMany2ManyTagsEmail',
|
||||||
|
});
|
||||||
|
|
||||||
|
};
|
||||||
11
mail_usability/views/mail.xml
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
|
||||||
|
<openerp>
|
||||||
|
<data>
|
||||||
|
<template id="assets_backend" name="mail usability assets" inherit_id="web.assets_backend">
|
||||||
|
<xpath expr="." position="inside">
|
||||||
|
<script type="text/javascript" src="/mail_usability/static/src/js/many2many_tags_email.js"></script>
|
||||||
|
</xpath>
|
||||||
|
</template>
|
||||||
|
</data>
|
||||||
|
</openerp>
|
||||||
@@ -25,5 +25,5 @@ Contributors: David BEAL
|
|||||||
'data': [
|
'data': [
|
||||||
'view.xml',
|
'view.xml',
|
||||||
],
|
],
|
||||||
'installable': False,
|
'installable': True,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -47,6 +47,6 @@ with https://github.com/akretion/csv2xml4odoo
|
|||||||
'misc_data.xml',
|
'misc_data.xml',
|
||||||
'ir_exports_line_data.xml',
|
'ir_exports_line_data.xml',
|
||||||
],
|
],
|
||||||
'installable': False,
|
'installable': True,
|
||||||
'license': 'AGPL-3',
|
'license': 'AGPL-3',
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -43,5 +43,5 @@ This module has been written by Alexis de Lattre from Akretion <alexis.delattre@
|
|||||||
'website': 'http://www.akretion.com',
|
'website': 'http://www.akretion.com',
|
||||||
'depends': ['mrp'],
|
'depends': ['mrp'],
|
||||||
'data': ['mrp_view.xml'],
|
'data': ['mrp_view.xml'],
|
||||||
'installable': False,
|
'installable': True,
|
||||||
}
|
}
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 6.5 KiB After Width: | Height: | Size: 84 KiB |
@@ -41,5 +41,4 @@ This module has been written by Alexis de Lattre from Akretion <alexis.delattre@
|
|||||||
'website': 'http://www.akretion.com',
|
'website': 'http://www.akretion.com',
|
||||||
'depends': ['account_financial_report_webkit'],
|
'depends': ['account_financial_report_webkit'],
|
||||||
'data': ['partner_view.xml'],
|
'data': ['partner_view.xml'],
|
||||||
'installable': False,
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -40,31 +40,27 @@ class ResPartner(models.Model):
|
|||||||
def open_aged_open_invoices_report(self):
|
def open_aged_open_invoices_report(self):
|
||||||
aoiwo = self.env['aged.open.invoices.webkit']
|
aoiwo = self.env['aged.open.invoices.webkit']
|
||||||
afo = self.env['account.fiscalyear']
|
afo = self.env['account.fiscalyear']
|
||||||
# Force 'date_from' to the first day of the company's life
|
# Filter by period (and not by date) to get
|
||||||
# in order to get the full picture of the partner's account
|
# the report à nouveau
|
||||||
# (we could also do that via a filter by period, but, in this case,
|
|
||||||
# account_financial_report_webkit doesn't accept "until_date = today" ;
|
|
||||||
# until_date has to be the end date of the last period
|
|
||||||
fy_years = afo.search([], order='date_start')
|
fy_years = afo.search([], order='date_start')
|
||||||
date_from = fy_years[0].date_start
|
date_from = fy_years[0].date_start
|
||||||
fy_id = aoiwo._get_fiscalyear()
|
fy_id = aoiwo._get_fiscalyear()
|
||||||
filter_change = aoiwo.onchange_filter(
|
filter_change = aoiwo.onchange_filter(
|
||||||
filter='filter_date', fiscalyear_id=fy_id)
|
filter='filter_period', fiscalyear_id=fy_id)
|
||||||
vals = {
|
vals = {
|
||||||
'fiscalyear_id': fy_id,
|
'fiscalyear_id': fy_id,
|
||||||
'filter': 'filter_date',
|
'filter': 'filter_period',
|
||||||
'partner_ids': [(6, 0, [self.commercial_partner_id.id])],
|
'partner_ids': [(6, 0, [self.commercial_partner_id.id])],
|
||||||
'target_move': 'all',
|
'target_move': 'all',
|
||||||
}
|
}
|
||||||
vals.update(filter_change['value'])
|
vals.update(filter_change['value'])
|
||||||
vals['date_from'] = date_from
|
|
||||||
wizard = aoiwo.create(vals)
|
wizard = aoiwo.create(vals)
|
||||||
data = {'form': {
|
data = {'form': {
|
||||||
'chart_account_id': wizard.chart_account_id.id,
|
'chart_account_id': wizard.chart_account_id.id,
|
||||||
'filter': vals['filter'],
|
'filter': vals['filter'],
|
||||||
'date_from': vals['date_from'],
|
'period_from': vals['period_from'],
|
||||||
'date_to': vals['date_to'],
|
'period_to': vals['period_to'],
|
||||||
'period_to': False,
|
'date_to': False,
|
||||||
'fiscalyear_id': vals['fiscalyear_id'],
|
'fiscalyear_id': vals['fiscalyear_id'],
|
||||||
'partner_ids': vals['partner_ids'][0][2],
|
'partner_ids': vals['partner_ids'][0][2],
|
||||||
'target_move': vals['target_move'],
|
'target_move': vals['target_move'],
|
||||||
|
|||||||
@@ -43,5 +43,5 @@ This module has been written by Alexis de Lattre from Akretion
|
|||||||
'depends': ['product'],
|
'depends': ['product'],
|
||||||
'conflicts': ['partner_products_shortcut'],
|
'conflicts': ['partner_products_shortcut'],
|
||||||
'data': ['partner_view.xml'],
|
'data': ['partner_view.xml'],
|
||||||
'installable': False,
|
'installable': True,
|
||||||
}
|
}
|
||||||
|
|||||||