Compare commits
1 Commits
16-add-pro
...
16.0-no_de
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8b0f12eb27 |
@@ -23,14 +23,14 @@ This modules adds the following functions:
|
|||||||
|
|
||||||
* Add an *Overdue* filter on invoice search view (this feature was previously
|
* Add an *Overdue* filter on invoice search view (this feature was previously
|
||||||
located in te module *account_invoice_overdue_filter*)
|
located in te module *account_invoice_overdue_filter*)
|
||||||
* Increase the default limit of 80 lines in journal entries and journal items views.
|
* Increase the default limit of 80 lines in account move and account move line view.
|
||||||
* disable reconciliation "guessing"
|
* disable reconciliation "guessing"
|
||||||
* fast search on *Reconcile Ref* for journal items.
|
* fast search on *Reconcile Ref* for account move line.
|
||||||
* add sale dates to invoice report to be compliant with
|
* add sale dates to invoice report to be compliant with
|
||||||
https://www.service-public.fr/professionnels-entreprises/vosdroits/F31808
|
https://www.service-public.fr/professionnels-entreprises/vosdroits/F31808
|
||||||
* Sale date on qweb invoices
|
* Sale date on qweb invoices
|
||||||
* A wizard to mark several invoices as sent at once (forward from v8)
|
* A wizard to mark several invoices as sent at once (forward from v8)
|
||||||
* Default date for reversal journal entry is now D+1 instead of today
|
* Default date for Account Move Reversal is now D+1 instead of today
|
||||||
* Track more fields on invoice (see details in account.py)
|
* Track more fields on invoice (see details in account.py)
|
||||||
* Add boolean fields `has_discount` and `has_attachment` on invoice
|
* Add boolean fields `has_discount` and `has_attachment` on invoice
|
||||||
* Add button "Delete line qty = 0" on supplier invoice
|
* Add button "Delete line qty = 0" on supplier invoice
|
||||||
@@ -41,8 +41,8 @@ This modules adds the following functions:
|
|||||||
* add direct search of journal using code
|
* add direct search of journal using code
|
||||||
* add copy=False on some fields
|
* add copy=False on some fields
|
||||||
* Add unicity constraint on analytic codes per company
|
* Add unicity constraint on analytic codes per company
|
||||||
* Better default values on journal entry
|
* Better default values on account move
|
||||||
* Add link from journal items to to invoice
|
* Add link from account move line to invoice
|
||||||
* Add start_date and end_date on bank statements
|
* Add start_date and end_date on bank statements
|
||||||
* Add transfer_account_id to invoicing config page
|
* Add transfer_account_id to invoicing config page
|
||||||
* Improve domain reconciliation widget
|
* Improve domain reconciliation widget
|
||||||
|
|||||||
@@ -18,10 +18,9 @@
|
|||||||
'views/account_account.xml',
|
'views/account_account.xml',
|
||||||
'views/account_group.xml',
|
'views/account_group.xml',
|
||||||
# 'views/account_bank_statement.xml',
|
# 'views/account_bank_statement.xml',
|
||||||
'views/account_invoice_report.xml',
|
# 'views/account_invoice_report.xml',
|
||||||
'views/account_journal.xml',
|
'views/account_journal.xml',
|
||||||
'views/account_move.xml',
|
'views/account_move.xml',
|
||||||
'views/account_analytic_line.xml',
|
|
||||||
'views/account_menu.xml',
|
'views/account_menu.xml',
|
||||||
'views/account_tax.xml',
|
'views/account_tax.xml',
|
||||||
# 'views/product.xml', # TODO
|
# 'views/product.xml', # TODO
|
||||||
@@ -30,11 +29,9 @@
|
|||||||
'wizard/account_invoice_mark_sent_view.xml',
|
'wizard/account_invoice_mark_sent_view.xml',
|
||||||
'wizard/account_group_generate_view.xml',
|
'wizard/account_group_generate_view.xml',
|
||||||
'wizard/account_payment_register_views.xml',
|
'wizard/account_payment_register_views.xml',
|
||||||
'wizard/account_move_reversal.xml',
|
|
||||||
'security/ir.model.access.csv',
|
'security/ir.model.access.csv',
|
||||||
# 'report/invoice_report.xml', # TODO
|
# 'report/invoice_report.xml', # TODO
|
||||||
"views/res_partner.xml",
|
],
|
||||||
],
|
|
||||||
# 'qweb': ['static/src/xml/account_payment.xml'],
|
# 'qweb': ['static/src/xml/account_payment.xml'],
|
||||||
'installable': True,
|
'installable': True,
|
||||||
# "post_init_hook": "post_init_hook",
|
# "post_init_hook": "post_init_hook",
|
||||||
|
|||||||
@@ -1,15 +0,0 @@
|
|||||||
diff --git a/addons/account/__init__.py b/addons/account/__init__.py
|
|
||||||
index 138004b0849..07e6475f760 100644
|
|
||||||
--- a/addons/account/__init__.py
|
|
||||||
+++ b/addons/account/__init__.py
|
|
||||||
@@ -45,7 +45,9 @@ def _auto_install_l10n(env):
|
|
||||||
module_list.append('l10n_de_skr03')
|
|
||||||
module_list.append('l10n_de_skr04')
|
|
||||||
else:
|
|
||||||
- if env['ir.module.module'].search([('name', '=', 'l10n_' + country_code.lower())]):
|
|
||||||
+ if env['ir.module.module'].search([('name', '=', 'l10n_%s_oca' % country_code.lower())]):
|
|
||||||
+ module_list.append('l10n_%s_oca' % country_code.lower())
|
|
||||||
+ elif env['ir.module.module'].search([('name', '=', 'l10n_' + country_code.lower())]):
|
|
||||||
module_list.append('l10n_' + country_code.lower())
|
|
||||||
else:
|
|
||||||
module_list.append('l10n_generic_coa')
|
|
||||||
691
account_usability_akretion/i18n/account_usability.pot
Normal file
691
account_usability_akretion/i18n/account_usability.pot
Normal file
@@ -0,0 +1,691 @@
|
|||||||
|
# Translation of Odoo Server.
|
||||||
|
# This file contains the translation of the following modules:
|
||||||
|
# * account_usability
|
||||||
|
#
|
||||||
|
msgid ""
|
||||||
|
msgstr ""
|
||||||
|
"Project-Id-Version: Odoo Server 14.0\n"
|
||||||
|
"Report-Msgid-Bugs-To: \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
|
||||||
|
#: code:addons/account_usability/wizard/account_group_generate.py:0
|
||||||
|
#, python-format
|
||||||
|
msgid ""
|
||||||
|
"%d account groups already exists in company '%s'. This wizard is designed to"
|
||||||
|
" generate account groups from scratch."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: model:ir.model,name:account_usability.model_account_account
|
||||||
|
msgid "Account"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: code:addons/account_usability/wizard/account_group_generate.py:0
|
||||||
|
#, python-format
|
||||||
|
msgid "Account Groups"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: model:ir.model,name:account_usability.model_account_move_reversal
|
||||||
|
msgid "Account Move Reversal"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: model:ir.model,name:account_usability.model_account_reconciliation_widget
|
||||||
|
msgid "Account Reconciliation widget"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: model:ir.model.fields,field_description:account_usability.field_account_journal__account_type_current_assets_id
|
||||||
|
msgid "Account Type Current Assets"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: model:ir.model.fields,field_description:account_usability.field_account_journal__account_type_current_liabilities_id
|
||||||
|
msgid "Account Type Current Liabilities"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: model:ir.model.fields,field_description:account_usability.field_account_move_line__account_reconcile
|
||||||
|
msgid "Allow Reconciliation"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: model:ir.model.constraint,message:account_usability.constraint_account_analytic_account_code_company_unique
|
||||||
|
msgid ""
|
||||||
|
"An analytic account with the same code already exists in the same company!"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: model:ir.model,name:account_usability.model_account_analytic_account
|
||||||
|
msgid "Analytic Account"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: model_terms:ir.ui.view,arch_db:account_usability.view_bank_statement_form
|
||||||
|
msgid "Are you sure to unreconcile all the entrie of the bank statement?"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: model:ir.model.fields,help:account_usability.field_account_bank_statement_line__partner_bank_id
|
||||||
|
#: model:ir.model.fields,help:account_usability.field_account_move__partner_bank_id
|
||||||
|
msgid ""
|
||||||
|
"Bank Account Number to which the invoice will be paid. A Company bank "
|
||||||
|
"account if this is a Customer Invoice or Vendor Credit Note, otherwise a "
|
||||||
|
"Partner bank account number."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: model:ir.ui.menu,name:account_usability.res_partner_bank_account_config_menu
|
||||||
|
msgid "Bank Accounts"
|
||||||
|
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
|
||||||
|
#: model:ir.ui.menu,name:account_usability.res_bank_account_config_menu
|
||||||
|
msgid "Banks"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: model_terms:ir.ui.view,arch_db:account_usability.account_group_generate_form
|
||||||
|
#: model_terms:ir.ui.view,arch_db:account_usability.account_invoice_mark_sent_form
|
||||||
|
msgid "Cancel"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: model:ir.model.fields,help:account_usability.field_account_move_line__account_reconcile
|
||||||
|
msgid ""
|
||||||
|
"Check this box if this account allows invoices & payments matching of "
|
||||||
|
"journal items."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: model_terms:ir.ui.view,arch_db:account_usability.view_account_search
|
||||||
|
msgid "Code"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: model:ir.model,name:account_usability.model_res_company
|
||||||
|
msgid "Companies"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: model:ir.model,name:account_usability.model_res_config_settings
|
||||||
|
msgid "Config Settings"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: model:ir.model,name:account_usability.model_res_partner
|
||||||
|
msgid "Contact"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: model:ir.model.fields,field_description:account_usability.field_account_group_generate__create_uid
|
||||||
|
#: model:ir.model.fields,field_description:account_usability.field_account_invoice_mark_sent__create_uid
|
||||||
|
msgid "Created by"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: model:ir.model.fields,field_description:account_usability.field_account_group_generate__create_date
|
||||||
|
#: model:ir.model.fields,field_description:account_usability.field_account_invoice_mark_sent__create_date
|
||||||
|
msgid "Created on"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: model:ir.model.fields,help:account_usability.field_account_move_line__matched_credit_ids
|
||||||
|
msgid "Credit journal items that are matched with this journal item."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: model_terms:ir.ui.view,arch_db:account_usability.view_account_move_line_filter
|
||||||
|
msgid "Current Year"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: model:ir.model.fields,field_description:account_usability.field_account_bank_statement_line__date
|
||||||
|
#: model:ir.model.fields,field_description:account_usability.field_account_move__date
|
||||||
|
#: model:ir.model.fields,field_description:account_usability.field_account_payment__date
|
||||||
|
msgid "Date"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: model:ir.model.fields,help:account_usability.field_account_move_line__matched_debit_ids
|
||||||
|
msgid "Debit journal items that are matched with this journal item."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: model_terms:ir.ui.view,arch_db:account_usability.view_account_move_line_filter
|
||||||
|
msgid "Debit or Credit"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: model:ir.model.fields,field_description:account_usability.field_account_account__display_name
|
||||||
|
#: model:ir.model.fields,field_description:account_usability.field_account_analytic_account__display_name
|
||||||
|
#: model:ir.model.fields,field_description:account_usability.field_account_bank_statement__display_name
|
||||||
|
#: model:ir.model.fields,field_description:account_usability.field_account_bank_statement_line__display_name
|
||||||
|
#: model:ir.model.fields,field_description:account_usability.field_account_group_generate__display_name
|
||||||
|
#: model:ir.model.fields,field_description:account_usability.field_account_incoterms__display_name
|
||||||
|
#: model:ir.model.fields,field_description:account_usability.field_account_invoice_mark_sent__display_name
|
||||||
|
#: model:ir.model.fields,field_description:account_usability.field_account_invoice_report__display_name
|
||||||
|
#: model:ir.model.fields,field_description:account_usability.field_account_journal__display_name
|
||||||
|
#: model:ir.model.fields,field_description:account_usability.field_account_move__display_name
|
||||||
|
#: model:ir.model.fields,field_description:account_usability.field_account_move_line__display_name
|
||||||
|
#: model:ir.model.fields,field_description:account_usability.field_account_move_reversal__display_name
|
||||||
|
#: model:ir.model.fields,field_description:account_usability.field_account_partial_reconcile__display_name
|
||||||
|
#: model:ir.model.fields,field_description:account_usability.field_product_supplierinfo__display_name
|
||||||
|
#: model:ir.model.fields,field_description:account_usability.field_product_template__display_name
|
||||||
|
#: model:ir.model.fields,field_description:account_usability.field_res_company__display_name
|
||||||
|
#: model:ir.model.fields,field_description:account_usability.field_res_config_settings__display_name
|
||||||
|
#: model:ir.model.fields,field_description:account_usability.field_res_partner__display_name
|
||||||
|
msgid "Display Name"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: model:ir.model.fields,field_description:account_usability.field_account_bank_statement_line__invoice_date_due
|
||||||
|
#: model:ir.model.fields,field_description:account_usability.field_account_move__invoice_date_due
|
||||||
|
#: model:ir.model.fields,field_description:account_usability.field_account_payment__invoice_date_due
|
||||||
|
msgid "Due Date"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: model:ir.model.fields,field_description:account_usability.field_account_bank_statement__end_date
|
||||||
|
#: model_terms:ir.ui.view,arch_db:account_usability.view_bank_statement_search
|
||||||
|
msgid "End Date"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: model:ir.model,name:account_usability.model_account_fiscal_position
|
||||||
|
#: model:ir.model.fields,field_description:account_usability.field_account_bank_statement_line__fiscal_position_id
|
||||||
|
#: model:ir.model.fields,field_description:account_usability.field_account_move__fiscal_position_id
|
||||||
|
#: model:ir.model.fields,field_description:account_usability.field_account_payment__fiscal_position_id
|
||||||
|
#: model:ir.model.fields,field_description:account_usability.field_res_partner__property_account_position_id
|
||||||
|
#: model:ir.model.fields,field_description:account_usability.field_res_users__property_account_position_id
|
||||||
|
msgid "Fiscal Position"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: model:ir.model,name:account_usability.model_account_fiscalyear
|
||||||
|
msgid "Fiscal Year"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: model:ir.model.fields,help:account_usability.field_account_bank_statement_line__fiscal_position_id
|
||||||
|
#: model:ir.model.fields,help:account_usability.field_account_move__fiscal_position_id
|
||||||
|
#: model:ir.model.fields,help:account_usability.field_account_payment__fiscal_position_id
|
||||||
|
msgid ""
|
||||||
|
"Fiscal positions are used to adapt taxes and accounts for particular "
|
||||||
|
"customers or sales orders/invoices. The default value comes from the "
|
||||||
|
"customer."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: model:ir.model.fields,field_description:account_usability.field_account_move_line__full_reconcile_id
|
||||||
|
msgid "Full Reconcile"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: model_terms:ir.ui.view,arch_db:account_usability.view_account_move_line_filter
|
||||||
|
msgid "Fully Reconciled"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: model_terms:ir.ui.view,arch_db:account_usability.account_group_generate_form
|
||||||
|
msgid "Generate"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: model:ir.actions.act_window,name:account_usability.account_group_generate_action
|
||||||
|
#: model:ir.model,name:account_usability.model_account_group_generate
|
||||||
|
#: model:ir.ui.menu,name:account_usability.account_group_generate_menu
|
||||||
|
msgid "Generate Account Groups"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: model_terms:ir.ui.view,arch_db:account_usability.account_group_generate_form
|
||||||
|
msgid "Generate account groups"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: model_terms:ir.ui.view,arch_db:account_usability.view_account_analytic_account_search
|
||||||
|
#: model_terms:ir.ui.view,arch_db:account_usability.view_account_search
|
||||||
|
msgid "Group"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: model_terms:ir.ui.view,arch_db:account_usability.view_account_journal_search
|
||||||
|
msgid "Group By"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: model:ir.model.fields,field_description:account_usability.field_account_bank_statement_line__has_attachment
|
||||||
|
#: model:ir.model.fields,field_description:account_usability.field_account_move__has_attachment
|
||||||
|
#: model:ir.model.fields,field_description:account_usability.field_account_payment__has_attachment
|
||||||
|
msgid "Has Attachment"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: model:ir.model.fields,field_description:account_usability.field_account_bank_statement_line__has_discount
|
||||||
|
#: model:ir.model.fields,field_description:account_usability.field_account_move__has_discount
|
||||||
|
#: model:ir.model.fields,field_description:account_usability.field_account_payment__has_discount
|
||||||
|
msgid "Has Discount"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: model:ir.model.fields,field_description:account_usability.field_account_bank_statement__hide_bank_statement_balance
|
||||||
|
#: model:ir.model.fields,field_description:account_usability.field_account_journal__hide_bank_statement_balance
|
||||||
|
msgid "Hide Bank Statement Balance"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: model:ir.model.fields,field_description:account_usability.field_account_account__id
|
||||||
|
#: model:ir.model.fields,field_description:account_usability.field_account_analytic_account__id
|
||||||
|
#: model:ir.model.fields,field_description:account_usability.field_account_bank_statement__id
|
||||||
|
#: model:ir.model.fields,field_description:account_usability.field_account_bank_statement_line__id
|
||||||
|
#: model:ir.model.fields,field_description:account_usability.field_account_group_generate__id
|
||||||
|
#: model:ir.model.fields,field_description:account_usability.field_account_incoterms__id
|
||||||
|
#: model:ir.model.fields,field_description:account_usability.field_account_invoice_mark_sent__id
|
||||||
|
#: model:ir.model.fields,field_description:account_usability.field_account_invoice_report__id
|
||||||
|
#: model:ir.model.fields,field_description:account_usability.field_account_journal__id
|
||||||
|
#: model:ir.model.fields,field_description:account_usability.field_account_move__id
|
||||||
|
#: model:ir.model.fields,field_description:account_usability.field_account_move_line__id
|
||||||
|
#: model:ir.model.fields,field_description:account_usability.field_account_move_reversal__id
|
||||||
|
#: model:ir.model.fields,field_description:account_usability.field_account_partial_reconcile__id
|
||||||
|
#: model:ir.model.fields,field_description:account_usability.field_product_supplierinfo__id
|
||||||
|
#: model:ir.model.fields,field_description:account_usability.field_product_template__id
|
||||||
|
#: model:ir.model.fields,field_description:account_usability.field_res_company__id
|
||||||
|
#: model:ir.model.fields,field_description:account_usability.field_res_config_settings__id
|
||||||
|
#: model:ir.model.fields,field_description:account_usability.field_res_partner__id
|
||||||
|
msgid "ID"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: model:ir.model,name:account_usability.model_account_incoterms
|
||||||
|
msgid "Incoterms"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: model:ir.model.fields,field_description:account_usability.field_res_config_settings__transfer_account_id
|
||||||
|
msgid "Inter-Banks Transfer Account"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: model:ir.model.fields,help:account_usability.field_res_config_settings__transfer_account_id
|
||||||
|
msgid ""
|
||||||
|
"Intermediary account used when moving money from a liquidity account to "
|
||||||
|
"another"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: model:ir.model.fields,help:account_usability.field_account_move_line__product_barcode
|
||||||
|
msgid "International Article Number used for product identification."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: model:ir.model,name:account_usability.model_account_invoice
|
||||||
|
#: model:ir.model.fields,field_description:account_usability.field_res_partner__invoice_warn
|
||||||
|
#: model:ir.model.fields,field_description:account_usability.field_res_users__invoice_warn
|
||||||
|
msgid "Invoice"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: model_terms:ir.ui.view,arch_db:account_usability.view_company_form
|
||||||
|
msgid "Invoice Legal Terms"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: model:ir.model,name:account_usability.model_account_invoice_line
|
||||||
|
msgid "Invoice Line"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: model_terms:ir.ui.view,arch_db:account_usability.account_invoice_report_tree
|
||||||
|
msgid "Invoices Analysis"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: model:ir.model,name:account_usability.model_account_invoice_report
|
||||||
|
msgid "Invoices Statistics"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: model:ir.model,name:account_usability.model_account_journal
|
||||||
|
#: model:ir.model.fields,field_description:account_usability.field_account_bank_statement_line__journal_id
|
||||||
|
#: model:ir.model.fields,field_description:account_usability.field_account_move__journal_id
|
||||||
|
#: model:ir.model.fields,field_description:account_usability.field_account_payment__journal_id
|
||||||
|
msgid "Journal"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: model:ir.model,name:account_usability.model_account_move
|
||||||
|
msgid "Journal Entry"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: model:ir.model,name:account_usability.model_account_move_line
|
||||||
|
msgid "Journal Item"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: model:ir.model.fields,field_description:account_usability.field_account_account____last_update
|
||||||
|
#: model:ir.model.fields,field_description:account_usability.field_account_analytic_account____last_update
|
||||||
|
#: model:ir.model.fields,field_description:account_usability.field_account_bank_statement____last_update
|
||||||
|
#: model:ir.model.fields,field_description:account_usability.field_account_bank_statement_line____last_update
|
||||||
|
#: model:ir.model.fields,field_description:account_usability.field_account_group_generate____last_update
|
||||||
|
#: model:ir.model.fields,field_description:account_usability.field_account_incoterms____last_update
|
||||||
|
#: model:ir.model.fields,field_description:account_usability.field_account_invoice_mark_sent____last_update
|
||||||
|
#: model:ir.model.fields,field_description:account_usability.field_account_invoice_report____last_update
|
||||||
|
#: model:ir.model.fields,field_description:account_usability.field_account_journal____last_update
|
||||||
|
#: model:ir.model.fields,field_description:account_usability.field_account_move____last_update
|
||||||
|
#: model:ir.model.fields,field_description:account_usability.field_account_move_line____last_update
|
||||||
|
#: model:ir.model.fields,field_description:account_usability.field_account_move_reversal____last_update
|
||||||
|
#: model:ir.model.fields,field_description:account_usability.field_account_partial_reconcile____last_update
|
||||||
|
#: model:ir.model.fields,field_description:account_usability.field_product_supplierinfo____last_update
|
||||||
|
#: model:ir.model.fields,field_description:account_usability.field_product_template____last_update
|
||||||
|
#: model:ir.model.fields,field_description:account_usability.field_res_company____last_update
|
||||||
|
#: model:ir.model.fields,field_description:account_usability.field_res_config_settings____last_update
|
||||||
|
#: model:ir.model.fields,field_description:account_usability.field_res_partner____last_update
|
||||||
|
msgid "Last Modified on"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: model:ir.model.fields,field_description:account_usability.field_account_group_generate__write_uid
|
||||||
|
#: model:ir.model.fields,field_description:account_usability.field_account_invoice_mark_sent__write_uid
|
||||||
|
msgid "Last Updated by"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: model:ir.model.fields,field_description:account_usability.field_account_group_generate__write_date
|
||||||
|
#: model:ir.model.fields,field_description:account_usability.field_account_invoice_mark_sent__write_date
|
||||||
|
msgid "Last Updated on"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: model_terms:ir.ui.view,arch_db:account_usability.view_company_form
|
||||||
|
msgid "Legal Terms"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: model:ir.model.fields,field_description:account_usability.field_res_company__static_invoice_terms
|
||||||
|
msgid "Legal Terms on Invoice"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: model:ir.model.fields,field_description:account_usability.field_account_group_generate__level
|
||||||
|
msgid "Level"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: model:ir.actions.act_window,name:account_usability.account_invoice_mark_sent_action
|
||||||
|
#: model_terms:ir.ui.view,arch_db:account_usability.account_invoice_mark_sent_form
|
||||||
|
msgid "Mark as Sent"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: model:ir.model,name:account_usability.model_account_invoice_mark_sent
|
||||||
|
#: model_terms:ir.ui.view,arch_db:account_usability.account_invoice_mark_sent_form
|
||||||
|
msgid "Mark invoices as sent"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: model_terms:ir.ui.view,arch_db:account_usability.view_account_invoice_filter
|
||||||
|
msgid "Missing Attachment"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: model:ir.model,name:account_usability.model_account_partial_reconcile
|
||||||
|
msgid "Partial Reconcile"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: model:ir.model.fields,field_description:account_usability.field_account_move_line__matched_credit_ids
|
||||||
|
msgid "Partial Reconcile Credit"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: model:ir.model.fields,field_description:account_usability.field_account_move_line__matched_debit_ids
|
||||||
|
msgid "Partial Reconcile Debit"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: model:ir.model.fields,field_description:account_usability.field_account_invoice_report__industry_id
|
||||||
|
msgid "Partner Industry"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: model:ir.model.fields,field_description:account_usability.field_account_bank_statement_line__invoice_payment_term_id
|
||||||
|
#: model:ir.model.fields,field_description:account_usability.field_account_move__invoice_payment_term_id
|
||||||
|
#: model:ir.model.fields,field_description:account_usability.field_account_payment__invoice_payment_term_id
|
||||||
|
msgid "Payment Terms"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: code:addons/account_usability/models/account_move.py:0
|
||||||
|
#, python-format
|
||||||
|
msgid "Please post the following entries before reconciliation :"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: model:ir.model.fields,field_description:account_usability.field_account_group_generate__name_prefix
|
||||||
|
msgid "Prefix"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: model:ir.model,name:account_usability.model_account_reconcile_model
|
||||||
|
msgid ""
|
||||||
|
"Preset to create journal entries during a invoices and payments matching"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: model_terms:ir.ui.view,arch_db:account_usability.view_account_move_line_filter
|
||||||
|
msgid "Previous Year"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: model_terms:ir.ui.view,arch_db:account_usability.view_move_form
|
||||||
|
msgid "Print"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: model:ir.model.fields,field_description:account_usability.field_account_move_line__product_barcode
|
||||||
|
msgid "Product Barcode"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: model:ir.model,name:account_usability.model_product_template
|
||||||
|
msgid "Product Template"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: model:ir.model.fields,field_description:account_usability.field_product_product__purchase_price_type
|
||||||
|
#: model:ir.model.fields,field_description:account_usability.field_product_supplierinfo__purchase_price_type
|
||||||
|
#: model:ir.model.fields,field_description:account_usability.field_product_template__purchase_price_type
|
||||||
|
msgid "Purchase Price Type"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: model:ir.model.fields,field_description:account_usability.field_account_bank_statement_line__partner_bank_id
|
||||||
|
#: model:ir.model.fields,field_description:account_usability.field_account_move__partner_bank_id
|
||||||
|
msgid "Recipient Bank"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: model:ir.model.fields,field_description:account_usability.field_account_bank_statement_line__ref
|
||||||
|
#: model:ir.model.fields,field_description:account_usability.field_account_move__ref
|
||||||
|
#: model:ir.model.fields,field_description:account_usability.field_account_payment__ref
|
||||||
|
msgid "Reference"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: model:ir.model.fields,field_description:account_usability.field_account_move_reversal__date
|
||||||
|
msgid "Reversal date"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: model:ir.model.fields,field_description:account_usability.field_account_bank_statement_line__sale_dates
|
||||||
|
#: model:ir.model.fields,field_description:account_usability.field_account_move__sale_dates
|
||||||
|
#: model:ir.model.fields,field_description:account_usability.field_account_payment__sale_dates
|
||||||
|
msgid "Sale Dates"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: model:ir.model.fields,field_description:account_usability.field_product_product__sale_price_type
|
||||||
|
#: model:ir.model.fields,field_description:account_usability.field_product_template__sale_price_type
|
||||||
|
msgid "Sale Price Type"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: model:ir.model.fields,help:account_usability.field_res_partner__invoice_warn
|
||||||
|
#: model:ir.model.fields,help:account_usability.field_res_users__invoice_warn
|
||||||
|
msgid ""
|
||||||
|
"Selecting the \"Warning\" option will notify user with the message, "
|
||||||
|
"Selecting \"Blocking Message\" will throw an exception with the message and "
|
||||||
|
"block the flow. The Message has to be written in the next field."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: model_terms:ir.ui.view,arch_db:account_usability.view_account_invoice_filter
|
||||||
|
msgid "Sent"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: model:ir.model.fields,field_description:account_usability.field_account_bank_statement__start_date
|
||||||
|
#: model_terms:ir.ui.view,arch_db:account_usability.view_bank_statement_search
|
||||||
|
msgid "Start Date"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: model:ir.model,name:account_usability.model_product_supplierinfo
|
||||||
|
msgid "Supplier Pricelist"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: model_terms:ir.ui.view,arch_db:account_usability.product_supplierinfo_tree_view
|
||||||
|
msgid "Tax"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: code:addons/account_usability/models/product.py:0
|
||||||
|
#, python-format
|
||||||
|
msgid "Tax excl."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: code:addons/account_usability/models/product.py:0
|
||||||
|
#, python-format
|
||||||
|
msgid "Tax incl."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: code:addons/account_usability/wizard/account_group_generate.py:0
|
||||||
|
#, python-format
|
||||||
|
msgid ""
|
||||||
|
"The code of account '%s' is %d caracters. It cannot be inferior to level "
|
||||||
|
"(%d)."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: model:ir.model.fields,help:account_usability.field_res_partner__property_account_position_id
|
||||||
|
#: model:ir.model.fields,help:account_usability.field_res_users__property_account_position_id
|
||||||
|
msgid ""
|
||||||
|
"The fiscal position determines the taxes/accounts used for this contact."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: code:addons/account_usability/wizard/account_group_generate.py:0
|
||||||
|
#, python-format
|
||||||
|
msgid "The level must be >= 1."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: model:ir.model.fields,help:account_usability.field_account_bank_statement_line__sale_dates
|
||||||
|
#: model:ir.model.fields,help:account_usability.field_account_move__sale_dates
|
||||||
|
#: model:ir.model.fields,help:account_usability.field_account_payment__sale_dates
|
||||||
|
msgid ""
|
||||||
|
"This information appears on invoice qweb report (you may use it for your own"
|
||||||
|
" report)"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: model_terms:ir.ui.view,arch_db:account_usability.account_group_generate_form
|
||||||
|
msgid ""
|
||||||
|
"This wizard is designed to auto-generate account groups from the chart of "
|
||||||
|
"account."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: model_terms:ir.ui.view,arch_db:account_usability.account_invoice_mark_sent_form
|
||||||
|
msgid ""
|
||||||
|
"This wizard will mark as <i>sent</i> all the selected invoices in open or "
|
||||||
|
"paid state."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: model_terms:ir.ui.view,arch_db:account_usability.view_account_invoice_filter
|
||||||
|
msgid "To Send"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: model:ir.model.fields,field_description:account_usability.field_account_bank_statement_line__amount_total
|
||||||
|
#: model:ir.model.fields,field_description:account_usability.field_account_move__amount_total
|
||||||
|
#: model:ir.model.fields,field_description:account_usability.field_account_payment__amount_total
|
||||||
|
msgid "Total"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: model_terms:ir.ui.view,arch_db:account_usability.res_config_settings_view_form
|
||||||
|
msgid ""
|
||||||
|
"Transit account when you transfer money from a bank account of your company "
|
||||||
|
"to another bank account of your company."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: model_terms:ir.ui.view,arch_db:account_usability.view_account_journal_search
|
||||||
|
msgid "Type"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: model_terms:ir.ui.view,arch_db:account_usability.view_bank_statement_form
|
||||||
|
msgid "Unreconcile All"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: model_terms:ir.ui.view,arch_db:account_usability.view_account_move_line_filter
|
||||||
|
msgid "Unreconciled or Partially Reconciled"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: model_terms:ir.ui.view,arch_db:account_usability.view_bank_statement_form
|
||||||
|
msgid "View Journal Entry"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: model_terms:ir.ui.view,arch_db:account_usability.view_move_line_tree
|
||||||
|
msgid "View Journal Entry Form"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: account_usability
|
||||||
|
#: model:ir.model.fields,help:account_usability.field_account_bank_statement__hide_bank_statement_balance
|
||||||
|
#: model:ir.model.fields,help:account_usability.field_account_journal__hide_bank_statement_balance
|
||||||
|
msgid ""
|
||||||
|
"You may want to enable this option when your bank journal is generated from "
|
||||||
|
"a bank statement file that doesn't handle start/end balance (QIF for "
|
||||||
|
"instance) and you don't want to enter the start/end balance manually: it "
|
||||||
|
"will prevent the display of wrong information in the accounting dashboard "
|
||||||
|
"and on bank statements."
|
||||||
|
msgstr ""
|
||||||
@@ -6,8 +6,8 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Odoo Server 16.0\n"
|
"Project-Id-Version: Odoo Server 16.0\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2024-07-07 14:47+0000\n"
|
"POT-Creation-Date: 2023-06-08 14:47+0000\n"
|
||||||
"PO-Revision-Date: 2024-07-07 14:47+0000\n"
|
"PO-Revision-Date: 2023-06-08 14:47+0000\n"
|
||||||
"Last-Translator: \n"
|
"Last-Translator: \n"
|
||||||
"Language-Team: \n"
|
"Language-Team: \n"
|
||||||
"MIME-Version: 1.0\n"
|
"MIME-Version: 1.0\n"
|
||||||
@@ -23,7 +23,7 @@ msgid ""
|
|||||||
"%d account groups already exists in company '%s'. This wizard is designed to"
|
"%d account groups already exists in company '%s'. This wizard is designed to"
|
||||||
" generate account groups from scratch."
|
" generate account groups from scratch."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"%d groupes de comptes existent déjà dans la société '%s'. Cet assistant "
|
"%d des groupes de comptes existent déjà dans la société '%s'. Cet assistant "
|
||||||
"est conçu pour créer des groupes de comptes à partir de zéro."
|
"est conçu pour créer des groupes de comptes à partir de zéro."
|
||||||
|
|
||||||
#. module: account_usability_akretion
|
#. module: account_usability_akretion
|
||||||
@@ -34,23 +34,6 @@ msgid ""
|
|||||||
"A reverse journal entry <a href=# data-oe-model=account.move data-oe-"
|
"A reverse journal entry <a href=# data-oe-model=account.move data-oe-"
|
||||||
"id=%d>%s</a> has been generated."
|
"id=%d>%s</a> has been generated."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Une extourne <a href=# data-oe-model=account.move data-oe-"
|
|
||||||
"id=%d>%s</a> a été générée."
|
|
||||||
|
|
||||||
#. module: account_usability_akretion
|
|
||||||
#. odoo-python
|
|
||||||
#: code:addons/account_usability_akretion/wizard/account_move_reversal.py:0
|
|
||||||
#, python-format
|
|
||||||
msgid "%s reversed by %s"
|
|
||||||
msgstr "%s extourné par %s"
|
|
||||||
|
|
||||||
#. module: account_usability_akretion
|
|
||||||
#: model_terms:ir.ui.view,arch_db:account_usability_akretion.view_account_move_reversal
|
|
||||||
msgid ""
|
|
||||||
"You are about to reverse entries that have already been reversed or partially reversed (refund). Make sure it is intented.\n"
|
|
||||||
" Already reversed entries are the following :"
|
|
||||||
msgstr "Vous êtes sur le point d'extourner une pièce comptable déjà extournée, ou partiellement extournée (avoir). Vérifiez que c'est bien ce que vous souhaitez faire.\n"
|
|
||||||
" Les pièces comptables déjà extournées sont les suivantes :"
|
|
||||||
|
|
||||||
#. module: account_usability_akretion
|
#. module: account_usability_akretion
|
||||||
#: model:ir.model,name:account_usability_akretion.model_account_account
|
#: model:ir.model,name:account_usability_akretion.model_account_account
|
||||||
@@ -67,7 +50,7 @@ msgstr "Groupes de comptes"
|
|||||||
#. module: account_usability_akretion
|
#. module: account_usability_akretion
|
||||||
#: model:ir.model,name:account_usability_akretion.model_account_move_reversal
|
#: model:ir.model,name:account_usability_akretion.model_account_move_reversal
|
||||||
msgid "Account Move Reversal"
|
msgid "Account Move Reversal"
|
||||||
msgstr "Extourne de l'écriture comptable"
|
msgstr "Extourne d'écritures"
|
||||||
|
|
||||||
#. module: account_usability_akretion
|
#. module: account_usability_akretion
|
||||||
#: model:ir.model.fields,field_description:account_usability_akretion.field_account_move_line__account_reconcile
|
#: model:ir.model.fields,field_description:account_usability_akretion.field_account_move_line__account_reconcile
|
||||||
@@ -94,10 +77,9 @@ msgstr "Êtes-vous sûr de vouloir annuler cette facture ?"
|
|||||||
#. module: account_usability_akretion
|
#. module: account_usability_akretion
|
||||||
#: model_terms:ir.ui.view,arch_db:account_usability_akretion.view_move_form
|
#: model_terms:ir.ui.view,arch_db:account_usability_akretion.view_move_form
|
||||||
msgid "Are you sure you want to cancel this journal entry?"
|
msgid "Are you sure you want to cancel this journal entry?"
|
||||||
msgstr "Êtes-vous sûr de vouloir annuler cette pièce comptable ?"
|
msgstr "Êtes-vous sûr de vouloir annuler cette écriture ?"
|
||||||
|
|
||||||
#. module: account_usability_akretion
|
#. module: account_usability_akretion
|
||||||
#: model:ir.model,name:account_usability_akretion.model_res_partner_bank
|
|
||||||
#: model:ir.ui.menu,name:account_usability_akretion.res_partner_bank_account_config_menu
|
#: model:ir.ui.menu,name:account_usability_akretion.res_partner_bank_account_config_menu
|
||||||
msgid "Bank Accounts"
|
msgid "Bank Accounts"
|
||||||
msgstr "Comptes bancaires"
|
msgstr "Comptes bancaires"
|
||||||
@@ -119,18 +101,18 @@ msgid ""
|
|||||||
"Check this box if this account allows invoices & payments matching of "
|
"Check this box if this account allows invoices & payments matching of "
|
||||||
"journal items."
|
"journal items."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Cochez cette case si ce compte permet de faire du lettrage entre "
|
"Cochez cette case si ce compte permet de faire du rapprochement entre "
|
||||||
"factures et paiements."
|
"factures et paiements."
|
||||||
|
|
||||||
#. module: account_usability_akretion
|
#. module: account_usability_akretion
|
||||||
#: model_terms:ir.ui.view,arch_db:account_usability_akretion.view_account_search
|
#: model_terms:ir.ui.view,arch_db:account_usability_akretion.view_account_search
|
||||||
msgid "Code"
|
msgid "Code"
|
||||||
msgstr ""
|
msgstr "Code"
|
||||||
|
|
||||||
#. module: account_usability_akretion
|
#. module: account_usability_akretion
|
||||||
#: model_terms:ir.ui.view,arch_db:account_usability_akretion.view_account_invoice_filter
|
#: model_terms:ir.ui.view,arch_db:account_usability_akretion.view_account_invoice_filter
|
||||||
msgid "Commercial Partner"
|
msgid "Commercial Partner"
|
||||||
msgstr "Partenaire commercial"
|
msgstr "Parternaire commercial"
|
||||||
|
|
||||||
#. module: account_usability_akretion
|
#. module: account_usability_akretion
|
||||||
#: model:ir.model,name:account_usability_akretion.model_res_company
|
#: model:ir.model,name:account_usability_akretion.model_res_company
|
||||||
@@ -145,7 +127,7 @@ msgstr "Société"
|
|||||||
#. module: account_usability_akretion
|
#. module: account_usability_akretion
|
||||||
#: model:ir.model,name:account_usability_akretion.model_res_partner
|
#: model:ir.model,name:account_usability_akretion.model_res_partner
|
||||||
msgid "Contact"
|
msgid "Contact"
|
||||||
msgstr ""
|
msgstr "Contact"
|
||||||
|
|
||||||
#. module: account_usability_akretion
|
#. module: account_usability_akretion
|
||||||
#: model:ir.model.fields,field_description:account_usability_akretion.field_account_group_generate__create_uid
|
#: model:ir.model.fields,field_description:account_usability_akretion.field_account_group_generate__create_uid
|
||||||
@@ -162,14 +144,12 @@ msgstr "Créé le"
|
|||||||
#. module: account_usability_akretion
|
#. module: account_usability_akretion
|
||||||
#: model:ir.model.fields,help:account_usability_akretion.field_account_move_line__matched_credit_ids
|
#: model:ir.model.fields,help:account_usability_akretion.field_account_move_line__matched_credit_ids
|
||||||
msgid "Credit journal items that are matched with this journal item."
|
msgid "Credit journal items that are matched with this journal item."
|
||||||
msgstr ""
|
msgstr "Écritures comptables au crédit qui correspondent à cette écriture comptable."
|
||||||
"Écritures comptables au crédit qui sont lettrées avec cette écriture comptable."
|
|
||||||
|
|
||||||
#. module: account_usability_akretion
|
#. module: account_usability_akretion
|
||||||
#: model:ir.model.fields,help:account_usability_akretion.field_account_move_line__matched_debit_ids
|
#: model:ir.model.fields,help:account_usability_akretion.field_account_move_line__matched_debit_ids
|
||||||
msgid "Debit journal items that are matched with this journal item."
|
msgid "Debit journal items that are matched with this journal item."
|
||||||
msgstr ""
|
msgstr "Écritures comptables au débit qui correspondent avec cette écriture comptable."
|
||||||
"Écritures comptables au débit qui sont lettrées avec cette écriture comptable."
|
|
||||||
|
|
||||||
#. module: account_usability_akretion
|
#. module: account_usability_akretion
|
||||||
#: model_terms:ir.ui.view,arch_db:account_usability_akretion.view_account_move_line_filter
|
#: model_terms:ir.ui.view,arch_db:account_usability_akretion.view_account_move_line_filter
|
||||||
@@ -182,14 +162,6 @@ msgstr "Débit ou crédit"
|
|||||||
msgid "Display Name"
|
msgid "Display Name"
|
||||||
msgstr "Nom affiché"
|
msgstr "Nom affiché"
|
||||||
|
|
||||||
#. module: account_usability_akretion
|
|
||||||
#: model:ir.model.fields,field_description:account_usability_akretion.field_account_bank_statement_line__blocked
|
|
||||||
#: model:ir.model.fields,field_description:account_usability_akretion.field_account_move__blocked
|
|
||||||
#: model:ir.model.fields,field_description:account_usability_akretion.field_account_payment__blocked
|
|
||||||
#: model_terms:ir.ui.view,arch_db:account_usability_akretion.view_account_invoice_filter
|
|
||||||
msgid "Dispute"
|
|
||||||
msgstr "Litige"
|
|
||||||
|
|
||||||
#. module: account_usability_akretion
|
#. module: account_usability_akretion
|
||||||
#: model:ir.model.fields,field_description:account_usability_akretion.field_account_bank_statement_line__invoice_date_due
|
#: model:ir.model.fields,field_description:account_usability_akretion.field_account_bank_statement_line__invoice_date_due
|
||||||
#: model:ir.model.fields,field_description:account_usability_akretion.field_account_move__invoice_date_due
|
#: model:ir.model.fields,field_description:account_usability_akretion.field_account_move__invoice_date_due
|
||||||
@@ -216,13 +188,13 @@ msgid ""
|
|||||||
"customer."
|
"customer."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Les positions fiscales sont utilisées pour adapter les taxes et les comptes "
|
"Les positions fiscales sont utilisées pour adapter les taxes et les comptes "
|
||||||
"à des clients spécifiques ou à des bons de commande/factures. La valeur par"
|
"à des clients particuliers ou à des bons de commande/factures. La valeur "
|
||||||
" défaut provient de la fiche client."
|
"par défaut provient du client."
|
||||||
|
|
||||||
#. module: account_usability_akretion
|
#. module: account_usability_akretion
|
||||||
#: model:ir.model.fields,field_description:account_usability_akretion.field_account_move_line__full_reconcile_id
|
#: model:ir.model.fields,field_description:account_usability_akretion.field_account_move_line__full_reconcile_id
|
||||||
msgid "Full Reconcile"
|
msgid "Full Reconcile"
|
||||||
msgstr "Lettrage total"
|
msgstr "Marque de lettrage"
|
||||||
|
|
||||||
#. module: account_usability_akretion
|
#. module: account_usability_akretion
|
||||||
#: model_terms:ir.ui.view,arch_db:account_usability_akretion.view_account_move_line_filter
|
#: model_terms:ir.ui.view,arch_db:account_usability_akretion.view_account_move_line_filter
|
||||||
@@ -263,29 +235,29 @@ msgstr "Possède une pièce jointe"
|
|||||||
#: model:ir.model.fields,field_description:account_usability_akretion.field_account_move__has_discount
|
#: model:ir.model.fields,field_description:account_usability_akretion.field_account_move__has_discount
|
||||||
#: model:ir.model.fields,field_description:account_usability_akretion.field_account_payment__has_discount
|
#: model:ir.model.fields,field_description:account_usability_akretion.field_account_payment__has_discount
|
||||||
msgid "Has Discount"
|
msgid "Has Discount"
|
||||||
msgstr "A une remise"
|
msgstr "A une réduction"
|
||||||
|
|
||||||
#. module: account_usability_akretion
|
#. module: account_usability_akretion
|
||||||
#: model:ir.model.fields,field_description:account_usability_akretion.field_account_journal__hide_bank_statement_balance
|
#: model:ir.model.fields,field_description:account_usability_akretion.field_account_journal__hide_bank_statement_balance
|
||||||
msgid "Hide and Disable Bank Statement Balance"
|
msgid "Hide and Disable Bank Statement Balance"
|
||||||
msgstr "Masquer et désactiver le solde du relevé de compte"
|
msgstr "Masquer et désactiver le solde du relevé bancaire"
|
||||||
|
|
||||||
#. module: account_usability_akretion
|
#. module: account_usability_akretion
|
||||||
#: model:ir.model.fields,field_description:account_usability_akretion.field_account_group_generate__id
|
#: model:ir.model.fields,field_description:account_usability_akretion.field_account_group_generate__id
|
||||||
#: model:ir.model.fields,field_description:account_usability_akretion.field_account_invoice_mark_sent__id
|
#: model:ir.model.fields,field_description:account_usability_akretion.field_account_invoice_mark_sent__id
|
||||||
msgid "ID"
|
msgid "ID"
|
||||||
msgstr ""
|
msgstr "ID"
|
||||||
|
|
||||||
#. module: account_usability_akretion
|
#. module: account_usability_akretion
|
||||||
#: model:ir.model,name:account_usability_akretion.model_account_incoterms
|
#: model:ir.model,name:account_usability_akretion.model_account_incoterms
|
||||||
msgid "Incoterms"
|
msgid "Incoterms"
|
||||||
msgstr ""
|
msgstr "Incoterms"
|
||||||
|
|
||||||
#. module: account_usability_akretion
|
#. module: account_usability_akretion
|
||||||
#: model:ir.model.fields,help:account_usability_akretion.field_account_move_line__product_barcode
|
#: model:ir.model.fields,help:account_usability_akretion.field_account_move_line__product_barcode
|
||||||
msgid "International Article Number used for product identification."
|
msgid "International Article Number used for product identification."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Numéro d'article international utilisé pour identifier cet article."
|
"Numéro d'article international (IAN) utilisé pour identifier cet article."
|
||||||
|
|
||||||
#. module: account_usability_akretion
|
#. module: account_usability_akretion
|
||||||
#: model:ir.model.fields,field_description:account_usability_akretion.field_res_partner__invoice_warn
|
#: model:ir.model.fields,field_description:account_usability_akretion.field_res_partner__invoice_warn
|
||||||
@@ -301,7 +273,7 @@ msgstr "Mentions légales sur les factures"
|
|||||||
#. module: account_usability_akretion
|
#. module: account_usability_akretion
|
||||||
#: model:ir.model,name:account_usability_akretion.model_account_invoice_report
|
#: model:ir.model,name:account_usability_akretion.model_account_invoice_report
|
||||||
msgid "Invoices Statistics"
|
msgid "Invoices Statistics"
|
||||||
msgstr "Statistiques de facturation"
|
msgstr "Statistiques des factures"
|
||||||
|
|
||||||
#. module: account_usability_akretion
|
#. module: account_usability_akretion
|
||||||
#: model:ir.model,name:account_usability_akretion.model_account_journal
|
#: model:ir.model,name:account_usability_akretion.model_account_journal
|
||||||
@@ -309,7 +281,7 @@ msgstr "Statistiques de facturation"
|
|||||||
#: model:ir.model.fields,field_description:account_usability_akretion.field_account_move__journal_id
|
#: model:ir.model.fields,field_description:account_usability_akretion.field_account_move__journal_id
|
||||||
#: model:ir.model.fields,field_description:account_usability_akretion.field_account_payment__journal_id
|
#: model:ir.model.fields,field_description:account_usability_akretion.field_account_payment__journal_id
|
||||||
msgid "Journal"
|
msgid "Journal"
|
||||||
msgstr ""
|
msgstr "Journal"
|
||||||
|
|
||||||
#. module: account_usability_akretion
|
#. module: account_usability_akretion
|
||||||
#: model:ir.model,name:account_usability_akretion.model_account_move
|
#: model:ir.model,name:account_usability_akretion.model_account_move
|
||||||
@@ -381,6 +353,13 @@ msgstr "Divers"
|
|||||||
msgid "Missing Attachment"
|
msgid "Missing Attachment"
|
||||||
msgstr "Pièce jointe manquante"
|
msgstr "Pièce jointe manquante"
|
||||||
|
|
||||||
|
#. module: account_usability_akretion
|
||||||
|
#. odoo-python
|
||||||
|
#: code:addons/account_usability_akretion/wizard/account_move_reversal.py:0
|
||||||
|
#, python-format
|
||||||
|
msgid "Move '%s' has already been reversed by move '%s'."
|
||||||
|
msgstr "L'écritures '%s' a déjà été annulée par l'écritures '%s'."
|
||||||
|
|
||||||
#. module: account_usability_akretion
|
#. module: account_usability_akretion
|
||||||
#: model:ir.model,name:account_usability_akretion.model_account_partial_reconcile
|
#: model:ir.model,name:account_usability_akretion.model_account_partial_reconcile
|
||||||
msgid "Partial Reconcile"
|
msgid "Partial Reconcile"
|
||||||
@@ -404,7 +383,7 @@ msgstr "Secteur d’activité du partenaire"
|
|||||||
#. module: account_usability_akretion
|
#. module: account_usability_akretion
|
||||||
#: model_terms:ir.ui.view,arch_db:account_usability_akretion.view_account_invoice_filter
|
#: model_terms:ir.ui.view,arch_db:account_usability_akretion.view_account_invoice_filter
|
||||||
msgid "Payment Status"
|
msgid "Payment Status"
|
||||||
msgstr "État de paiement"
|
msgstr "Etat de paiement"
|
||||||
|
|
||||||
#. module: account_usability_akretion
|
#. module: account_usability_akretion
|
||||||
#: model:ir.model.fields,field_description:account_usability_akretion.field_account_bank_statement_line__invoice_payment_term_id
|
#: model:ir.model.fields,field_description:account_usability_akretion.field_account_bank_statement_line__invoice_payment_term_id
|
||||||
@@ -430,11 +409,6 @@ msgstr "Préfixe"
|
|||||||
msgid "Print"
|
msgid "Print"
|
||||||
msgstr "Imprimer"
|
msgstr "Imprimer"
|
||||||
|
|
||||||
#. module: account_usability_akretion
|
|
||||||
#: model_terms:ir.ui.view,arch_db:account_usability_akretion.view_account_invoice_report_search
|
|
||||||
msgid "Product"
|
|
||||||
msgstr "Produit"
|
|
||||||
|
|
||||||
#. module: account_usability_akretion
|
#. module: account_usability_akretion
|
||||||
#: model:ir.model.fields,field_description:account_usability_akretion.field_account_move_line__product_barcode
|
#: model:ir.model.fields,field_description:account_usability_akretion.field_account_move_line__product_barcode
|
||||||
msgid "Product Barcode"
|
msgid "Product Barcode"
|
||||||
@@ -463,7 +437,7 @@ msgid ""
|
|||||||
"block the flow. The Message has to be written in the next field."
|
"block the flow. The Message has to be written in the next field."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Sélectionner l'option 'Avertissement' notifiera l'utilisateur avec le "
|
"Sélectionner l'option 'Avertissement' notifiera l'utilisateur avec le "
|
||||||
"message. Sélectionner 'Message Bloquant' lancera une exception avec le "
|
"Message. Sélectionner 'Message Bloquant' lancera une exception avec le "
|
||||||
"message et bloquera le flux. Le Message doit être encodé dans le champ "
|
"message et bloquera le flux. Le Message doit être encodé dans le champ "
|
||||||
"suivant."
|
"suivant."
|
||||||
|
|
||||||
@@ -494,8 +468,8 @@ msgid ""
|
|||||||
"The code of account '%s' is %d caracters. It cannot be inferior to level "
|
"The code of account '%s' is %d caracters. It cannot be inferior to level "
|
||||||
"(%d)."
|
"(%d)."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Le code du compte '%s' fait %d caractères. Il ne peut pas être "
|
"Le code du compte '%s' fait %d caractères. Il ne peut pas être de niveau "
|
||||||
"inférieur au niveau (%d)."
|
"inférieur à (%d)."
|
||||||
|
|
||||||
#. module: account_usability_akretion
|
#. module: account_usability_akretion
|
||||||
#: model:ir.model.fields,help:account_usability_akretion.field_res_partner__property_account_position_id
|
#: model:ir.model.fields,help:account_usability_akretion.field_res_partner__property_account_position_id
|
||||||
@@ -512,11 +486,6 @@ msgstr ""
|
|||||||
msgid "The level must be >= 1."
|
msgid "The level must be >= 1."
|
||||||
msgstr "Le niveau doit être >= 1."
|
msgstr "Le niveau doit être >= 1."
|
||||||
|
|
||||||
#. module: account_usability_akretion
|
|
||||||
#: model_terms:ir.ui.view,arch_db:account_usability_akretion.view_move_form
|
|
||||||
msgid "This"
|
|
||||||
msgstr "Ce"
|
|
||||||
|
|
||||||
#. module: account_usability_akretion
|
#. module: account_usability_akretion
|
||||||
#: model:ir.model.constraint,message:account_usability_akretion.constraint_account_incoterms_code_unique
|
#: model:ir.model.constraint,message:account_usability_akretion.constraint_account_incoterms_code_unique
|
||||||
msgid "This incoterm code already exists."
|
msgid "This incoterm code already exists."
|
||||||
@@ -530,8 +499,9 @@ msgid ""
|
|||||||
"This information appear on invoice qweb report (you may use it for your own "
|
"This information appear on invoice qweb report (you may use it for your own "
|
||||||
"report)"
|
"report)"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Cette information apparait sur le rapport qweb de la facture (vous pouvez "
|
"Cette information apparait sur le rapport qweb de la facture (vous "
|
||||||
"les utiliser pour votre propre rapport)"
|
"pouvez les utiliser pour votre propre rapport)"
|
||||||
|
|
||||||
|
|
||||||
#. module: account_usability_akretion
|
#. module: account_usability_akretion
|
||||||
#. odoo-python
|
#. odoo-python
|
||||||
@@ -541,7 +511,7 @@ msgid ""
|
|||||||
"This journal entry has been generated as the reverse of <a href=# data-oe-"
|
"This journal entry has been generated as the reverse of <a href=# data-oe-"
|
||||||
"model=account.move data-oe-id=%d>%s</a>."
|
"model=account.move data-oe-id=%d>%s</a>."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Cette pièce comptable a été générée comme extourne de <a href=# data-oe-"
|
"Cette écriture de journal a été générée comme extourne de <a href=# data-oe-"
|
||||||
"model=account.move data-oe-id=%d>%s</a>."
|
"model=account.move data-oe-id=%d>%s</a>."
|
||||||
|
|
||||||
#. module: account_usability_akretion
|
#. module: account_usability_akretion
|
||||||
@@ -570,12 +540,12 @@ msgstr "À envoyer"
|
|||||||
#: model:ir.model.fields,field_description:account_usability_akretion.field_account_move__amount_total
|
#: model:ir.model.fields,field_description:account_usability_akretion.field_account_move__amount_total
|
||||||
#: model:ir.model.fields,field_description:account_usability_akretion.field_account_payment__amount_total
|
#: model:ir.model.fields,field_description:account_usability_akretion.field_account_payment__amount_total
|
||||||
msgid "Total"
|
msgid "Total"
|
||||||
msgstr ""
|
msgstr "Total"
|
||||||
|
|
||||||
#. module: account_usability_akretion
|
#. module: account_usability_akretion
|
||||||
#: model_terms:ir.ui.view,arch_db:account_usability_akretion.view_account_journal_search
|
#: model_terms:ir.ui.view,arch_db:account_usability_akretion.view_account_journal_search
|
||||||
msgid "Type"
|
msgid "Type"
|
||||||
msgstr ""
|
msgstr "Type"
|
||||||
|
|
||||||
#. module: account_usability_akretion
|
#. module: account_usability_akretion
|
||||||
#: model_terms:ir.ui.view,arch_db:account_usability_akretion.view_account_move_line_filter
|
#: model_terms:ir.ui.view,arch_db:account_usability_akretion.view_account_move_line_filter
|
||||||
@@ -595,16 +565,11 @@ msgid ""
|
|||||||
"end balance is disabled. When you enable this option, you process the "
|
"end balance is disabled. When you enable this option, you process the "
|
||||||
"statement lines without considering the start/end balance and you regularly "
|
"statement lines without considering the start/end balance and you regularly "
|
||||||
"check the accounting balance of the bank account vs the amount of your bank "
|
"check the accounting balance of the bank account vs the amount of your bank "
|
||||||
"account."
|
"account (the 2 processes are managed separately)."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Lorsque cette option est activée, le solde de début et de fin ne s'affiche "
|
"Lorsque cette option est activée, le solde de début et de fin ne s'affiche pas sur "
|
||||||
"pas sur la vue du formulaire du relevé de compte, et la vérification du solde"
|
"la vue du formulaire de relevé bancaire, et la vérification du solde final vs "
|
||||||
" final vs le solde final réel est désactivée. Lorsque vous activez cette "
|
"le solde final réel est désactivé. Lorsque vous activez cette option, vous traitez les "
|
||||||
"option, vous traitez les lignes de relevé de compte sans tenir compte du solde de "
|
"lignes de relevé sans tenir compte du solde de début/fin et vous vérifiez régulièrement "
|
||||||
"début/fin et vous vérifiez régulièrement le solde du compte "
|
"le solde du compte comptable bancaire vs le montant sur votre compte en banque"
|
||||||
"bancaire vs le montant sur votre compte en banque."
|
"(les 2 processus sont gérés séparément)."
|
||||||
|
|
||||||
#. module: account_usability_akretion
|
|
||||||
#: model_terms:ir.ui.view,arch_db:account_usability_akretion.view_move_form
|
|
||||||
msgid "is marked as <b>disputed</b>."
|
|
||||||
msgstr "est marquée <b>en litige</b>."
|
|
||||||
|
|||||||
@@ -9,4 +9,3 @@ from . import res_partner
|
|||||||
from . import res_company
|
from . import res_company
|
||||||
#from . import product
|
#from . import product
|
||||||
from . import account_invoice_report
|
from . import account_invoice_report
|
||||||
from . import res_partner_bank
|
|
||||||
|
|||||||
@@ -15,7 +15,8 @@ class AccountJournal(models.Model):
|
|||||||
"the end balance vs the real end balance is disabled. When you enable "
|
"the end balance vs the real end balance is disabled. When you enable "
|
||||||
"this option, you process the statement lines without considering "
|
"this option, you process the statement lines without considering "
|
||||||
"the start/end balance and you regularly check the accounting balance "
|
"the start/end balance and you regularly check the accounting balance "
|
||||||
"of the bank account vs the amount of your bank account."
|
"of the bank account vs the amount of your bank account "
|
||||||
|
"(the 2 processes are managed separately)."
|
||||||
)
|
)
|
||||||
# Used to set default user_type_id on account fields via context
|
# Used to set default user_type_id on account fields via context
|
||||||
# account_type_current_assets_id = fields.Many2one(
|
# account_type_current_assets_id = fields.Many2one(
|
||||||
|
|||||||
@@ -3,7 +3,6 @@
|
|||||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||||
|
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
from collections import defaultdict
|
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
from odoo import api, fields, models, _
|
from odoo import api, fields, models, _
|
||||||
@@ -11,7 +10,6 @@ from odoo.exceptions import UserError
|
|||||||
from odoo.osv import expression
|
from odoo.osv import expression
|
||||||
from odoo.tools import float_is_zero
|
from odoo.tools import float_is_zero
|
||||||
from odoo.tools.misc import format_date
|
from odoo.tools.misc import format_date
|
||||||
from odoo.tools.safe_eval import safe_eval, time
|
|
||||||
|
|
||||||
_logger = logging.getLogger(__name__)
|
_logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
@@ -38,36 +36,6 @@ class AccountMove(models.Model):
|
|||||||
compute="_compute_sales_dates",
|
compute="_compute_sales_dates",
|
||||||
help="This information appear on invoice qweb report "
|
help="This information appear on invoice qweb report "
|
||||||
"(you may use it for your own report)")
|
"(you may use it for your own report)")
|
||||||
# There is a native "blocked" field (bool) on account.move.line
|
|
||||||
# We want to have that field on invoices to improve usability
|
|
||||||
# while keeping compatibility with the standard Odoo datamodel
|
|
||||||
blocked = fields.Boolean(
|
|
||||||
compute="_compute_blocked",
|
|
||||||
inverse="_inverse_blocked",
|
|
||||||
store=True,
|
|
||||||
string="Dispute",
|
|
||||||
tracking=True,
|
|
||||||
)
|
|
||||||
# Field search_account_id is just for search view
|
|
||||||
search_account_id = fields.Many2one(related='line_ids.account_id')
|
|
||||||
|
|
||||||
@api.depends("line_ids", "line_ids.blocked")
|
|
||||||
def _compute_blocked(self):
|
|
||||||
for move in self:
|
|
||||||
move.blocked = any(
|
|
||||||
[
|
|
||||||
l.blocked
|
|
||||||
for l in move.line_ids
|
|
||||||
if l.account_id.account_type in ("liability_payable", "asset_receivable")
|
|
||||||
]
|
|
||||||
)
|
|
||||||
|
|
||||||
def _inverse_blocked(self):
|
|
||||||
for move in self:
|
|
||||||
for line in move.line_ids.filtered(
|
|
||||||
lambda l: l.account_id.account_type in ("liability_payable", "asset_receivable")
|
|
||||||
):
|
|
||||||
line.blocked = move.blocked
|
|
||||||
|
|
||||||
def _compute_has_discount(self):
|
def _compute_has_discount(self):
|
||||||
prec = self.env['decimal.precision'].precision_get('Discount')
|
prec = self.env['decimal.precision'].precision_get('Discount')
|
||||||
@@ -205,14 +173,33 @@ class AccountMove(models.Model):
|
|||||||
move.suitable_journal_ids = self.env['account.journal'].search(domain)
|
move.suitable_journal_ids = self.env['account.journal'].search(domain)
|
||||||
|
|
||||||
def button_draft(self):
|
def button_draft(self):
|
||||||
# Delete attached pdf invoice
|
|
||||||
for move in self.filtered(lambda x: x.move_type in ('out_invoice', 'out_refund')):
|
|
||||||
for report_xmlid in ('account.account_invoices', 'account.account_invoices_without_payment'):
|
|
||||||
report = self.env.ref(report_xmlid)
|
|
||||||
attach = report.retrieve_attachment(move)
|
|
||||||
if attach:
|
|
||||||
attach.unlink()
|
|
||||||
super().button_draft()
|
super().button_draft()
|
||||||
|
# Delete attached pdf invoice
|
||||||
|
try:
|
||||||
|
report_invoice = self.env['ir.actions.report']._get_report_from_name('account.report_invoice')
|
||||||
|
except IndexError:
|
||||||
|
report_invoice = False
|
||||||
|
if report_invoice and report_invoice.attachment:
|
||||||
|
for move in self.filtered(lambda x: x.move_type in ('out_invoice', 'out_refund')):
|
||||||
|
# The pb is that the filename is dynamic and related to move.state
|
||||||
|
# in v12, the feature was native and they used that kind of code:
|
||||||
|
# with invoice.env.do_in_draft():
|
||||||
|
# invoice.number, invoice.state = invoice.move_name, 'open'
|
||||||
|
# attachment = self.env.ref('account.account_invoices').retrieve_attachment(invoice)
|
||||||
|
# But do_in_draft() doesn't exists in v14
|
||||||
|
# If you know how we could do that, please update the code below
|
||||||
|
attachment = self.env['ir.attachment'].search([
|
||||||
|
('name', '=', self._get_invoice_attachment_name()),
|
||||||
|
('res_id', '=', move.id),
|
||||||
|
('res_model', '=', self._name),
|
||||||
|
('type', '=', 'binary'),
|
||||||
|
], limit=1)
|
||||||
|
if attachment:
|
||||||
|
attachment.unlink()
|
||||||
|
|
||||||
|
def _get_invoice_attachment_name(self):
|
||||||
|
self.ensure_one()
|
||||||
|
return '%s.pdf' % (self.name and self.name.replace('/', '_') or 'INV')
|
||||||
|
|
||||||
def _get_accounting_date(self, invoice_date, has_tax):
|
def _get_accounting_date(self, invoice_date, has_tax):
|
||||||
# On vendor bills/refunds, we want date = invoice_date unless
|
# On vendor bills/refunds, we want date = invoice_date unless
|
||||||
|
|||||||
@@ -1,21 +0,0 @@
|
|||||||
# Copyright 2015-2022 Akretion France (http://www.akretion.com/)
|
|
||||||
# @author: Mourad EL HADJ MIMOUNE <mourad.elhadj.mimoune@akretion.com>
|
|
||||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
|
||||||
|
|
||||||
from odoo import models
|
|
||||||
|
|
||||||
|
|
||||||
class ResPartnerBank(models.Model):
|
|
||||||
_inherit = 'res.partner.bank'
|
|
||||||
|
|
||||||
def name_get(self):
|
|
||||||
res = []
|
|
||||||
for acc in self:
|
|
||||||
name = acc.acc_number
|
|
||||||
if acc.currency_id:
|
|
||||||
name = "%s (%s)" % (name, acc.currency_id.name)
|
|
||||||
if acc.bank_id.name:
|
|
||||||
name = "%s - %s" % (name, acc.bank_id.name)
|
|
||||||
res += [(acc.id, name)]
|
|
||||||
return res
|
|
||||||
|
|
||||||
@@ -1,22 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<!--
|
|
||||||
Copyright 2024 Akretion France (http://www.akretion.com/)
|
|
||||||
@author: Alexis de Lattre <alexis.delattre@akretion.com>
|
|
||||||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
|
||||||
-->
|
|
||||||
|
|
||||||
<odoo>
|
|
||||||
|
|
||||||
|
|
||||||
<record id="view_account_analytic_line_tree_inherit_account" model="ir.ui.view">
|
|
||||||
<field name="model">account.analytic.line</field>
|
|
||||||
<field name="inherit_id" ref="account.view_account_analytic_line_tree_inherit_account"/>
|
|
||||||
<field name="arch" type="xml">
|
|
||||||
<field name="general_account_id" position="attributes">
|
|
||||||
<attribute name="optional">show</attribute>
|
|
||||||
</field>
|
|
||||||
</field>
|
|
||||||
</record>
|
|
||||||
|
|
||||||
|
|
||||||
</odoo>
|
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<!--
|
<!--
|
||||||
Copyright 2018-2024 Akretion (http://www.akretion.com/)
|
Copyright 2018-2020 Akretion (http://www.akretion.com/)
|
||||||
@author: Alexis de Lattre <alexis.delattre@akretion.com>
|
@author: Alexis de Lattre <alexis.delattre@akretion.com>
|
||||||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||||
-->
|
-->
|
||||||
@@ -8,39 +8,56 @@
|
|||||||
<odoo>
|
<odoo>
|
||||||
|
|
||||||
|
|
||||||
<record id="account_invoice_report_view_tree" model="ir.ui.view">
|
<record id="account_invoice_report_tree" model="ir.ui.view">
|
||||||
<field name="name">usability.account.invoice.report.tree</field>
|
<field name="name">usability.account.invoice.report.tree</field>
|
||||||
<field name="model">account.invoice.report</field>
|
<field name="model">account.invoice.report</field>
|
||||||
<field name="inherit_id" ref="account.account_invoice_report_view_tree"/>
|
|
||||||
<field name="arch" type="xml">
|
<field name="arch" type="xml">
|
||||||
<field name="partner_id" position="after">
|
<tree string="Invoices Analysis">
|
||||||
<field name="commercial_partner_id" optional="hide"/>
|
<field name="move_id"/>
|
||||||
<field name="country_id" optional="hide"/>
|
<field name="journal_id" optional="hide"/>
|
||||||
|
<field name="company_id" optional="hide" groups="base.group_multi_company"/>
|
||||||
|
<field name="invoice_date"/>
|
||||||
|
<field name="invoice_date_due"/>
|
||||||
|
<field name="move_type"/>
|
||||||
|
<field name="commercial_partner_id"/>
|
||||||
|
<field name="partner_id" optional="hide"/>
|
||||||
|
<field name="country_id" optional="hide"/>
|
||||||
<field name="industry_id" optional="hide"/>
|
<field name="industry_id" optional="hide"/>
|
||||||
|
<field name="invoice_user_id"/>
|
||||||
<field name="fiscal_position_id" optional="hide"/>
|
<field name="fiscal_position_id" optional="hide"/>
|
||||||
</field>
|
<field name="product_id"/>
|
||||||
<field name="quantity" position="after">
|
<field name="product_categ_id" optional="hide"/>
|
||||||
<field name="product_uom_id" groups="uom.group_uom" optional="hide"/>
|
<field name="account_id" optional="hide"/>
|
||||||
</field>
|
<field name="analytic_account_id" optional="hide" groups="analytic.group_analytic_accounting"/>
|
||||||
|
<field name="quantity" sum="1"/>
|
||||||
|
<field name="product_uom_id" groups="uom.group_uom"/>
|
||||||
|
<field name="price_subtotal" sum="1"/>
|
||||||
|
<field name="state"/>
|
||||||
|
<field name="payment_state" optional="hide"/>
|
||||||
|
</tree>
|
||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
|
|
||||||
<record id="view_account_invoice_report_search" model="ir.ui.view">
|
|
||||||
<field name="model">account.invoice.report</field>
|
|
||||||
<field name="inherit_id" ref="account.view_account_invoice_report_search"/>
|
|
||||||
<field name="arch" type="xml">
|
|
||||||
<filter name="category_product" position="after">
|
|
||||||
<filter string="Product" name="product_groupby" context="{'group_by': 'product_id', 'residual_invisible':True}"/>
|
|
||||||
</filter>
|
|
||||||
</field>
|
|
||||||
</record>
|
|
||||||
|
|
||||||
<record id="account.action_account_invoice_report_all_supp" model="ir.actions.act_window">
|
<record id="account.action_account_invoice_report_all_supp" model="ir.actions.act_window">
|
||||||
|
<field name="context">{'search_default_current': 1, 'search_default_supplier': 1, 'group_by': ['invoice_date']}</field> <!-- Remove group_by_no_leaf, which breaks tree view -->
|
||||||
<field name="view_mode">pivot,graph</field>
|
<field name="view_mode">pivot,graph</field>
|
||||||
</record>
|
</record>
|
||||||
|
|
||||||
<record id="account.action_account_invoice_report_all" model="ir.actions.act_window">
|
<record id="account.action_account_invoice_report_all" model="ir.actions.act_window">
|
||||||
|
<field name="context">{'search_default_current': 1, 'search_default_customer': 1, 'group_by': ['invoice_date']}</field> <!-- Remove group_by_no_leaf, which breaks tree view -->
|
||||||
<field name="view_mode">pivot,graph</field>
|
<field name="view_mode">pivot,graph</field>
|
||||||
</record>
|
</record>
|
||||||
|
|
||||||
|
<record id="view_account_invoice_report_pivot" model="ir.ui.view">
|
||||||
|
<field name="name">usability.account.invoice.report</field>
|
||||||
|
<field name="model">account.invoice.report</field>
|
||||||
|
<field name="inherit_id" ref="account.view_account_invoice_report_pivot"/>
|
||||||
|
<field name="arch" type="xml">
|
||||||
|
<pivot position="attributes">
|
||||||
|
<attribute name="disable_linking"></attribute>
|
||||||
|
</pivot>
|
||||||
|
</field>
|
||||||
|
</record>
|
||||||
|
|
||||||
|
|
||||||
</odoo>
|
</odoo>
|
||||||
|
|||||||
@@ -43,16 +43,6 @@
|
|||||||
<xpath expr="//field[@name='invoice_line_ids']/tree/field[@name='product_id']" position="after">
|
<xpath expr="//field[@name='invoice_line_ids']/tree/field[@name='product_id']" position="after">
|
||||||
<field name="product_barcode" optional="hide"/>
|
<field name="product_barcode" optional="hide"/>
|
||||||
</xpath>
|
</xpath>
|
||||||
<field name="invoice_source_email" position="after">
|
|
||||||
<field name="blocked"/>
|
|
||||||
</field>
|
|
||||||
<div role="alert" position="after">
|
|
||||||
<div id="warn_blocked" groups="account.group_account_invoice,account.group_account_readonly"
|
|
||||||
class="alert alert-warning" role="alert" style="margin-bottom:0px;"
|
|
||||||
attrs="{'invisible': ['|', ('move_type', 'not in', ('in_invoice', 'in_refund', 'out_invoice', 'out_refund')), ('blocked', '=', False)]}">
|
|
||||||
This <field name="move_type"/> is marked as <b>disputed</b>.
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<xpath expr="//button[@name='open_duplicated_ref_bill_view']/.." position="attributes">
|
<xpath expr="//button[@name='open_duplicated_ref_bill_view']/.." position="attributes">
|
||||||
<!-- show duplicate warning not only in draft state, but also in posted state -->
|
<!-- show duplicate warning not only in draft state, but also in posted state -->
|
||||||
<attribute name="attrs">{'invisible': ['|', ('state', '=', 'cancel'), ('duplicated_ref_ids', '=', [])]}</attribute>
|
<attribute name="attrs">{'invisible': ['|', ('state', '=', 'cancel'), ('duplicated_ref_ids', '=', [])]}</attribute>
|
||||||
@@ -87,8 +77,6 @@
|
|||||||
<filter name="sent" string="Sent" domain="[('is_move_sent', '=', True), ('move_type', 'in', ('out_invoice', 'out_refund'))]"/>
|
<filter name="sent" string="Sent" domain="[('is_move_sent', '=', True), ('move_type', 'in', ('out_invoice', 'out_refund'))]"/>
|
||||||
<separator/>
|
<separator/>
|
||||||
<filter name="no_attachment" string="Missing Attachment" domain="[('has_attachment', '=', False)]"/>
|
<filter name="no_attachment" string="Missing Attachment" domain="[('has_attachment', '=', False)]"/>
|
||||||
<separator/>
|
|
||||||
<filter name="dispute" string="Dispute" domain="[('blocked', '=', True)]"/>
|
|
||||||
</filter>
|
</filter>
|
||||||
<filter name="salesperson" position="before">
|
<filter name="salesperson" position="before">
|
||||||
<filter name="commercial_partner_groupby" string="Commercial Partner" context="{'group_by': 'commercial_partner_id'}"/>
|
<filter name="commercial_partner_groupby" string="Commercial Partner" context="{'group_by': 'commercial_partner_id'}"/>
|
||||||
@@ -99,33 +87,6 @@
|
|||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
|
|
||||||
<record id="view_account_move_filter" model="ir.ui.view">
|
|
||||||
<field name="model">account.move</field>
|
|
||||||
<field name="inherit_id" ref="account.view_account_move_filter"/>
|
|
||||||
<field name="arch" type="xml">
|
|
||||||
<field name="journal_id" position="after">
|
|
||||||
<field name="search_account_id"/>
|
|
||||||
</field>
|
|
||||||
</field>
|
|
||||||
</record>
|
|
||||||
|
|
||||||
<record id="view_move_line_form" model="ir.ui.view">
|
|
||||||
<field name="model">account.move.line</field>
|
|
||||||
<field name="inherit_id" ref="account.view_move_line_form"/>
|
|
||||||
<field name="arch" type="xml">
|
|
||||||
<!-- The field 'blocked' is alone in it's block
|
|
||||||
We don't want to display an empty block, so we put the attrs on the group
|
|
||||||
The drawback of this is that, if someone added a field in that group,
|
|
||||||
he won't see the field when internal_type is not payable/receivable -->
|
|
||||||
<xpath expr="//field[@name='blocked']/.." position="attributes">
|
|
||||||
<attribute name="attrs">{'invisible': [('account_type', 'not in', ('liability_payable', 'asset_receivable'))]}</attribute>
|
|
||||||
</xpath>
|
|
||||||
<field name="account_id" position="after">
|
|
||||||
<field name="account_type" invisible="1"/>
|
|
||||||
</field>
|
|
||||||
</field>
|
|
||||||
</record>
|
|
||||||
|
|
||||||
<record id="view_move_line_tree" model="ir.ui.view">
|
<record id="view_move_line_tree" model="ir.ui.view">
|
||||||
<field name="model">account.move.line</field>
|
<field name="model">account.move.line</field>
|
||||||
<field name="inherit_id" ref="account.view_move_line_tree"/>
|
<field name="inherit_id" ref="account.view_move_line_tree"/>
|
||||||
@@ -167,12 +128,5 @@
|
|||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
|
|
||||||
<!-- Inherit action called from button of account.account form view
|
|
||||||
Make it similar to standard "Journal Items" menu account.action_account_moves_all_a -->
|
|
||||||
<record id="account.action_move_line_select" model="ir.actions.act_window">
|
|
||||||
<field name="domain">[('display_type', 'not in', ('line_section', 'line_note'))]</field>
|
|
||||||
<field name="view_id" ref="account.view_move_line_tree"/>
|
|
||||||
<field name="view_mode">tree,pivot,graph,kanban</field>
|
|
||||||
</record>
|
|
||||||
|
|
||||||
</odoo>
|
</odoo>
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
<notebook position="inside">
|
<notebook position="inside">
|
||||||
<page string="Legal Terms" name="legal_terms">
|
<page string="Legal Terms" name="legal_terms">
|
||||||
<group string="Invoice Legal Terms" name="static_invoice_terms">
|
<group string="Invoice Legal Terms" name="static_invoice_terms">
|
||||||
<field name="static_invoice_terms" nolabel="1" colspan="2"/>
|
<field name="static_invoice_terms" nolabel="1"/>
|
||||||
</group>
|
</group>
|
||||||
</page>
|
</page>
|
||||||
</notebook>
|
</notebook>
|
||||||
|
|||||||
@@ -1,20 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<!--
|
|
||||||
Copyright 2014-2024 Akretion (http://www.akretion.com/)
|
|
||||||
@author: Mourad EL HADJ MIMOUNE <mourad.elhadj.mimoune@akretion.com>
|
|
||||||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
|
||||||
-->
|
|
||||||
|
|
||||||
<odoo>
|
|
||||||
|
|
||||||
<record id="view_partner_simple_form" model="ir.ui.view">
|
|
||||||
<field name="name">base_usability.title.on.partner.simplified.form</field>
|
|
||||||
<field name="model">res.partner</field>
|
|
||||||
<field name="inherit_id" ref="account.view_partner_property_form"/>
|
|
||||||
<field name="arch" type="xml">
|
|
||||||
<xpath expr="//field[@name='bank_ids']//field[@name='acc_number']" position="after">
|
|
||||||
<field name="currency_id" optional="hide"/>
|
|
||||||
</xpath>
|
|
||||||
</field>
|
|
||||||
</record>
|
|
||||||
</odoo>
|
|
||||||
@@ -2,7 +2,7 @@
|
|||||||
# @author: Alexis de Lattre <alexis.delattre@akretion.com>
|
# @author: Alexis de Lattre <alexis.delattre@akretion.com>
|
||||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||||
|
|
||||||
from odoo import api, fields, models, _
|
from odoo import api, models, _
|
||||||
from dateutil.relativedelta import relativedelta
|
from dateutil.relativedelta import relativedelta
|
||||||
from odoo.exceptions import UserError
|
from odoo.exceptions import UserError
|
||||||
|
|
||||||
@@ -10,23 +10,6 @@ from odoo.exceptions import UserError
|
|||||||
class AccountMoveReversal(models.TransientModel):
|
class AccountMoveReversal(models.TransientModel):
|
||||||
_inherit = 'account.move.reversal'
|
_inherit = 'account.move.reversal'
|
||||||
|
|
||||||
already_reversed_warning = fields.Text(compute="_compute_already_reversed_warning")
|
|
||||||
|
|
||||||
@api.depends("move_ids")
|
|
||||||
def _compute_already_reversed_warning(self):
|
|
||||||
for wizard in self:
|
|
||||||
moves = wizard.move_ids or self.env["account.move"].browse(self._context['active_ids'])
|
|
||||||
reversed_moves = self.env["account.move"].search([('reversed_entry_id', 'in', moves.ids)])
|
|
||||||
warning = ""
|
|
||||||
for already_reversed_move in reversed_moves.reversed_entry_id:
|
|
||||||
if warning:
|
|
||||||
warning += "\n"
|
|
||||||
reversed_by = " ; ".join(already_reversed_move.reversal_move_id.mapped("display_name"))
|
|
||||||
move_detail = _("%s reversed by %s") % (already_reversed_move.display_name, reversed_by)
|
|
||||||
warning += move_detail
|
|
||||||
wizard.already_reversed_warning = warning or False
|
|
||||||
|
|
||||||
|
|
||||||
# Set default reversal date to original move + 1 day
|
# Set default reversal date to original move + 1 day
|
||||||
# and raise error if original move has already been reversed
|
# and raise error if original move has already been reversed
|
||||||
@api.model
|
@api.model
|
||||||
@@ -37,4 +20,10 @@ class AccountMoveReversal(models.TransientModel):
|
|||||||
moves = amo.browse(self._context['active_ids'])
|
moves = amo.browse(self._context['active_ids'])
|
||||||
if len(moves) == 1:
|
if len(moves) == 1:
|
||||||
res['date'] = moves.date + relativedelta(days=1)
|
res['date'] = moves.date + relativedelta(days=1)
|
||||||
|
reversed_move = amo.search([('reversed_entry_id', 'in', moves.ids)], limit=1)
|
||||||
|
if reversed_move:
|
||||||
|
raise UserError(_(
|
||||||
|
"Move '%s' has already been reversed by move '%s'.") % (
|
||||||
|
reversed_move.reversed_entry_id.display_name,
|
||||||
|
reversed_move.display_name))
|
||||||
return res
|
return res
|
||||||
|
|||||||
@@ -1,24 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<odoo>
|
|
||||||
|
|
||||||
<record id="view_account_move_reversal" model="ir.ui.view">
|
|
||||||
<field name="model">account.move.reversal</field>
|
|
||||||
<field name="inherit_id" ref="account.view_account_move_reversal"/>
|
|
||||||
<field name="arch" type="xml">
|
|
||||||
<field name="residual" position="before">
|
|
||||||
<div
|
|
||||||
class="alert alert-warning"
|
|
||||||
role="alert"
|
|
||||||
attrs="{'invisible': [('already_reversed_warning', '=', False)]}"
|
|
||||||
>
|
|
||||||
You are about to reverse entries that have already been reversed or partially reversed (refund). Make sure it is intented.
|
|
||||||
Already reversed entries are the following :
|
|
||||||
<field
|
|
||||||
name="already_reversed_warning"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</field>
|
|
||||||
</field>
|
|
||||||
</record>
|
|
||||||
|
|
||||||
</odoo>
|
|
||||||
@@ -15,7 +15,7 @@ class ResCompany(models.Model):
|
|||||||
|
|
||||||
def _report_company_legal_name(self):
|
def _report_company_legal_name(self):
|
||||||
self.ensure_one()
|
self.ensure_one()
|
||||||
if self.legal_type and not self.name.endswith(self.legal_type):
|
if self.legal_type:
|
||||||
name = '%s %s' % (self.name, self.legal_type)
|
name = '%s %s' % (self.name, self.legal_type)
|
||||||
else:
|
else:
|
||||||
name = self.name
|
name = self.name
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
# Copyright 2020-2023 Akretion France (http://www.akretion.com)
|
# Copyright 2020-2021 Akretion France (http://www.akretion.com)
|
||||||
# @author Alexis de Lattre <alexis.delattre@akretion.com>
|
# @author Alexis de Lattre <alexis.delattre@akretion.com>
|
||||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||||
|
|
||||||
{
|
{
|
||||||
'name': 'Base Dynamic List',
|
'name': 'Base Dynamic List',
|
||||||
'version': '16.0.1.0.0',
|
'version': '14.0.1.0.0',
|
||||||
'category': 'Tools',
|
'category': 'Tools',
|
||||||
'license': 'AGPL-3',
|
'license': 'AGPL-3',
|
||||||
'summary': 'Dynamic lists',
|
'summary': 'Dynamic lists',
|
||||||
@@ -58,5 +58,5 @@ Limitation: when you want to have different access rights on these lists dependi
|
|||||||
'security/ir.model.access.csv',
|
'security/ir.model.access.csv',
|
||||||
'views/dynamic_list.xml',
|
'views/dynamic_list.xml',
|
||||||
],
|
],
|
||||||
'installable': True,
|
'installable': False,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
# Copyright 2020-2023 Akretion France (http://www.akretion.com)
|
# Copyright 2020-2021 Akretion France (http://www.akretion.com)
|
||||||
# @author Alexis de Lattre <alexis.delattre@akretion.com>
|
# @author Alexis de Lattre <alexis.delattre@akretion.com>
|
||||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||||
|
|
||||||
@@ -63,15 +63,18 @@ class DynamicListCode(models.Model):
|
|||||||
res.append((rec.id, '[%s] %s' % (rec.code, rec.name)))
|
res.append((rec.id, '[%s] %s' % (rec.code, rec.name)))
|
||||||
return res
|
return res
|
||||||
|
|
||||||
def _name_search(self, name='', args=None, operator='ilike', limit=100, name_get_uid=None):
|
@api.model
|
||||||
|
def name_search(
|
||||||
|
self, name='', args=None, operator='ilike', limit=80):
|
||||||
if args is None:
|
if args is None:
|
||||||
args = []
|
args = []
|
||||||
ids = []
|
|
||||||
if name and operator == 'ilike':
|
if name and operator == 'ilike':
|
||||||
ids = list(self._search([('code', '=', name)] + args, limit=limit))
|
recs = self.search(
|
||||||
if ids:
|
[('code', '=', name)] + args, limit=limit)
|
||||||
return ids
|
if recs:
|
||||||
return super()._name_search(name=name, args=args, operator=operator, limit=limit, name_get_uid=name_get_uid)
|
return recs.name_get()
|
||||||
|
return super().name_search(
|
||||||
|
name=name, args=args, operator=operator, limit=limit)
|
||||||
|
|
||||||
|
|
||||||
class DynamicListCodeTranslate(models.Model):
|
class DynamicListCodeTranslate(models.Model):
|
||||||
@@ -98,12 +101,15 @@ class DynamicListCodeTranslate(models.Model):
|
|||||||
res.append((rec.id, '[%s] %s' % (rec.code, rec.name)))
|
res.append((rec.id, '[%s] %s' % (rec.code, rec.name)))
|
||||||
return res
|
return res
|
||||||
|
|
||||||
def _name_search(self, name='', args=None, operator='ilike', limit=100, name_get_uid=None):
|
@api.model
|
||||||
|
def name_search(
|
||||||
|
self, name='', args=None, operator='ilike', limit=80):
|
||||||
if args is None:
|
if args is None:
|
||||||
args = []
|
args = []
|
||||||
ids = []
|
|
||||||
if name and operator == 'ilike':
|
if name and operator == 'ilike':
|
||||||
ids = list(self._search([('code', '=', name)] + args, limit=limit))
|
recs = self.search(
|
||||||
if ids:
|
[('code', '=', name)] + args, limit=limit)
|
||||||
return ids
|
if recs:
|
||||||
return super()._name_search(name=name, args=args, operator=operator, limit=limit, name_get_uid=name_get_uid)
|
return recs.name_get()
|
||||||
|
return super().name_search(
|
||||||
|
name=name, args=args, operator=operator, limit=limit)
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<!--
|
<!--
|
||||||
Copyright 2020-2023 Akretion France (http://www.akretion.com/)
|
Copyright 2020-2021 Akretion France (http://www.akretion.com/)
|
||||||
@author: Alexis de Lattre <alexis.delattre@akretion.com>
|
@author: Alexis de Lattre <alexis.delattre@akretion.com>
|
||||||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||||
-->
|
-->
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
'name': 'Mail Sender Bcc',
|
'name': 'Mail Sender Bcc',
|
||||||
'version': '16.0.1.0.0',
|
'version': '14.0.1.0.0',
|
||||||
'category': 'Mail',
|
'category': 'Mail',
|
||||||
'license': 'AGPL-3',
|
'license': 'AGPL-3',
|
||||||
'summary': "Always send a copy of the mail to the sender",
|
'summary': "Always send a copy of the mail to the sender",
|
||||||
@@ -17,5 +17,5 @@ With this module, when Odoo sends an outgoing email, it adds the sender as Bcc (
|
|||||||
'author': 'Akretion',
|
'author': 'Akretion',
|
||||||
'website': 'https://github.com/akretion/odoo-usability',
|
'website': 'https://github.com/akretion/odoo-usability',
|
||||||
'depends': ['base'],
|
'depends': ['base'],
|
||||||
'installable': True,
|
'installable': False,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
from . import models
|
from . import partner_phone
|
||||||
from .post_install import migrate_to_partner_phone
|
from .post_install import migrate_to_partner_phone
|
||||||
|
|||||||
@@ -1,12 +1,12 @@
|
|||||||
# Copyright 2014-2023 Abbaye du Barroux (http://www.barroux.org)
|
# Copyright 2014-2020 Abbaye du Barroux (http://www.barroux.org)
|
||||||
# Copyright 2014-2023 Akretion (http://www.akretion.com>)
|
# Copyright 2014-2020 Akretion (http://www.akretion.com>)
|
||||||
# @author: Frère Bernard <informatique@barroux.org>
|
# @author: Frère Bernard <informatique@barroux.org>
|
||||||
# @author: Alexis de Lattre <alexis.delattre@akretion.com>
|
# @author: Alexis de Lattre <alexis.delattre@akretion.com>
|
||||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||||
|
|
||||||
{
|
{
|
||||||
'name': 'Base Partner One2many Phone',
|
'name': 'Base Partner One2many Phone',
|
||||||
'version': '16.0.1.0.0',
|
'version': '14.0.1.0.0',
|
||||||
'category': 'Phone',
|
'category': 'Phone',
|
||||||
'license': 'AGPL-3',
|
'license': 'AGPL-3',
|
||||||
'summary': 'One2many link between partners and phone numbers/emails',
|
'summary': 'One2many link between partners and phone numbers/emails',
|
||||||
@@ -19,14 +19,13 @@ With this module, one partner can have several phone numbers and several emails.
|
|||||||
It has been developped by brother Bernard from Barroux Abbey and Alexis de Lattre from Akretion.
|
It has been developped by brother Bernard from Barroux Abbey and Alexis de Lattre from Akretion.
|
||||||
""",
|
""",
|
||||||
'author': 'Akretion',
|
'author': 'Akretion',
|
||||||
'website': 'https://github.com/akretion/odoo-usability',
|
'website': 'https://akretion.com/',
|
||||||
'depends': ['contacts', 'base_usability', 'phone_validation'],
|
'depends': ['contacts', 'base_usability', 'phone_validation'],
|
||||||
'excludes': ['sms'], # because sms introduces big changes in partner form view
|
'excludes': ['sms'], # because sms introduces big changes in partner form view
|
||||||
'data': [
|
'data': [
|
||||||
'views/res_partner_phone.xml',
|
'partner_phone_view.xml',
|
||||||
'views/res_partner.xml',
|
|
||||||
'security/ir.model.access.csv',
|
'security/ir.model.access.csv',
|
||||||
],
|
],
|
||||||
'installable': True,
|
'installable': False,
|
||||||
'post_init_hook': 'migrate_to_partner_phone',
|
'post_init_hook': 'migrate_to_partner_phone',
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,2 +0,0 @@
|
|||||||
from . import res_partner_phone
|
|
||||||
from . import res_partner
|
|
||||||
@@ -1,94 +0,0 @@
|
|||||||
# Copyright 2014-2023 Abbaye du Barroux (http://www.barroux.org)
|
|
||||||
# Copyright 2016-2023 Akretion (http://www.akretion.com>)
|
|
||||||
# @author: Frère Bernard <informatique@barroux.org>
|
|
||||||
# @author: Alexis de Lattre <alexis.delattre@akretion.com>
|
|
||||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
|
||||||
|
|
||||||
from odoo import api, fields, models, Command
|
|
||||||
|
|
||||||
|
|
||||||
class ResPartner(models.Model):
|
|
||||||
_inherit = 'res.partner'
|
|
||||||
|
|
||||||
# in v10, we are supposed to have in DB E.164 format
|
|
||||||
# with the current implementation, we have:
|
|
||||||
# in res.partner : PhoneNumberFormat.INTERNATIONAL
|
|
||||||
# in res.partner.phone : E.164
|
|
||||||
# It is not good, but it is not a big bug and it's complex to fix
|
|
||||||
# so let's let it like that. In v12, we store in
|
|
||||||
# PhoneNumberFormat.INTERNATIONAL, so this bug is kind of an anticipation
|
|
||||||
# for the future :)
|
|
||||||
|
|
||||||
phone_ids = fields.One2many(
|
|
||||||
'res.partner.phone', 'partner_id', string='Phones/Emails')
|
|
||||||
phone = fields.Char(compute='_compute_partner_phone', store=True)
|
|
||||||
mobile = fields.Char(compute='_compute_partner_phone', store=True)
|
|
||||||
email = fields.Char(compute='_compute_partner_phone', store=True)
|
|
||||||
|
|
||||||
@api.depends('phone_ids.phone', 'phone_ids.type', 'phone_ids.email')
|
|
||||||
def _compute_partner_phone(self):
|
|
||||||
for partner in self:
|
|
||||||
phone = mobile = email = False
|
|
||||||
for pphone in partner.phone_ids:
|
|
||||||
if pphone.type == '1_email_primary' and pphone.email:
|
|
||||||
email = pphone.email
|
|
||||||
elif pphone.phone:
|
|
||||||
if pphone.type == '5_mobile_primary':
|
|
||||||
mobile = pphone.phone
|
|
||||||
elif pphone.type == '3_phone_primary':
|
|
||||||
phone = pphone.phone
|
|
||||||
partner.phone = phone
|
|
||||||
partner.mobile = mobile
|
|
||||||
partner.email = email
|
|
||||||
|
|
||||||
def _update_create_vals(
|
|
||||||
self, vals, type, partner_field, partner_phone_field):
|
|
||||||
if vals.get(partner_field):
|
|
||||||
vals['phone_ids'].append(
|
|
||||||
Command.create({'type': type, partner_phone_field: vals[partner_field]}))
|
|
||||||
if partner_field in vals:
|
|
||||||
vals.pop(partner_field)
|
|
||||||
|
|
||||||
@api.model_create_multi
|
|
||||||
def create(self, vals_list):
|
|
||||||
for vals in vals_list:
|
|
||||||
if 'phone_ids' not in vals:
|
|
||||||
vals['phone_ids'] = []
|
|
||||||
self._update_create_vals(vals, '1_email_primary', 'email', 'email')
|
|
||||||
self._update_create_vals(vals, '3_phone_primary', 'phone', 'phone')
|
|
||||||
self._update_create_vals(vals, '5_mobile_primary', 'mobile', 'phone')
|
|
||||||
return super().create(vals_list)
|
|
||||||
|
|
||||||
def _update_write_vals(
|
|
||||||
self, vals, type, partner_field, partner_phone_field):
|
|
||||||
self.ensure_one()
|
|
||||||
rppo = self.env['res.partner.phone']
|
|
||||||
if partner_field in vals:
|
|
||||||
pphone = rppo.search([
|
|
||||||
('partner_id', '=', self.id),
|
|
||||||
('type', '=', type)], limit=1)
|
|
||||||
if vals[partner_field]:
|
|
||||||
if pphone:
|
|
||||||
vals['phone_ids'].append(Command.update(pphone.id, {
|
|
||||||
partner_phone_field: vals[partner_field]}))
|
|
||||||
else:
|
|
||||||
vals['phone_ids'].append(Command.create({
|
|
||||||
'type': type,
|
|
||||||
partner_phone_field: vals[partner_field],
|
|
||||||
}))
|
|
||||||
else:
|
|
||||||
if pphone:
|
|
||||||
vals['phone_ids'].append(Command.delete(pphone.id))
|
|
||||||
vals.pop(partner_field)
|
|
||||||
|
|
||||||
def write(self, vals):
|
|
||||||
if 'phone_ids' not in vals:
|
|
||||||
for rec in self:
|
|
||||||
cvals = dict(vals, phone_ids=[])
|
|
||||||
rec._update_write_vals(cvals, '1_email_primary', 'email', 'email')
|
|
||||||
rec._update_write_vals(cvals, '3_phone_primary', 'phone', 'phone')
|
|
||||||
rec._update_write_vals(cvals, '5_mobile_primary', 'mobile', 'phone')
|
|
||||||
super(ResPartner, rec).write(cvals)
|
|
||||||
return True
|
|
||||||
else:
|
|
||||||
return super().write(vals)
|
|
||||||
@@ -1,108 +0,0 @@
|
|||||||
# Copyright 2014-2023 Abbaye du Barroux (http://www.barroux.org)
|
|
||||||
# Copyright 2016-2023 Akretion (http://www.akretion.com>)
|
|
||||||
# @author: Frère Bernard <informatique@barroux.org>
|
|
||||||
# @author: Alexis de Lattre <alexis.delattre@akretion.com>
|
|
||||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
|
||||||
|
|
||||||
from odoo import api, fields, models, _
|
|
||||||
from odoo.exceptions import ValidationError
|
|
||||||
from odoo.addons.phone_validation.tools import phone_validation
|
|
||||||
|
|
||||||
EMAIL_TYPES = ('1_email_primary', '2_email_secondary')
|
|
||||||
PHONE_TYPES = ('3_phone_primary', '4_phone_secondary', '5_mobile_primary', '6_mobile_secondary', '7_fax_primary', '8_fax_secondary')
|
|
||||||
|
|
||||||
|
|
||||||
class ResPartnerPhone(models.Model):
|
|
||||||
_name = 'res.partner.phone'
|
|
||||||
_order = 'partner_id, type'
|
|
||||||
_phone_name_sequence = 8
|
|
||||||
_description = 'Multiple emails and phones for partners'
|
|
||||||
|
|
||||||
partner_id = fields.Many2one(
|
|
||||||
'res.partner', string='Related Partner', index=True, ondelete='cascade')
|
|
||||||
type = fields.Selection([
|
|
||||||
('1_email_primary', 'Primary E-mail'),
|
|
||||||
('2_email_secondary', 'Secondary E-mail'),
|
|
||||||
('3_phone_primary', 'Primary Phone'),
|
|
||||||
('4_phone_secondary', 'Secondary Phone'),
|
|
||||||
('5_mobile_primary', 'Primary Mobile'),
|
|
||||||
('6_mobile_secondary', 'Secondary Mobile'),
|
|
||||||
('7_fax_primary', 'Primary Fax'),
|
|
||||||
('8_fax_secondary', 'Secondary Fax'),
|
|
||||||
],
|
|
||||||
string='Type', required=True, index=True)
|
|
||||||
phone = fields.Char(string='Phone')
|
|
||||||
email = fields.Char(string='E-Mail')
|
|
||||||
note = fields.Char('Note')
|
|
||||||
|
|
||||||
@api.onchange('type')
|
|
||||||
def type_change(self):
|
|
||||||
if self.type:
|
|
||||||
if self.type in EMAIL_TYPES:
|
|
||||||
self.phone = False
|
|
||||||
elif self.type in PHONE_TYPES:
|
|
||||||
self.email = False
|
|
||||||
|
|
||||||
@api.onchange('phone', 'partner_id')
|
|
||||||
def _onchange_phone_validation(self):
|
|
||||||
if self.phone:
|
|
||||||
country = self.partner_id.country_id
|
|
||||||
self.phone = phone_validation.phone_format(
|
|
||||||
self.phone,
|
|
||||||
country.code or None,
|
|
||||||
country.phone_code or None,
|
|
||||||
force_format='INTERNATIONAL',
|
|
||||||
raise_exception=False)
|
|
||||||
|
|
||||||
@api.constrains('type', 'phone', 'email')
|
|
||||||
def _check_partner_phone(self):
|
|
||||||
for rec in self:
|
|
||||||
if rec.type in EMAIL_TYPES:
|
|
||||||
if not rec.email:
|
|
||||||
raise ValidationError(_(
|
|
||||||
"E-mail field must have a value when type is Primary E-mail or Secondary E-mail."))
|
|
||||||
if rec.phone:
|
|
||||||
raise ValidationError(_(
|
|
||||||
"Phone field must be empty when type is Primary E-mail or Secondary E-mail."))
|
|
||||||
elif rec.type in PHONE_TYPES:
|
|
||||||
if not rec.phone:
|
|
||||||
raise ValidationError(_(
|
|
||||||
"Phone field must have a value when type is Primary/Secondary Phone, Primary/Secondary Mobile or Primary/Secondary Fax."))
|
|
||||||
if rec.email:
|
|
||||||
raise ValidationError(_(
|
|
||||||
"E-mail field must be empty when type is Primary/Secondary Phone, Primary/Secondary Mobile or Primary/Secondary Fax."))
|
|
||||||
|
|
||||||
def name_get(self):
|
|
||||||
res = []
|
|
||||||
for pphone in self:
|
|
||||||
if pphone.partner_id:
|
|
||||||
if self._context.get('callerid'):
|
|
||||||
name = pphone.partner_id.display_name
|
|
||||||
else:
|
|
||||||
name = u'%s (%s)' % (pphone.phone, pphone.partner_id.name)
|
|
||||||
else:
|
|
||||||
name = pphone.phone
|
|
||||||
res.append((pphone.id, name))
|
|
||||||
return res
|
|
||||||
|
|
||||||
def init(self):
|
|
||||||
self._cr.execute('''
|
|
||||||
CREATE UNIQUE INDEX IF NOT EXISTS single_email_primary
|
|
||||||
ON res_partner_phone (partner_id, type)
|
|
||||||
WHERE (type='1_email_primary')
|
|
||||||
''')
|
|
||||||
self._cr.execute('''
|
|
||||||
CREATE UNIQUE INDEX IF NOT EXISTS single_phone_primary
|
|
||||||
ON res_partner_phone (partner_id, type)
|
|
||||||
WHERE (type='3_phone_primary')
|
|
||||||
''')
|
|
||||||
self._cr.execute('''
|
|
||||||
CREATE UNIQUE INDEX IF NOT EXISTS single_mobile_primary
|
|
||||||
ON res_partner_phone (partner_id, type)
|
|
||||||
WHERE (type='5_mobile_primary')
|
|
||||||
''')
|
|
||||||
self._cr.execute('''
|
|
||||||
CREATE UNIQUE INDEX IF NOT EXISTS single_fax_primary
|
|
||||||
ON res_partner_phone (partner_id, type)
|
|
||||||
WHERE (type='7_fax_primary')
|
|
||||||
''')
|
|
||||||
193
base_partner_one2many_phone/partner_phone.py
Normal file
193
base_partner_one2many_phone/partner_phone.py
Normal file
@@ -0,0 +1,193 @@
|
|||||||
|
# Copyright 2014-2020 Abbaye du Barroux (http://www.barroux.org)
|
||||||
|
# Copyright 2016-2020 Akretion (http://www.akretion.com>)
|
||||||
|
# @author: Frère Bernard <informatique@barroux.org>
|
||||||
|
# @author: Alexis de Lattre <alexis.delattre@akretion.com>
|
||||||
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||||
|
|
||||||
|
from odoo import api, fields, models, _
|
||||||
|
from odoo.exceptions import ValidationError
|
||||||
|
|
||||||
|
EMAIL_TYPES = ('1_email_primary', '2_email_secondary')
|
||||||
|
PHONE_TYPES = ('3_phone_primary', '4_phone_secondary', '5_mobile_primary', '6_mobile_secondary', '7_fax_primary', '8_fax_secondary')
|
||||||
|
|
||||||
|
|
||||||
|
class ResPartnerPhone(models.Model):
|
||||||
|
_name = 'res.partner.phone'
|
||||||
|
_order = 'partner_id, type'
|
||||||
|
_phone_name_sequence = 8
|
||||||
|
_inherit = ['phone.validation.mixin']
|
||||||
|
_description = 'Multiple emails and phones for partners'
|
||||||
|
|
||||||
|
partner_id = fields.Many2one(
|
||||||
|
'res.partner', string='Related Partner', index=True, ondelete='cascade')
|
||||||
|
type = fields.Selection([
|
||||||
|
('1_email_primary', 'Primary E-mail'),
|
||||||
|
('2_email_secondary', 'Secondary E-mail'),
|
||||||
|
('3_phone_primary', 'Primary Phone'),
|
||||||
|
('4_phone_secondary', 'Secondary Phone'),
|
||||||
|
('5_mobile_primary', 'Primary Mobile'),
|
||||||
|
('6_mobile_secondary', 'Secondary Mobile'),
|
||||||
|
('7_fax_primary', 'Primary Fax'),
|
||||||
|
('8_fax_secondary', 'Secondary Fax'),
|
||||||
|
],
|
||||||
|
string='Type', required=True, index=True)
|
||||||
|
phone = fields.Char(string='Phone')
|
||||||
|
email = fields.Char(string='E-Mail')
|
||||||
|
note = fields.Char('Note')
|
||||||
|
|
||||||
|
@api.onchange('type')
|
||||||
|
def type_change(self):
|
||||||
|
if self.type:
|
||||||
|
if self.type in EMAIL_TYPES:
|
||||||
|
self.phone = False
|
||||||
|
elif self.type in PHONE_TYPES:
|
||||||
|
self.email = False
|
||||||
|
|
||||||
|
@api.onchange('phone', 'partner_id')
|
||||||
|
def _onchange_phone_validation(self):
|
||||||
|
if self.phone:
|
||||||
|
self.phone = self.phone_format(self.phone, country=self.partner_id.country_id)
|
||||||
|
|
||||||
|
@api.constrains('type', 'phone', 'email')
|
||||||
|
def _check_partner_phone(self):
|
||||||
|
for rec in self:
|
||||||
|
if rec.type in EMAIL_TYPES:
|
||||||
|
if not rec.email:
|
||||||
|
raise ValidationError(_(
|
||||||
|
"E-mail field must have a value when type is Primary E-mail or Secondary E-mail."))
|
||||||
|
if rec.phone:
|
||||||
|
raise ValidationError(_(
|
||||||
|
"Phone field must be empty when type is Primary E-mail or Secondary E-mail."))
|
||||||
|
elif rec.type in PHONE_TYPES:
|
||||||
|
if not rec.phone:
|
||||||
|
raise ValidationError(_(
|
||||||
|
"Phone field must have a value when type is Primary/Secondary Phone, Primary/Secondary Mobile or Primary/Secondary Fax."))
|
||||||
|
if rec.email:
|
||||||
|
raise ValidationError(_(
|
||||||
|
"E-mail field must be empty when type is Primary/Secondary Phone, Primary/Secondary Mobile or Primary/Secondary Fax."))
|
||||||
|
|
||||||
|
def name_get(self):
|
||||||
|
res = []
|
||||||
|
for pphone in self:
|
||||||
|
if pphone.partner_id:
|
||||||
|
if self._context.get('callerid'):
|
||||||
|
name = pphone.partner_id.display_name
|
||||||
|
else:
|
||||||
|
name = u'%s (%s)' % (pphone.phone, pphone.partner_id.name)
|
||||||
|
else:
|
||||||
|
name = pphone.phone
|
||||||
|
res.append((pphone.id, name))
|
||||||
|
return res
|
||||||
|
|
||||||
|
def init(self):
|
||||||
|
self._cr.execute('''
|
||||||
|
CREATE UNIQUE INDEX IF NOT EXISTS single_email_primary
|
||||||
|
ON res_partner_phone (partner_id, type)
|
||||||
|
WHERE (type='1_email_primary')
|
||||||
|
''')
|
||||||
|
self._cr.execute('''
|
||||||
|
CREATE UNIQUE INDEX IF NOT EXISTS single_phone_primary
|
||||||
|
ON res_partner_phone (partner_id, type)
|
||||||
|
WHERE (type='3_phone_primary')
|
||||||
|
''')
|
||||||
|
self._cr.execute('''
|
||||||
|
CREATE UNIQUE INDEX IF NOT EXISTS single_mobile_primary
|
||||||
|
ON res_partner_phone (partner_id, type)
|
||||||
|
WHERE (type='5_mobile_primary')
|
||||||
|
''')
|
||||||
|
self._cr.execute('''
|
||||||
|
CREATE UNIQUE INDEX IF NOT EXISTS single_fax_primary
|
||||||
|
ON res_partner_phone (partner_id, type)
|
||||||
|
WHERE (type='7_fax_primary')
|
||||||
|
''')
|
||||||
|
|
||||||
|
|
||||||
|
class ResPartner(models.Model):
|
||||||
|
_inherit = 'res.partner'
|
||||||
|
|
||||||
|
# in v10, we are supposed to have in DB E.164 format
|
||||||
|
# with the current implementation, we have:
|
||||||
|
# in res.partner : PhoneNumberFormat.INTERNATIONAL
|
||||||
|
# in res.partner.phone : E.164
|
||||||
|
# It is not good, but it is not a big bug and it's complex to fix
|
||||||
|
# so let's let it like that. In v12, we store in
|
||||||
|
# PhoneNumberFormat.INTERNATIONAL, so this bug is kind of an anticipation
|
||||||
|
# for the future :)
|
||||||
|
|
||||||
|
phone_ids = fields.One2many(
|
||||||
|
'res.partner.phone', 'partner_id', string='Phones/Emails')
|
||||||
|
phone = fields.Char(
|
||||||
|
compute='_compute_partner_phone',
|
||||||
|
store=True, readonly=True, compute_sudo=True)
|
||||||
|
mobile = fields.Char(
|
||||||
|
compute='_compute_partner_phone',
|
||||||
|
store=True, readonly=True, compute_sudo=True)
|
||||||
|
email = fields.Char(
|
||||||
|
compute='_compute_partner_phone',
|
||||||
|
store=True, readonly=True, compute_sudo=True)
|
||||||
|
|
||||||
|
@api.depends('phone_ids.phone', 'phone_ids.type', 'phone_ids.email')
|
||||||
|
def _compute_partner_phone(self):
|
||||||
|
for partner in self:
|
||||||
|
phone = mobile = email = False
|
||||||
|
for pphone in partner.phone_ids:
|
||||||
|
if pphone.type == '1_email_primary' and pphone.email:
|
||||||
|
email = pphone.email
|
||||||
|
elif pphone.phone:
|
||||||
|
if pphone.type == '5_mobile_primary':
|
||||||
|
mobile = pphone.phone
|
||||||
|
elif pphone.type == '3_phone_primary':
|
||||||
|
phone = pphone.phone
|
||||||
|
partner.phone = phone
|
||||||
|
partner.mobile = mobile
|
||||||
|
partner.email = email
|
||||||
|
|
||||||
|
def _update_create_vals(
|
||||||
|
self, vals, type, partner_field, partner_phone_field):
|
||||||
|
if vals.get(partner_field):
|
||||||
|
vals['phone_ids'].append(
|
||||||
|
(0, 0, {'type': type, partner_phone_field: vals[partner_field]}))
|
||||||
|
|
||||||
|
@api.model
|
||||||
|
def create(self, vals):
|
||||||
|
if 'phone_ids' not in vals:
|
||||||
|
vals['phone_ids'] = []
|
||||||
|
self._update_create_vals(vals, '1_email_primary', 'email', 'email')
|
||||||
|
self._update_create_vals(vals, '3_phone_primary', 'phone', 'phone')
|
||||||
|
self._update_create_vals(vals, '5_mobile_primary', 'mobile', 'phone')
|
||||||
|
# self._update_create_vals(vals, '7_fax_primary', 'fax', 'phone')
|
||||||
|
return super().create(vals)
|
||||||
|
|
||||||
|
def _update_write_vals(
|
||||||
|
self, vals, type, partner_field, partner_phone_field):
|
||||||
|
self.ensure_one()
|
||||||
|
rppo = self.env['res.partner.phone']
|
||||||
|
if partner_field in vals:
|
||||||
|
pphone = rppo.search([
|
||||||
|
('partner_id', '=', self.id),
|
||||||
|
('type', '=', type)], limit=1)
|
||||||
|
if vals[partner_field]:
|
||||||
|
if pphone:
|
||||||
|
vals['phone_ids'].append((1, pphone.id, {
|
||||||
|
partner_phone_field: vals[partner_field]}))
|
||||||
|
else:
|
||||||
|
vals['phone_ids'].append((0, 0, {
|
||||||
|
'type': type,
|
||||||
|
partner_phone_field: vals[partner_field],
|
||||||
|
}))
|
||||||
|
else:
|
||||||
|
if pphone:
|
||||||
|
vals['phone_ids'].append((2, pphone.id))
|
||||||
|
|
||||||
|
def write(self, vals):
|
||||||
|
if 'phone_ids' not in vals:
|
||||||
|
for rec in self:
|
||||||
|
vals['phone_ids'] = []
|
||||||
|
rec._update_write_vals(vals, '1_email_primary', 'email', 'email')
|
||||||
|
rec._update_write_vals(vals, '3_phone_primary', 'phone', 'phone')
|
||||||
|
rec._update_write_vals(vals, '5_mobile_primary', 'mobile', 'phone')
|
||||||
|
rec._update_write_vals(vals, '7_fax_primary', 'fax', 'phone')
|
||||||
|
super(ResPartner, rec).write(vals)
|
||||||
|
return True
|
||||||
|
else:
|
||||||
|
return super().write(vals)
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<!--
|
<!--
|
||||||
Copyright 2014-2023 Abbaye du Barroux (http://www.barroux.org)
|
Copyright 2014-2020 Abbaye du Barroux (http://www.barroux.org)
|
||||||
Copyright 2016-2023 Akretion (http://www.akretion.com>)
|
Copyright 2016-2020 Akretion (http://www.akretion.com>)
|
||||||
@author: Frère Bernard <informatique@barroux.org>
|
@author: Frère Bernard <informatique@barroux.org>
|
||||||
@author: Alexis de Lattre <alexis.delattre@akretion.com>
|
@author: Alexis de Lattre <alexis.delattre@akretion.com>
|
||||||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||||
@@ -9,6 +9,65 @@
|
|||||||
|
|
||||||
<odoo>
|
<odoo>
|
||||||
|
|
||||||
|
<!-- Partner phones -->
|
||||||
|
<record id="res_partner_phone_tree" model="ir.ui.view">
|
||||||
|
<field name="name">res.partner.phone.tree</field>
|
||||||
|
<field name="model">res.partner.phone</field>
|
||||||
|
<field name="arch" type="xml">
|
||||||
|
<tree editable="bottom">
|
||||||
|
<field name="partner_id" invisible="not context.get('partner_phone_main_view')"/>
|
||||||
|
<field name="type"/>
|
||||||
|
<field name="phone" widget="phone" options="{'enable_sms': false}" attrs="{'required': [('type', 'not in', ('1_email_primary', '2_email_secondary'))], 'readonly': [('type', 'in', ('1_email_primary', '2_email_secondary'))]}"/>
|
||||||
|
<field name="email" widget="email" attrs="{'readonly': [('type', 'not in', ('1_email_primary', '2_email_secondary'))], 'required': [('type', 'in', ('1_email_primary', '2_email_secondary'))]}"/>
|
||||||
|
<field name="note"/>
|
||||||
|
</tree>
|
||||||
|
</field>
|
||||||
|
</record>
|
||||||
|
|
||||||
|
<record id="res_partner_phone_form" model="ir.ui.view">
|
||||||
|
<field name="name">res.partner.phone.form</field>
|
||||||
|
<field name="model">res.partner.phone</field>
|
||||||
|
<field name="arch" type="xml">
|
||||||
|
<form>
|
||||||
|
<group name="main">
|
||||||
|
<field name="partner_id" invisible="not context.get('partner_phone_main_view')"/>
|
||||||
|
<field name="type"/>
|
||||||
|
<field name="phone" widget="phone" options="{'enable_sms': false}" attrs="{'required': [('type', 'not in', ('1_email_primary', '2_email_secondary'))], 'invisible': [('type', 'in', ('1_email_primary', '2_email_secondary'))]}"/>
|
||||||
|
<field name="email" widget="email" attrs="{'invisible': [('type', 'not in', ('1_email_primary', '2_email_secondary'))], 'required': [('type', 'in', ('1_email_primary', '2_email_secondary'))]}"/>
|
||||||
|
<field name="note"/>
|
||||||
|
</group>
|
||||||
|
</form>
|
||||||
|
</field>
|
||||||
|
</record>
|
||||||
|
|
||||||
|
<record id="res_partner_phone_search" model="ir.ui.view">
|
||||||
|
<field name="name">res.partner.phone.search</field>
|
||||||
|
<field name="model">res.partner.phone</field>
|
||||||
|
<field name="arch" type="xml">
|
||||||
|
<search>
|
||||||
|
<field name="phone" />
|
||||||
|
<field name="email" />
|
||||||
|
<group name="groupby">
|
||||||
|
<filter name="type_groupby" string="Type" context="{'group_by': 'type'}"/>
|
||||||
|
</group>
|
||||||
|
</search>
|
||||||
|
</field>
|
||||||
|
</record>
|
||||||
|
|
||||||
|
<record id="res_partner_phone_action" model="ir.actions.act_window">
|
||||||
|
<field name="name">Phones/E-mails</field>
|
||||||
|
<field name="res_model">res.partner.phone</field>
|
||||||
|
<field name="view_mode">tree</field>
|
||||||
|
<field name="context">{'partner_phone_main_view': True}</field>
|
||||||
|
</record>
|
||||||
|
|
||||||
|
<menuitem id="res_partner_phone_menu" action="res_partner_phone_action"
|
||||||
|
parent="contacts.menu_contacts" sequence="10"/>
|
||||||
|
|
||||||
|
<record id="contacts.res_partner_menu_config" model="ir.ui.menu">
|
||||||
|
<field name="sequence">20</field>
|
||||||
|
</record>
|
||||||
|
|
||||||
<!-- PARTNER views -->
|
<!-- PARTNER views -->
|
||||||
<record id="view_partner_form" model="ir.ui.view">
|
<record id="view_partner_form" model="ir.ui.view">
|
||||||
<field name="name">add.phone_ids.on.partner.form</field>
|
<field name="name">add.phone_ids.on.partner.form</field>
|
||||||
@@ -100,7 +159,7 @@
|
|||||||
<field name="inherit_id" ref="base_usability.view_res_partner_filter"/>
|
<field name="inherit_id" ref="base_usability.view_res_partner_filter"/>
|
||||||
<field name="arch" type="xml">
|
<field name="arch" type="xml">
|
||||||
<field name="name" position="attributes">
|
<field name="name" position="attributes">
|
||||||
<attribute name="filter_domain">['|', '|', '|', '|', ('display_name', 'ilike', self), ('ref', '=ilike', self + '%'), ('phone_ids.email', 'ilike', self), ('vat', 'ilike', self), ('company_registry', 'ilike', self)]</attribute>
|
<attribute name="filter_domain">['|', '|', ('display_name', 'ilike', self), ('ref', '=ilike', self + '%'), ('phone_ids.email', 'ilike', self)]</attribute>
|
||||||
</field>
|
</field>
|
||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
# Copyright 2017-2023 Akretion France (http://www.akretion.com/)
|
# Copyright 2017-2020 Akretion France (http://www.akretion.com/)
|
||||||
# @author Alexis de Lattre <alexis.delattre@akretion.com>
|
# @author Alexis de Lattre <alexis.delattre@akretion.com>
|
||||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||||
|
|
||||||
@@ -36,12 +36,14 @@ def create_partner_email(cr):
|
|||||||
|
|
||||||
def migrate_to_partner_phone(cr, registry):
|
def migrate_to_partner_phone(cr, registry):
|
||||||
logger.info('start data migration for one2many_phone')
|
logger.info('start data migration for one2many_phone')
|
||||||
env = api.Environment(cr, SUPERUSER_ID, {})
|
with api.Environment.manage():
|
||||||
rppo = env['res.partner.phone']
|
env = api.Environment(cr, SUPERUSER_ID, {})
|
||||||
to_create = []
|
rppo = env['res.partner.phone']
|
||||||
to_create += create_partner_phone(cr, 'phone', '3_phone_primary')
|
to_create = []
|
||||||
to_create += create_partner_phone(cr, 'mobile', '5_mobile_primary')
|
to_create += create_partner_phone(cr, 'phone', '3_phone_primary')
|
||||||
to_create += create_partner_email(cr)
|
to_create += create_partner_phone(cr, 'mobile', '5_mobile_primary')
|
||||||
# I need to create all at the end for invalidation purposes
|
to_create += create_partner_email(cr)
|
||||||
rppo.create(to_create)
|
# I need to create all at the end for invalidation purposes
|
||||||
|
rppo.create(to_create)
|
||||||
logger.info('end data migration for one2many_phone')
|
logger.info('end data migration for one2many_phone')
|
||||||
|
return
|
||||||
|
|||||||
@@ -8,9 +8,8 @@ from odoo.tests.common import TransactionCase
|
|||||||
|
|
||||||
class TestPartnerPhone(TransactionCase):
|
class TestPartnerPhone(TransactionCase):
|
||||||
|
|
||||||
@classmethod
|
def setUp(self):
|
||||||
def setUpClass(cls):
|
super(TestPartnerPhone, self).setUp()
|
||||||
super().setUpClass()
|
|
||||||
|
|
||||||
def _check_result(self, partner, result):
|
def _check_result(self, partner, result):
|
||||||
rppo = self.env['res.partner.phone']
|
rppo = self.env['res.partner.phone']
|
||||||
|
|||||||
@@ -1,71 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<!--
|
|
||||||
Copyright 2014-2020 Abbaye du Barroux (http://www.barroux.org)
|
|
||||||
Copyright 2016-2020 Akretion (http://www.akretion.com>)
|
|
||||||
@author: Frère Bernard <informatique@barroux.org>
|
|
||||||
@author: Alexis de Lattre <alexis.delattre@akretion.com>
|
|
||||||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
|
||||||
-->
|
|
||||||
|
|
||||||
<odoo>
|
|
||||||
|
|
||||||
<!-- Partner phones -->
|
|
||||||
<record id="res_partner_phone_tree" model="ir.ui.view">
|
|
||||||
<field name="name">res.partner.phone.tree</field>
|
|
||||||
<field name="model">res.partner.phone</field>
|
|
||||||
<field name="arch" type="xml">
|
|
||||||
<tree editable="bottom">
|
|
||||||
<field name="partner_id" invisible="not context.get('partner_phone_main_view')"/>
|
|
||||||
<field name="type"/>
|
|
||||||
<field name="phone" widget="phone" options="{'enable_sms': false}" attrs="{'required': [('type', 'not in', ('1_email_primary', '2_email_secondary'))], 'readonly': [('type', 'in', ('1_email_primary', '2_email_secondary'))]}"/>
|
|
||||||
<field name="email" widget="email" attrs="{'readonly': [('type', 'not in', ('1_email_primary', '2_email_secondary'))], 'required': [('type', 'in', ('1_email_primary', '2_email_secondary'))]}"/>
|
|
||||||
<field name="note"/>
|
|
||||||
</tree>
|
|
||||||
</field>
|
|
||||||
</record>
|
|
||||||
|
|
||||||
<record id="res_partner_phone_form" model="ir.ui.view">
|
|
||||||
<field name="name">res.partner.phone.form</field>
|
|
||||||
<field name="model">res.partner.phone</field>
|
|
||||||
<field name="arch" type="xml">
|
|
||||||
<form>
|
|
||||||
<group name="main">
|
|
||||||
<field name="partner_id" invisible="not context.get('partner_phone_main_view')"/>
|
|
||||||
<field name="type"/>
|
|
||||||
<field name="phone" widget="phone" options="{'enable_sms': false}" attrs="{'required': [('type', 'not in', ('1_email_primary', '2_email_secondary'))], 'invisible': [('type', 'in', ('1_email_primary', '2_email_secondary'))]}"/>
|
|
||||||
<field name="email" widget="email" attrs="{'invisible': [('type', 'not in', ('1_email_primary', '2_email_secondary'))], 'required': [('type', 'in', ('1_email_primary', '2_email_secondary'))]}"/>
|
|
||||||
<field name="note"/>
|
|
||||||
</group>
|
|
||||||
</form>
|
|
||||||
</field>
|
|
||||||
</record>
|
|
||||||
|
|
||||||
<record id="res_partner_phone_search" model="ir.ui.view">
|
|
||||||
<field name="name">res.partner.phone.search</field>
|
|
||||||
<field name="model">res.partner.phone</field>
|
|
||||||
<field name="arch" type="xml">
|
|
||||||
<search>
|
|
||||||
<field name="phone" />
|
|
||||||
<field name="email" />
|
|
||||||
<group name="groupby">
|
|
||||||
<filter name="type_groupby" string="Type" context="{'group_by': 'type'}"/>
|
|
||||||
</group>
|
|
||||||
</search>
|
|
||||||
</field>
|
|
||||||
</record>
|
|
||||||
|
|
||||||
<record id="res_partner_phone_action" model="ir.actions.act_window">
|
|
||||||
<field name="name">Phones/E-mails</field>
|
|
||||||
<field name="res_model">res.partner.phone</field>
|
|
||||||
<field name="view_mode">tree</field>
|
|
||||||
<field name="context">{'partner_phone_main_view': True}</field>
|
|
||||||
</record>
|
|
||||||
|
|
||||||
<menuitem id="res_partner_phone_menu" action="res_partner_phone_action"
|
|
||||||
parent="contacts.menu_contacts" sequence="10"/>
|
|
||||||
|
|
||||||
<record id="contacts.res_partner_menu_config" model="ir.ui.menu">
|
|
||||||
<field name="sequence">20</field>
|
|
||||||
</record>
|
|
||||||
|
|
||||||
</odoo>
|
|
||||||
@@ -22,9 +22,40 @@
|
|||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
|
|
||||||
|
<!-- show name and ref in separate columns -->
|
||||||
|
<!-- ref is added in tree view by base_usability with optional="hide"
|
||||||
|
<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">
|
||||||
|
<field name="display_name" position="after">
|
||||||
|
<field name="name"/>
|
||||||
|
<field name="ref" optional="hide"/>
|
||||||
|
</field>
|
||||||
|
<field name="display_name" position="attributes">
|
||||||
|
<attribute name="invisible">1</attribute>
|
||||||
|
</field>
|
||||||
|
</field>
|
||||||
|
</record>
|
||||||
|
-->
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
Tree view: ref is added by base_usability with optional="hide"
|
The kanban view displays the field 'display_name', which has the [ref]
|
||||||
Kanban view: it displays the field 'display_name', which has the [ref] prefix
|
prefix, so no need to add to the view
|
||||||
|
<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>
|
||||||
-->
|
-->
|
||||||
|
|
||||||
</odoo>
|
</odoo>
|
||||||
|
|||||||
@@ -4,10 +4,10 @@
|
|||||||
#
|
#
|
||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Odoo Server 16.0\n"
|
"Project-Id-Version: Odoo Server 14.0\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2024-07-04 13:46+0000\n"
|
"POT-Creation-Date: 2021-07-01 10:02+0000\n"
|
||||||
"PO-Revision-Date: 2024-07-04 13:46+0000\n"
|
"PO-Revision-Date: 2021-07-01 10:02+0000\n"
|
||||||
"Last-Translator: \n"
|
"Last-Translator: \n"
|
||||||
"Language-Team: \n"
|
"Language-Team: \n"
|
||||||
"MIME-Version: 1.0\n"
|
"MIME-Version: 1.0\n"
|
||||||
@@ -15,20 +15,6 @@ msgstr ""
|
|||||||
"Content-Transfer-Encoding: \n"
|
"Content-Transfer-Encoding: \n"
|
||||||
"Plural-Forms: \n"
|
"Plural-Forms: \n"
|
||||||
|
|
||||||
#. module: base_usability
|
|
||||||
#. odoo-python
|
|
||||||
#: code:addons/base_usability/models/res_company.py:0
|
|
||||||
#, python-format
|
|
||||||
msgid "%s with a capital of"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#. module: base_usability
|
|
||||||
#. odoo-python
|
|
||||||
#: code:addons/base_usability/models/res_company.py:0
|
|
||||||
#, python-format
|
|
||||||
msgid "APE:"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#. module: base_usability
|
#. module: base_usability
|
||||||
#: model:ir.model,name:base_usability.model_res_partner_bank
|
#: model:ir.model,name:base_usability.model_res_partner_bank
|
||||||
msgid "Bank Accounts"
|
msgid "Bank Accounts"
|
||||||
@@ -39,23 +25,11 @@ msgstr ""
|
|||||||
msgid "Bank Name"
|
msgid "Bank Name"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. module: base_usability
|
|
||||||
#. odoo-python
|
|
||||||
#: code:addons/base_usability/models/res_company.py:0
|
|
||||||
#, python-format
|
|
||||||
msgid "Capital:"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#. module: base_usability
|
#. module: base_usability
|
||||||
#: model:ir.model,name:base_usability.model_res_company
|
#: model:ir.model,name:base_usability.model_res_company
|
||||||
msgid "Companies"
|
msgid "Companies"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. module: base_usability
|
|
||||||
#: model_terms:ir.ui.view,arch_db:base_usability.ir_property_view_search
|
|
||||||
msgid "Company"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#. module: base_usability
|
#. module: base_usability
|
||||||
#: model:ir.model,name:base_usability.model_res_partner
|
#: model:ir.model,name:base_usability.model_res_partner
|
||||||
msgid "Contact"
|
msgid "Contact"
|
||||||
@@ -67,7 +41,6 @@ msgid "Currency"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. module: base_usability
|
#. module: base_usability
|
||||||
#. odoo-python
|
|
||||||
#: code:addons/base_usability/models/res_partner.py:0
|
#: code:addons/base_usability/models/res_partner.py:0
|
||||||
#: code:addons/base_usability/models/res_partner.py:0
|
#: code:addons/base_usability/models/res_partner.py:0
|
||||||
#, python-format
|
#, python-format
|
||||||
@@ -75,38 +48,37 @@ msgid "Customer Number:"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. module: base_usability
|
#. module: base_usability
|
||||||
#. odoo-python
|
#: model:ir.model.fields,field_description:base_usability.field_ir_mail_server__display_name
|
||||||
|
#: model:ir.model.fields,field_description:base_usability.field_ir_model__display_name
|
||||||
|
#: model:ir.model.fields,field_description:base_usability.field_res_company__display_name
|
||||||
|
#: model:ir.model.fields,field_description:base_usability.field_res_partner__display_name
|
||||||
|
#: model:ir.model.fields,field_description:base_usability.field_res_partner_bank__display_name
|
||||||
|
#: model:ir.model.fields,field_description:base_usability.field_res_partner_category__display_name
|
||||||
|
#: model:ir.model.fields,field_description:base_usability.field_res_users__display_name
|
||||||
|
msgid "Display Name"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: base_usability
|
||||||
#: code:addons/base_usability/models/res_company.py:0
|
#: code:addons/base_usability/models/res_company.py:0
|
||||||
#: code:addons/base_usability/models/res_partner.py:0
|
#: code:addons/base_usability/models/res_partner.py:0
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid "E-mail:"
|
msgid "E-mail:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. module: base_usability
|
|
||||||
#. odoo-python
|
|
||||||
#: code:addons/base_usability/models/res_company.py:0
|
|
||||||
#, python-format
|
|
||||||
msgid "EORI:"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#. module: base_usability
|
|
||||||
#: model_terms:ir.ui.view,arch_db:base_usability.ir_property_view_search
|
|
||||||
msgid "Field"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#. module: base_usability
|
|
||||||
#: model:ir.model,name:base_usability.model_ir_model_fields
|
|
||||||
msgid "Fields"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#. module: base_usability
|
#. module: base_usability
|
||||||
#: model_terms:ir.ui.view,arch_db:base_usability.res_country_search
|
#: model_terms:ir.ui.view,arch_db:base_usability.res_country_search
|
||||||
msgid "Group By"
|
msgid "Group By"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. module: base_usability
|
#. module: base_usability
|
||||||
#: model_terms:ir.ui.view,arch_db:base_usability.view_res_partner_filter
|
#: model:ir.model.fields,field_description:base_usability.field_ir_mail_server__id
|
||||||
msgid "Industry"
|
#: model:ir.model.fields,field_description:base_usability.field_ir_model__id
|
||||||
|
#: model:ir.model.fields,field_description:base_usability.field_res_company__id
|
||||||
|
#: model:ir.model.fields,field_description:base_usability.field_res_partner__id
|
||||||
|
#: model:ir.model.fields,field_description:base_usability.field_res_partner_bank__id
|
||||||
|
#: model:ir.model.fields,field_description:base_usability.field_res_partner_category__id
|
||||||
|
#: model:ir.model.fields,field_description:base_usability.field_res_users__id
|
||||||
|
msgid "ID"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. module: base_usability
|
#. module: base_usability
|
||||||
@@ -114,13 +86,23 @@ msgstr ""
|
|||||||
msgid "Installable"
|
msgid "Installable"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: base_usability
|
||||||
|
#: model:ir.model.fields,field_description:base_usability.field_ir_mail_server____last_update
|
||||||
|
#: model:ir.model.fields,field_description:base_usability.field_ir_model____last_update
|
||||||
|
#: model:ir.model.fields,field_description:base_usability.field_res_company____last_update
|
||||||
|
#: model:ir.model.fields,field_description:base_usability.field_res_partner____last_update
|
||||||
|
#: model:ir.model.fields,field_description:base_usability.field_res_partner_bank____last_update
|
||||||
|
#: model:ir.model.fields,field_description:base_usability.field_res_partner_category____last_update
|
||||||
|
#: model:ir.model.fields,field_description:base_usability.field_res_users____last_update
|
||||||
|
msgid "Last Modified on"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#. module: base_usability
|
#. module: base_usability
|
||||||
#: model:ir.model,name:base_usability.model_ir_mail_server
|
#: model:ir.model,name:base_usability.model_ir_mail_server
|
||||||
msgid "Mail Server"
|
msgid "Mail Server"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. module: base_usability
|
#. module: base_usability
|
||||||
#. odoo-python
|
|
||||||
#: code:addons/base_usability/models/res_partner.py:0
|
#: code:addons/base_usability/models/res_partner.py:0
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid "Mobile:"
|
msgid "Mobile:"
|
||||||
@@ -138,7 +120,7 @@ msgstr ""
|
|||||||
|
|
||||||
#. module: base_usability
|
#. module: base_usability
|
||||||
#: model_terms:ir.ui.view,arch_db:base_usability.view_res_partner_filter
|
#: model_terms:ir.ui.view,arch_db:base_usability.view_res_partner_filter
|
||||||
msgid "Name or Email or VAT or Reference"
|
msgid "Name or Email or Reference"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. module: base_usability
|
#. module: base_usability
|
||||||
@@ -152,6 +134,11 @@ msgstr ""
|
|||||||
msgid "Nobody (used to hide native menus)"
|
msgid "Nobody (used to hide native menus)"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: base_usability
|
||||||
|
#: model:ir.model,name:base_usability.model_res_partner_category
|
||||||
|
msgid "Partner Tags"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#. module: base_usability
|
#. module: base_usability
|
||||||
#: model:ir.model.fields,field_description:base_usability.field_res_partner__ref
|
#: model:ir.model.fields,field_description:base_usability.field_res_partner__ref
|
||||||
#: model:ir.model.fields,field_description:base_usability.field_res_users__ref
|
#: model:ir.model.fields,field_description:base_usability.field_res_users__ref
|
||||||
@@ -159,21 +146,11 @@ msgid "Reference"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. module: base_usability
|
#. module: base_usability
|
||||||
#. odoo-python
|
#: model_terms:ir.ui.view,arch_db:base_usability.res_country_search
|
||||||
#: code:addons/base_usability/models/res_company.py:0
|
msgid "Search Countries"
|
||||||
#, python-format
|
|
||||||
msgid "SIREN:"
|
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. module: base_usability
|
#. module: base_usability
|
||||||
#. odoo-python
|
|
||||||
#: code:addons/base_usability/models/res_company.py:0
|
|
||||||
#, python-format
|
|
||||||
msgid "SIRET:"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#. module: base_usability
|
|
||||||
#. odoo-python
|
|
||||||
#: code:addons/base_usability/models/res_partner.py:0
|
#: code:addons/base_usability/models/res_partner.py:0
|
||||||
#: code:addons/base_usability/models/res_partner.py:0
|
#: code:addons/base_usability/models/res_partner.py:0
|
||||||
#, python-format
|
#, python-format
|
||||||
@@ -181,7 +158,11 @@ msgid "Supplier Number:"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. module: base_usability
|
#. module: base_usability
|
||||||
#. odoo-python
|
#: model:ir.model.fields,field_description:base_usability.field_res_partner_category__name
|
||||||
|
msgid "Tag Name"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: base_usability
|
||||||
#: code:addons/base_usability/models/res_company.py:0
|
#: code:addons/base_usability/models/res_company.py:0
|
||||||
#: code:addons/base_usability/models/res_partner.py:0
|
#: code:addons/base_usability/models/res_partner.py:0
|
||||||
#, python-format
|
#, python-format
|
||||||
@@ -190,25 +171,22 @@ msgstr ""
|
|||||||
|
|
||||||
#. module: base_usability
|
#. module: base_usability
|
||||||
#: model:ir.model,name:base_usability.model_res_users
|
#: model:ir.model,name:base_usability.model_res_users
|
||||||
msgid "User"
|
msgid "Users"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. module: base_usability
|
#. module: base_usability
|
||||||
#. odoo-python
|
|
||||||
#: code:addons/base_usability/models/res_partner.py:0
|
#: code:addons/base_usability/models/res_partner.py:0
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid "VAT Number:"
|
msgid "VAT Number:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. module: base_usability
|
#. module: base_usability
|
||||||
#. odoo-python
|
|
||||||
#: code:addons/base_usability/models/res_company.py:0
|
#: code:addons/base_usability/models/res_company.py:0
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid "VAT:"
|
msgid "VAT:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. module: base_usability
|
#. module: base_usability
|
||||||
#. odoo-python
|
|
||||||
#: code:addons/base_usability/models/res_company.py:0
|
#: code:addons/base_usability/models/res_company.py:0
|
||||||
#: code:addons/base_usability/models/res_partner.py:0
|
#: code:addons/base_usability/models/res_partner.py:0
|
||||||
#, python-format
|
#, python-format
|
||||||
|
|||||||
@@ -4,31 +4,17 @@
|
|||||||
#
|
#
|
||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Odoo Server 16.0\n"
|
"Project-Id-Version: Odoo Server 14.0\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2024-07-04 13:47+0000\n"
|
"POT-Creation-Date: 2021-07-01 10:02+0000\n"
|
||||||
"PO-Revision-Date: 2024-07-04 13:47+0000\n"
|
"PO-Revision-Date: 2021-07-01 12:15+0200\n"
|
||||||
"Last-Translator: \n"
|
"Last-Translator: Alexis de Lattre <alexis@via.ecp.fr>\n"
|
||||||
"Language-Team: \n"
|
"Language-Team: \n"
|
||||||
"MIME-Version: 1.0\n"
|
"MIME-Version: 1.0\n"
|
||||||
"Content-Type: text/plain; charset=UTF-8\n"
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
"Content-Transfer-Encoding: \n"
|
"Content-Transfer-Encoding: \n"
|
||||||
"Plural-Forms: \n"
|
"Plural-Forms: \n"
|
||||||
|
|
||||||
#. module: base_usability
|
|
||||||
#. odoo-python
|
|
||||||
#: code:addons/base_usability/models/res_company.py:0
|
|
||||||
#, python-format
|
|
||||||
msgid "%s with a capital of"
|
|
||||||
msgstr "%s au capital de"
|
|
||||||
|
|
||||||
#. module: base_usability
|
|
||||||
#. odoo-python
|
|
||||||
#: code:addons/base_usability/models/res_company.py:0
|
|
||||||
#, python-format
|
|
||||||
msgid "APE:"
|
|
||||||
msgstr "APE :"
|
|
||||||
|
|
||||||
#. module: base_usability
|
#. module: base_usability
|
||||||
#: model:ir.model,name:base_usability.model_res_partner_bank
|
#: model:ir.model,name:base_usability.model_res_partner_bank
|
||||||
msgid "Bank Accounts"
|
msgid "Bank Accounts"
|
||||||
@@ -39,27 +25,15 @@ msgstr "Comptes bancaires"
|
|||||||
msgid "Bank Name"
|
msgid "Bank Name"
|
||||||
msgstr "Nom de la banque"
|
msgstr "Nom de la banque"
|
||||||
|
|
||||||
#. module: base_usability
|
|
||||||
#. odoo-python
|
|
||||||
#: code:addons/base_usability/models/res_company.py:0
|
|
||||||
#, python-format
|
|
||||||
msgid "Capital:"
|
|
||||||
msgstr "Capital :"
|
|
||||||
|
|
||||||
#. module: base_usability
|
#. module: base_usability
|
||||||
#: model:ir.model,name:base_usability.model_res_company
|
#: model:ir.model,name:base_usability.model_res_company
|
||||||
msgid "Companies"
|
msgid "Companies"
|
||||||
msgstr "Sociétés"
|
msgstr "Sociétés"
|
||||||
|
|
||||||
#. module: base_usability
|
|
||||||
#: model_terms:ir.ui.view,arch_db:base_usability.ir_property_view_search
|
|
||||||
msgid "Company"
|
|
||||||
msgstr "Société"
|
|
||||||
|
|
||||||
#. module: base_usability
|
#. module: base_usability
|
||||||
#: model:ir.model,name:base_usability.model_res_partner
|
#: model:ir.model,name:base_usability.model_res_partner
|
||||||
msgid "Contact"
|
msgid "Contact"
|
||||||
msgstr ""
|
msgstr "Contact"
|
||||||
|
|
||||||
#. module: base_usability
|
#. module: base_usability
|
||||||
#: model_terms:ir.ui.view,arch_db:base_usability.res_country_search
|
#: model_terms:ir.ui.view,arch_db:base_usability.res_country_search
|
||||||
@@ -67,47 +41,44 @@ msgid "Currency"
|
|||||||
msgstr "Devise"
|
msgstr "Devise"
|
||||||
|
|
||||||
#. module: base_usability
|
#. module: base_usability
|
||||||
#. odoo-python
|
|
||||||
#: code:addons/base_usability/models/res_partner.py:0
|
|
||||||
#: code:addons/base_usability/models/res_partner.py:0
|
#: code:addons/base_usability/models/res_partner.py:0
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid "Customer Number:"
|
msgid "Customer Number:"
|
||||||
msgstr "N° client :"
|
msgstr "N° client :"
|
||||||
|
|
||||||
#. module: base_usability
|
#. module: base_usability
|
||||||
#. odoo-python
|
#: model:ir.model.fields,field_description:base_usability.field_ir_mail_server__display_name
|
||||||
|
#: model:ir.model.fields,field_description:base_usability.field_ir_model__display_name
|
||||||
|
#: model:ir.model.fields,field_description:base_usability.field_res_company__display_name
|
||||||
|
#: model:ir.model.fields,field_description:base_usability.field_res_partner__display_name
|
||||||
|
#: model:ir.model.fields,field_description:base_usability.field_res_partner_bank__display_name
|
||||||
|
#: model:ir.model.fields,field_description:base_usability.field_res_partner_category__display_name
|
||||||
|
#: model:ir.model.fields,field_description:base_usability.field_res_users__display_name
|
||||||
|
msgid "Display Name"
|
||||||
|
msgstr "Nom affiché"
|
||||||
|
|
||||||
|
#. module: base_usability
|
||||||
#: code:addons/base_usability/models/res_company.py:0
|
#: code:addons/base_usability/models/res_company.py:0
|
||||||
#: code:addons/base_usability/models/res_partner.py:0
|
#: code:addons/base_usability/models/res_partner.py:0
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid "E-mail:"
|
msgid "E-mail:"
|
||||||
msgstr "E-mail :"
|
msgstr "E-mail :"
|
||||||
|
|
||||||
#. module: base_usability
|
|
||||||
#. odoo-python
|
|
||||||
#: code:addons/base_usability/models/res_company.py:0
|
|
||||||
#, python-format
|
|
||||||
msgid "EORI:"
|
|
||||||
msgstr "EORI :"
|
|
||||||
|
|
||||||
#. module: base_usability
|
|
||||||
#: model_terms:ir.ui.view,arch_db:base_usability.ir_property_view_search
|
|
||||||
msgid "Field"
|
|
||||||
msgstr "Champ"
|
|
||||||
|
|
||||||
#. module: base_usability
|
|
||||||
#: model:ir.model,name:base_usability.model_ir_model_fields
|
|
||||||
msgid "Fields"
|
|
||||||
msgstr "Champs"
|
|
||||||
|
|
||||||
#. module: base_usability
|
#. module: base_usability
|
||||||
#: model_terms:ir.ui.view,arch_db:base_usability.res_country_search
|
#: model_terms:ir.ui.view,arch_db:base_usability.res_country_search
|
||||||
msgid "Group By"
|
msgid "Group By"
|
||||||
msgstr "Grouper par"
|
msgstr "Grouper par"
|
||||||
|
|
||||||
#. module: base_usability
|
#. module: base_usability
|
||||||
#: model_terms:ir.ui.view,arch_db:base_usability.view_res_partner_filter
|
#: model:ir.model.fields,field_description:base_usability.field_ir_mail_server__id
|
||||||
msgid "Industry"
|
#: model:ir.model.fields,field_description:base_usability.field_ir_model__id
|
||||||
msgstr "Industrie"
|
#: model:ir.model.fields,field_description:base_usability.field_res_company__id
|
||||||
|
#: model:ir.model.fields,field_description:base_usability.field_res_partner__id
|
||||||
|
#: model:ir.model.fields,field_description:base_usability.field_res_partner_bank__id
|
||||||
|
#: model:ir.model.fields,field_description:base_usability.field_res_partner_category__id
|
||||||
|
#: model:ir.model.fields,field_description:base_usability.field_res_users__id
|
||||||
|
msgid "ID"
|
||||||
|
msgstr "ID"
|
||||||
|
|
||||||
#. module: base_usability
|
#. module: base_usability
|
||||||
#: model_terms:ir.ui.view,arch_db:base_usability.view_module_filter
|
#: model_terms:ir.ui.view,arch_db:base_usability.view_module_filter
|
||||||
@@ -115,12 +86,22 @@ msgid "Installable"
|
|||||||
msgstr "Installable"
|
msgstr "Installable"
|
||||||
|
|
||||||
#. module: base_usability
|
#. module: base_usability
|
||||||
#: model:ir.model,name:base_usability.model_ir_mail_server
|
#: model:ir.model.fields,field_description:base_usability.field_ir_mail_server____last_update
|
||||||
msgid "Mail Server"
|
#: model:ir.model.fields,field_description:base_usability.field_ir_model____last_update
|
||||||
msgstr "Serveur de messagerie"
|
#: model:ir.model.fields,field_description:base_usability.field_res_company____last_update
|
||||||
|
#: model:ir.model.fields,field_description:base_usability.field_res_partner____last_update
|
||||||
|
#: model:ir.model.fields,field_description:base_usability.field_res_partner_bank____last_update
|
||||||
|
#: model:ir.model.fields,field_description:base_usability.field_res_partner_category____last_update
|
||||||
|
#: model:ir.model.fields,field_description:base_usability.field_res_users____last_update
|
||||||
|
msgid "Last Modified on"
|
||||||
|
msgstr "Dernière modification le"
|
||||||
|
|
||||||
|
#. module: base_usability
|
||||||
|
#: model:ir.model,name:base_usability.model_ir_mail_server
|
||||||
|
msgid "Mail Server"
|
||||||
|
msgstr "Serveur mail"
|
||||||
|
|
||||||
#. module: base_usability
|
#. module: base_usability
|
||||||
#. odoo-python
|
|
||||||
#: code:addons/base_usability/models/res_partner.py:0
|
#: code:addons/base_usability/models/res_partner.py:0
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid "Mobile:"
|
msgid "Mobile:"
|
||||||
@@ -138,8 +119,8 @@ msgstr "Nom ou code"
|
|||||||
|
|
||||||
#. module: base_usability
|
#. module: base_usability
|
||||||
#: model_terms:ir.ui.view,arch_db:base_usability.view_res_partner_filter
|
#: model_terms:ir.ui.view,arch_db:base_usability.view_res_partner_filter
|
||||||
msgid "Name or Email or VAT or Reference"
|
msgid "Name or Email or Reference"
|
||||||
msgstr "Nom ou e-mail ou n°TVA ou référence"
|
msgstr "Nom ou e-mail ou référence"
|
||||||
|
|
||||||
#. module: base_usability
|
#. module: base_usability
|
||||||
#: model:ir.model.fields,field_description:base_usability.field_res_partner__name_title
|
#: model:ir.model.fields,field_description:base_usability.field_res_partner__name_title
|
||||||
@@ -152,6 +133,11 @@ msgstr "Nom avec titre"
|
|||||||
msgid "Nobody (used to hide native menus)"
|
msgid "Nobody (used to hide native menus)"
|
||||||
msgstr "Personne (utilisé pour cacher des entrées de menu natifs)"
|
msgstr "Personne (utilisé pour cacher des entrées de menu natifs)"
|
||||||
|
|
||||||
|
#. module: base_usability
|
||||||
|
#: model:ir.model,name:base_usability.model_res_partner_category
|
||||||
|
msgid "Partner Tags"
|
||||||
|
msgstr "Étiquettes du partenaire"
|
||||||
|
|
||||||
#. module: base_usability
|
#. module: base_usability
|
||||||
#: model:ir.model.fields,field_description:base_usability.field_res_partner__ref
|
#: model:ir.model.fields,field_description:base_usability.field_res_partner__ref
|
||||||
#: model:ir.model.fields,field_description:base_usability.field_res_users__ref
|
#: model:ir.model.fields,field_description:base_usability.field_res_users__ref
|
||||||
@@ -159,29 +145,22 @@ msgid "Reference"
|
|||||||
msgstr "Référence"
|
msgstr "Référence"
|
||||||
|
|
||||||
#. module: base_usability
|
#. module: base_usability
|
||||||
#. odoo-python
|
#: model_terms:ir.ui.view,arch_db:base_usability.res_country_search
|
||||||
#: code:addons/base_usability/models/res_company.py:0
|
msgid "Search Countries"
|
||||||
#, python-format
|
msgstr ""
|
||||||
msgid "SIREN:"
|
|
||||||
msgstr "SIREN :"
|
|
||||||
|
|
||||||
#. module: base_usability
|
#. module: base_usability
|
||||||
#. odoo-python
|
|
||||||
#: code:addons/base_usability/models/res_company.py:0
|
|
||||||
#, python-format
|
|
||||||
msgid "SIRET:"
|
|
||||||
msgstr "SIRET :"
|
|
||||||
|
|
||||||
#. module: base_usability
|
|
||||||
#. odoo-python
|
|
||||||
#: code:addons/base_usability/models/res_partner.py:0
|
|
||||||
#: code:addons/base_usability/models/res_partner.py:0
|
#: code:addons/base_usability/models/res_partner.py:0
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid "Supplier Number:"
|
msgid "Supplier Number:"
|
||||||
msgstr "N° fournisseur :"
|
msgstr "N° fournisseur :"
|
||||||
|
|
||||||
#. module: base_usability
|
#. module: base_usability
|
||||||
#. odoo-python
|
#: model:ir.model.fields,field_description:base_usability.field_res_partner_category__name
|
||||||
|
msgid "Tag Name"
|
||||||
|
msgstr "Nom de l'étiquette"
|
||||||
|
|
||||||
|
#. module: base_usability
|
||||||
#: code:addons/base_usability/models/res_company.py:0
|
#: code:addons/base_usability/models/res_company.py:0
|
||||||
#: code:addons/base_usability/models/res_partner.py:0
|
#: code:addons/base_usability/models/res_partner.py:0
|
||||||
#, python-format
|
#, python-format
|
||||||
@@ -190,25 +169,22 @@ msgstr "Tél :"
|
|||||||
|
|
||||||
#. module: base_usability
|
#. module: base_usability
|
||||||
#: model:ir.model,name:base_usability.model_res_users
|
#: model:ir.model,name:base_usability.model_res_users
|
||||||
msgid "User"
|
msgid "Users"
|
||||||
msgstr "Utilisateur"
|
msgstr "Utilisateurs"
|
||||||
|
|
||||||
#. module: base_usability
|
#. module: base_usability
|
||||||
#. odoo-python
|
|
||||||
#: code:addons/base_usability/models/res_partner.py:0
|
#: code:addons/base_usability/models/res_partner.py:0
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid "VAT Number:"
|
msgid "VAT Number:"
|
||||||
msgstr "N° TVA :"
|
msgstr "N° TVA :"
|
||||||
|
|
||||||
#. module: base_usability
|
#. module: base_usability
|
||||||
#. odoo-python
|
|
||||||
#: code:addons/base_usability/models/res_company.py:0
|
#: code:addons/base_usability/models/res_company.py:0
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid "VAT:"
|
msgid "VAT:"
|
||||||
msgstr "TVA :"
|
msgstr "TVA :"
|
||||||
|
|
||||||
#. module: base_usability
|
#. module: base_usability
|
||||||
#. odoo-python
|
|
||||||
#: code:addons/base_usability/models/res_company.py:0
|
#: code:addons/base_usability/models/res_company.py:0
|
||||||
#: code:addons/base_usability/models/res_partner.py:0
|
#: code:addons/base_usability/models/res_partner.py:0
|
||||||
#, python-format
|
#, python-format
|
||||||
|
|||||||
@@ -4,4 +4,3 @@ from . import res_partner_bank
|
|||||||
from . import res_company
|
from . import res_company
|
||||||
from . import ir_mail_server
|
from . import ir_mail_server
|
||||||
from . import ir_model
|
from . import ir_model
|
||||||
from . import ir_model_fields
|
|
||||||
|
|||||||
@@ -1,16 +0,0 @@
|
|||||||
# Copyright 2024 Akretion France (http://www.akretion.com/)
|
|
||||||
# @author: Alexis de Lattre <alexis.delattre@akretion.com>
|
|
||||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
|
||||||
|
|
||||||
from odoo import api, models
|
|
||||||
|
|
||||||
|
|
||||||
class IrModelFields(models.Model):
|
|
||||||
_inherit = 'ir.model.fields'
|
|
||||||
|
|
||||||
@api.depends('name', 'field_description')
|
|
||||||
def name_get(self):
|
|
||||||
res = []
|
|
||||||
for rec in self:
|
|
||||||
res.append((rec.id, '%s (%s)' % (rec.field_description, rec.name)))
|
|
||||||
return res
|
|
||||||
@@ -3,7 +3,6 @@
|
|||||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||||
|
|
||||||
from odoo import api, models, _
|
from odoo import api, models, _
|
||||||
from odoo.tools.misc import format_amount
|
|
||||||
|
|
||||||
|
|
||||||
class ResCompany(models.Model):
|
class ResCompany(models.Model):
|
||||||
@@ -40,88 +39,32 @@ class ResCompany(models.Model):
|
|||||||
'value': self.phone,
|
'value': self.phone,
|
||||||
# http://www.fileformat.info/info/unicode/char/1f4de/index.htm
|
# http://www.fileformat.info/info/unicode/char/1f4de/index.htm
|
||||||
'icon': '\U0001F4DE',
|
'icon': '\U0001F4DE',
|
||||||
'label': _('Tel:'),
|
'label': _('Tel:')},
|
||||||
},
|
|
||||||
'email': {
|
'email': {
|
||||||
'value': self.email,
|
'value': self.email,
|
||||||
# http://www.fileformat.info/info/unicode/char/2709/index.htm
|
# http://www.fileformat.info/info/unicode/char/2709/index.htm
|
||||||
'icon': '\u2709',
|
'icon': '\u2709',
|
||||||
'label': _('E-mail:'),
|
'label': _('E-mail:')},
|
||||||
},
|
|
||||||
'website': {
|
'website': {
|
||||||
'value': self.website,
|
'value': self.website,
|
||||||
'icon': '\U0001f310',
|
'icon': '\U0001f310',
|
||||||
'label': _('Website:'),
|
'label': _('Website:')},
|
||||||
},
|
|
||||||
'vat': {
|
'vat': {
|
||||||
'value': self.vat,
|
'value': self.vat,
|
||||||
'label': _('VAT:'),
|
'label': _('VAT:')},
|
||||||
},
|
|
||||||
'ape': {
|
|
||||||
'value': hasattr(self, 'ape') and self.ape or False,
|
|
||||||
'label': _('APE:'),
|
|
||||||
},
|
|
||||||
'siret': {
|
|
||||||
'value': hasattr(self, 'siret') and self.siret or False,
|
|
||||||
'label': _('SIRET:'),
|
|
||||||
},
|
|
||||||
'siren': {
|
|
||||||
'value': hasattr(self, 'siren') and self.siren or False,
|
|
||||||
'label': _('SIREN:'),
|
|
||||||
},
|
|
||||||
'rcs_siren': {
|
|
||||||
'value': hasattr(self, 'siren') and self.siren and self.company_registry and f"{self.company_registry} {self.siren}",
|
|
||||||
'label': 'RCS',
|
|
||||||
},
|
|
||||||
'eori': {
|
|
||||||
'value': self._get_eori(),
|
|
||||||
'label': _('EORI:'),
|
|
||||||
},
|
|
||||||
'capital': {
|
|
||||||
# 'capital_amount' added by base_company_extension
|
|
||||||
'value': hasattr(self, 'capital_amount') and self.capital_amount and format_amount(self.env, self.capital_amount, self.currency_id) or False,
|
|
||||||
'label': _('Capital:'),
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
# 'legal_type' added by base_company_extension
|
|
||||||
if hasattr(self, 'legal_type') and self.legal_type:
|
|
||||||
options['capital']['label'] = _('%s with a capital of') % self.legal_type
|
|
||||||
# 'fax' added by OCA/partner-contact module 'partner_fax'
|
|
||||||
if hasattr(self.partner_id, 'fax'):
|
|
||||||
options['fax'] = {
|
|
||||||
'value': self.partner_id.fax or False,
|
|
||||||
'icon': '\U0001F5B7',
|
|
||||||
'label': _('Fax:'),
|
|
||||||
}
|
|
||||||
return options
|
return options
|
||||||
|
|
||||||
def _get_eori(self):
|
|
||||||
eori = False
|
|
||||||
if self.partner_id.country_id.code == 'FR' and hasattr(self, 'siret') and self.siret:
|
|
||||||
# Currently migrating from EORI-SIRET to EORI-SIREN :
|
|
||||||
# https://www.pwcavocats.com/fr/ealertes/ealertes-france/2023/avril/reforme-numero-eori-siren-siret.html
|
|
||||||
# But, for the moment, we continue to use EORI-SIRET
|
|
||||||
eori = f'FR{self.siret}'
|
|
||||||
return eori
|
|
||||||
|
|
||||||
def _report_company_legal_name(self):
|
def _report_company_legal_name(self):
|
||||||
'''Method inherited in the module base_company_extension'''
|
'''Method inherited in the module base_company_extension'''
|
||||||
self.ensure_one()
|
self.ensure_one()
|
||||||
return self.name
|
return self.name
|
||||||
|
|
||||||
def _report_header_line_details(self):
|
|
||||||
"""This method is designed to be inherited"""
|
|
||||||
# I decided not to put email in the default header because only a few very small
|
|
||||||
# companies have a generic company email address
|
|
||||||
line_details = [['phone', 'website', 'rcs_siren', 'capital'], ['vat', 'siret', 'eori', 'ape']]
|
|
||||||
return line_details
|
|
||||||
|
|
||||||
# for reports
|
# for reports
|
||||||
def _display_report_header(
|
def _display_report_header(
|
||||||
self, line_details=None, icon=True, line_separator=' - '):
|
self, line_details=[['phone', 'website'], ['vat']],
|
||||||
|
icon=True, line_separator=' - '):
|
||||||
self.ensure_one()
|
self.ensure_one()
|
||||||
if line_details is None:
|
|
||||||
line_details = self._report_header_line_details()
|
|
||||||
res = ''
|
res = ''
|
||||||
address = self.partner_id._display_address(without_company=True)
|
address = self.partner_id._display_address(without_company=True)
|
||||||
address = address.replace('\n', ' - ')
|
address = address.replace('\n', ' - ')
|
||||||
|
|||||||
@@ -45,11 +45,6 @@
|
|||||||
<field name="phone" position="after">
|
<field name="phone" position="after">
|
||||||
<field name="mobile" optional="show" widget="phone" class="o_force_ltr"/>
|
<field name="mobile" optional="show" widget="phone" class="o_force_ltr"/>
|
||||||
</field>
|
</field>
|
||||||
<field name="city" position="before">
|
|
||||||
<field name="street" optional="hide"/>
|
|
||||||
<field name="street2" optional="hide"/>
|
|
||||||
<field name="zip" optional="hide"/>
|
|
||||||
</field>
|
|
||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
|
|
||||||
@@ -63,9 +58,6 @@
|
|||||||
<!-- for 'ref', change '=' to 'start with' -->
|
<!-- for 'ref', change '=' to 'start with' -->
|
||||||
<attribute name="filter_domain">['|', '|', '|', '|', ('display_name', 'ilike', self), ('ref', '=ilike', self + '%'), ('email', 'ilike', self), ('vat', 'ilike', self), ('company_registry', 'ilike', self)]</attribute>
|
<attribute name="filter_domain">['|', '|', '|', '|', ('display_name', 'ilike', self), ('ref', '=ilike', self + '%'), ('email', 'ilike', self), ('vat', 'ilike', self), ('company_registry', 'ilike', self)]</attribute>
|
||||||
</field>
|
</field>
|
||||||
<group name="group_by" position="inside">
|
|
||||||
<filter name="group_industry" string="Industry" context="{'group_by': 'industry_id'}"/>
|
|
||||||
</group>
|
|
||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
|
|
||||||
|
|||||||
@@ -1,24 +0,0 @@
|
|||||||
diff --git a/addons/web/static/src/search/filter_menu/custom_filter_item.js b/addons/web/static/src/search/filter_menu/custom_filter_item.js
|
|
||||||
index f67f5fb40af..22525b7cbfd 100644
|
|
||||||
--- a/addons/web/static/src/search/filter_menu/custom_filter_item.js
|
|
||||||
+++ b/addons/web/static/src/search/filter_menu/custom_filter_item.js
|
|
||||||
@@ -46,6 +46,8 @@ const FIELD_OPERATORS = {
|
|
||||||
char: [
|
|
||||||
{ symbol: "ilike", description: _lt("contains") },
|
|
||||||
{ symbol: "not ilike", description: _lt("doesn't contain") },
|
|
||||||
+ { symbol: "startswith", description: _lt("starts with") },
|
|
||||||
+ { symbol: "endswith", description: _lt("ends with") },
|
|
||||||
{ symbol: "=", description: _lt("is equal to") },
|
|
||||||
{ symbol: "!=", description: _lt("is not equal to") },
|
|
||||||
{ symbol: "!=", description: _lt("is set"), value: false },
|
|
||||||
@@ -257,6 +259,10 @@ export class CustomFilterItem extends Component {
|
|
||||||
[field.name, ">=", domainValue[0]],
|
|
||||||
[field.name, "<=", domainValue[1]]
|
|
||||||
);
|
|
||||||
+ } else if (operator.symbol === "startswith") {
|
|
||||||
+ domainArray.push([field.name, '=ilike', domainValue[0] + '%']);
|
|
||||||
+ } else if (operator.symbol === "endswith") {
|
|
||||||
+ domainArray.push([field.name, '=ilike', '%' + domainValue[0]]);
|
|
||||||
} else {
|
|
||||||
domainArray.push([field.name, operator.symbol, domainValue[0]]);
|
|
||||||
}
|
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
diff --git a/addons/web/static/src/views/form/button_box/button_box.js b/addons/web/static/src/views/form/button_box/button_box.js
|
|
||||||
index 0dd1184ca2b..43139ab6e58 100644
|
|
||||||
--- a/addons/web/static/src/views/form/button_box/button_box.js
|
|
||||||
+++ b/addons/web/static/src/views/form/button_box/button_box.js
|
|
||||||
@@ -8,7 +8,8 @@ import { Component } from "@odoo/owl";
|
|
||||||
export class ButtonBox extends Component {
|
|
||||||
setup() {
|
|
||||||
const ui = useService("ui");
|
|
||||||
- this.getMaxButtons = () => [2, 2, 2, 4][ui.size] || 7;
|
|
||||||
+ /* HACK button box on 2 lines: || 7 => || 14 */
|
|
||||||
+ this.getMaxButtons = () => [2, 2, 2, 4][ui.size] || 14;
|
|
||||||
}
|
|
||||||
|
|
||||||
getButtons() {
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
from . import models
|
|
||||||
from . import wizards
|
|
||||||
@@ -1,48 +0,0 @@
|
|||||||
# Copyright 2019-2024 Akretion France (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': 'Commission Simple',
|
|
||||||
'version': '16.0.1.0.0',
|
|
||||||
'category': 'Sales',
|
|
||||||
'license': 'AGPL-3',
|
|
||||||
'summary': 'Compute commissions for salesman',
|
|
||||||
'description': """
|
|
||||||
Commission Simple
|
|
||||||
=================
|
|
||||||
|
|
||||||
This module is a **simple** module to compute commission for salesman. From my experience, companies often use very specific methods to compute commissions and it's impossible to develop a module that can support all of them. So the goal of this module is just to have a simple base to build the company-specific commissionning system by inheriting this simple module.
|
|
||||||
|
|
||||||
Here is a short description of this module:
|
|
||||||
|
|
||||||
* create commission profiles using rules (per product category, per product, per product and customer, etc.),
|
|
||||||
* the commission rules can have a start and end date (optional),
|
|
||||||
* commissionning can happen on invoicing or on payment,
|
|
||||||
* each invoice line can only be commissionned to one salesman,
|
|
||||||
* commission reports are stored in Odoo.
|
|
||||||
|
|
||||||
This module has been written by Alexis de Lattre from Akretion
|
|
||||||
<alexis.delattre@akretion.com>.
|
|
||||||
""",
|
|
||||||
'author': 'Akretion',
|
|
||||||
'website': 'https://github.com/akretion/odoo-usability',
|
|
||||||
'depends': [
|
|
||||||
'account',
|
|
||||||
'date_range',
|
|
||||||
# this uses some related fields on account.move.line
|
|
||||||
# 'account_usability_akretion',
|
|
||||||
],
|
|
||||||
'data': [
|
|
||||||
'security/ir.model.access.csv',
|
|
||||||
'security/rule.xml',
|
|
||||||
'data/decimal_precision.xml',
|
|
||||||
'views/commission_profile.xml',
|
|
||||||
'views/commission_rule.xml',
|
|
||||||
'views/commission_result.xml',
|
|
||||||
# 'views/res_users.xml',
|
|
||||||
'views/res_config_settings.xml',
|
|
||||||
'wizards/commission_compute_view.xml',
|
|
||||||
],
|
|
||||||
'installable': True,
|
|
||||||
}
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<odoo noupdate="1">
|
|
||||||
|
|
||||||
|
|
||||||
<record forcecreate="True" id="commission_rate" model="decimal.precision">
|
|
||||||
<field name="name">Commission Rate</field>
|
|
||||||
<field name="digits">2</field>
|
|
||||||
</record>
|
|
||||||
|
|
||||||
|
|
||||||
</odoo>
|
|
||||||
@@ -1,640 +0,0 @@
|
|||||||
# Translation of Odoo Server.
|
|
||||||
# This file contains the translation of the following modules:
|
|
||||||
# * commission_simple
|
|
||||||
#
|
|
||||||
msgid ""
|
|
||||||
msgstr ""
|
|
||||||
"Project-Id-Version: Odoo Server 16.0\n"
|
|
||||||
"Report-Msgid-Bugs-To: \n"
|
|
||||||
"POT-Creation-Date: 2024-11-29 23:38+0000\n"
|
|
||||||
"PO-Revision-Date: 2024-11-29 23:38+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: commission_simple
|
|
||||||
#: model:ir.model.constraint,message:commission_simple.constraint_commission_result_salesman_period_company_unique
|
|
||||||
msgid ""
|
|
||||||
"A commission result already exists for this salesman/agent for the same "
|
|
||||||
"period."
|
|
||||||
msgstr ""
|
|
||||||
"Un état des commissions existe déjà pour ce vendeur/agent pour la même "
|
|
||||||
"période."
|
|
||||||
|
|
||||||
#. module: commission_simple
|
|
||||||
#. odoo-python
|
|
||||||
#: code:addons/commission_simple/models/commission_profile.py:0
|
|
||||||
#, python-format
|
|
||||||
msgid "A salesman must be selected when the assignment type is 'Salesman'."
|
|
||||||
msgstr ""
|
|
||||||
"Un vendeur doit être sélectionné lorsque le type d'affectation est "
|
|
||||||
"\"Vendeur\"."
|
|
||||||
|
|
||||||
#. module: commission_simple
|
|
||||||
#: model:ir.model.fields,field_description:commission_simple.field_commission_result__message_needaction
|
|
||||||
msgid "Action Needed"
|
|
||||||
msgstr "Action requise"
|
|
||||||
|
|
||||||
#. module: commission_simple
|
|
||||||
#: model:ir.model.fields,field_description:commission_simple.field_commission_profile__active
|
|
||||||
#: model:ir.model.fields,field_description:commission_simple.field_commission_rule__active
|
|
||||||
msgid "Active"
|
|
||||||
msgstr "Actif"
|
|
||||||
|
|
||||||
#. module: commission_simple
|
|
||||||
#: model:ir.model.fields,field_description:commission_simple.field_commission_result__activity_ids
|
|
||||||
msgid "Activities"
|
|
||||||
msgstr "Activités"
|
|
||||||
|
|
||||||
#. module: commission_simple
|
|
||||||
#: model:ir.model.fields,field_description:commission_simple.field_commission_result__activity_exception_decoration
|
|
||||||
msgid "Activity Exception Decoration"
|
|
||||||
msgstr "Style d'affichage de l'activité-alerte"
|
|
||||||
|
|
||||||
#. module: commission_simple
|
|
||||||
#: model:ir.model.fields,field_description:commission_simple.field_commission_result__activity_state
|
|
||||||
msgid "Activity State"
|
|
||||||
msgstr "État de l'activité"
|
|
||||||
|
|
||||||
#. module: commission_simple
|
|
||||||
#: model:ir.model.fields,field_description:commission_simple.field_commission_result__activity_type_icon
|
|
||||||
msgid "Activity Type Icon"
|
|
||||||
msgstr "Îcone du type d'activité"
|
|
||||||
|
|
||||||
#. module: commission_simple
|
|
||||||
#: model:ir.model.fields,field_description:commission_simple.field_commission_rule__applied_on
|
|
||||||
msgid "Apply On"
|
|
||||||
msgstr "Conditions"
|
|
||||||
|
|
||||||
#. module: commission_simple
|
|
||||||
#: model_terms:ir.ui.view,arch_db:commission_simple.commission_profile_form
|
|
||||||
#: model_terms:ir.ui.view,arch_db:commission_simple.commission_rule_search
|
|
||||||
msgid "Archived"
|
|
||||||
msgstr "Archivé"
|
|
||||||
|
|
||||||
#. module: commission_simple
|
|
||||||
#: model_terms:ir.ui.view,arch_db:commission_simple.commission_result_form
|
|
||||||
msgid "Are you sure you want to go back to draft?"
|
|
||||||
msgstr "Êtes-vous sûr de vouloir revenir à l'état brouillon ?"
|
|
||||||
|
|
||||||
#. module: commission_simple
|
|
||||||
#: model:ir.model.fields,field_description:commission_simple.field_commission_result__assign_type
|
|
||||||
#: model_terms:ir.ui.view,arch_db:commission_simple.commission_result_search
|
|
||||||
msgid "Assign Type"
|
|
||||||
msgstr "Type d'affectation"
|
|
||||||
|
|
||||||
#. module: commission_simple
|
|
||||||
#: model:ir.model.fields,field_description:commission_simple.field_commission_profile__assign_ids
|
|
||||||
#: model_terms:ir.ui.view,arch_db:commission_simple.commission_profile_form
|
|
||||||
msgid "Assignments"
|
|
||||||
msgstr "Assignations"
|
|
||||||
|
|
||||||
#. module: commission_simple
|
|
||||||
#: model:ir.model.fields,field_description:commission_simple.field_commission_result__message_attachment_count
|
|
||||||
msgid "Attachment Count"
|
|
||||||
msgstr "Nombre de pièces jointes"
|
|
||||||
|
|
||||||
#. module: commission_simple
|
|
||||||
#: model_terms:ir.ui.view,arch_db:commission_simple.commission_result_form
|
|
||||||
msgid "Back to Draft"
|
|
||||||
msgstr "Remettre en brouillon"
|
|
||||||
|
|
||||||
#. module: commission_simple
|
|
||||||
#: model_terms:ir.ui.view,arch_db:commission_simple.commission_compute_form
|
|
||||||
msgid "Cancel"
|
|
||||||
msgstr "Annuler"
|
|
||||||
|
|
||||||
#. module: commission_simple
|
|
||||||
#: model:ir.model.fields,field_description:commission_simple.field_account_move_line__commission_amount
|
|
||||||
msgid "Commission Amount"
|
|
||||||
msgstr "Montant de la commission"
|
|
||||||
|
|
||||||
#. module: commission_simple
|
|
||||||
#: model:ir.model.fields,field_description:commission_simple.field_account_move_line__commission_base
|
|
||||||
#: model:ir.model.fields,field_description:commission_simple.field_commission_rule__base
|
|
||||||
msgid "Commission Base"
|
|
||||||
msgstr "Base de la commission"
|
|
||||||
|
|
||||||
#. module: commission_simple
|
|
||||||
#: model:ir.model.fields,field_description:commission_simple.field_commission_result__line_ids
|
|
||||||
#: model_terms:ir.ui.view,arch_db:commission_simple.commission_result_form
|
|
||||||
msgid "Commission Lines"
|
|
||||||
msgstr "Lignes commission"
|
|
||||||
|
|
||||||
#. module: commission_simple
|
|
||||||
#: model:ir.model.fields,field_description:commission_simple.field_commission_compute__date_range_type_id
|
|
||||||
#: model:ir.model.fields,field_description:commission_simple.field_res_company__commission_date_range_type_id
|
|
||||||
#: model:ir.model.fields,field_description:commission_simple.field_res_config_settings__commission_date_range_type_id
|
|
||||||
msgid "Commission Periodicity"
|
|
||||||
msgstr "Périodicité de commission"
|
|
||||||
|
|
||||||
#. module: commission_simple
|
|
||||||
#: model:ir.model,name:commission_simple.model_commission_profile
|
|
||||||
#: model:ir.model.fields,field_description:commission_simple.field_commission_result__profile_id
|
|
||||||
msgid "Commission Profile"
|
|
||||||
msgstr "Profil de commission"
|
|
||||||
|
|
||||||
#. module: commission_simple
|
|
||||||
#: model:ir.model,name:commission_simple.model_commission_profile_assignment
|
|
||||||
msgid "Commission Profile Assignment"
|
|
||||||
msgstr "Affectation du profil de commission"
|
|
||||||
|
|
||||||
#. module: commission_simple
|
|
||||||
#: model:ir.actions.act_window,name:commission_simple.commission_profile_action
|
|
||||||
#: model:ir.ui.menu,name:commission_simple.commission_profile_menu
|
|
||||||
msgid "Commission Profiles"
|
|
||||||
msgstr "Profils de commission"
|
|
||||||
|
|
||||||
#. module: commission_simple
|
|
||||||
#: model:ir.model.fields,field_description:commission_simple.field_account_move_line__commission_rate
|
|
||||||
#: model:ir.model.fields,field_description:commission_simple.field_commission_rule__rate
|
|
||||||
msgid "Commission Rate"
|
|
||||||
msgstr "Taux de commission"
|
|
||||||
|
|
||||||
#. module: commission_simple
|
|
||||||
#: model:ir.model,name:commission_simple.model_commission_result
|
|
||||||
#: model:ir.model.fields,field_description:commission_simple.field_account_move_line__commission_result_id
|
|
||||||
msgid "Commission Result"
|
|
||||||
msgstr "État des commissions"
|
|
||||||
|
|
||||||
#. module: commission_simple
|
|
||||||
#: model:ir.model,name:commission_simple.model_commission_rule
|
|
||||||
msgid "Commission Rule"
|
|
||||||
msgstr "Règle de commission"
|
|
||||||
|
|
||||||
#. module: commission_simple
|
|
||||||
#: model:ir.actions.act_window,name:commission_simple.commission_rule_action
|
|
||||||
#: model:ir.model.fields,field_description:commission_simple.field_commission_profile__rule_ids
|
|
||||||
#: model:ir.ui.menu,name:commission_simple.commission_rule_menu
|
|
||||||
msgid "Commission Rules"
|
|
||||||
msgstr "Règles de commission"
|
|
||||||
|
|
||||||
#. module: commission_simple
|
|
||||||
#: model:ir.model.fields,field_description:commission_simple.field_commission_result__amount_total
|
|
||||||
msgid "Commission Total"
|
|
||||||
msgstr "Total des commissions"
|
|
||||||
|
|
||||||
#. module: commission_simple
|
|
||||||
#: model:ir.actions.act_window,name:commission_simple.commission_result_action
|
|
||||||
#: model:ir.ui.menu,name:commission_simple.commission_config_root
|
|
||||||
#: model:ir.ui.menu,name:commission_simple.commission_result_menu
|
|
||||||
#: model:ir.ui.menu,name:commission_simple.commission_root
|
|
||||||
#: model_terms:ir.ui.view,arch_db:commission_simple.res_config_settings_view_form
|
|
||||||
msgid "Commissions"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#. module: commission_simple
|
|
||||||
#. odoo-python
|
|
||||||
#: code:addons/commission_simple/wizards/commission_compute.py:0
|
|
||||||
#, python-format
|
|
||||||
msgid "Commissions already exist for %(period)s in company %(company)s."
|
|
||||||
msgstr ""
|
|
||||||
"Des commissions existent déjà pour %(period)s dans la société %(company)s."
|
|
||||||
|
|
||||||
#. module: commission_simple
|
|
||||||
#: model:ir.model,name:commission_simple.model_res_company
|
|
||||||
msgid "Companies"
|
|
||||||
msgstr "Sociétés"
|
|
||||||
|
|
||||||
#. module: commission_simple
|
|
||||||
#: model:ir.model.fields,field_description:commission_simple.field_commission_compute__company_id
|
|
||||||
#: model:ir.model.fields,field_description:commission_simple.field_commission_profile__company_id
|
|
||||||
#: model:ir.model.fields,field_description:commission_simple.field_commission_profile_assignment__company_id
|
|
||||||
#: model:ir.model.fields,field_description:commission_simple.field_commission_result__company_id
|
|
||||||
#: model:ir.model.fields,field_description:commission_simple.field_commission_rule__company_id
|
|
||||||
msgid "Company"
|
|
||||||
msgstr "Société"
|
|
||||||
|
|
||||||
#. module: commission_simple
|
|
||||||
#: model:ir.model.fields,field_description:commission_simple.field_commission_result__company_currency_id
|
|
||||||
msgid "Company Currency"
|
|
||||||
msgstr "Devise de la société"
|
|
||||||
|
|
||||||
#. module: commission_simple
|
|
||||||
#: model_terms:ir.ui.view,arch_db:commission_simple.commission_compute_form
|
|
||||||
#: model_terms:ir.ui.view,arch_db:commission_simple.commission_rule_form
|
|
||||||
msgid "Compute"
|
|
||||||
msgstr "Calculer"
|
|
||||||
|
|
||||||
#. module: commission_simple
|
|
||||||
#: model:ir.actions.act_window,name:commission_simple.commission_compute_action
|
|
||||||
#: model:ir.model,name:commission_simple.model_commission_compute
|
|
||||||
#: model:ir.ui.menu,name:commission_simple.commission_compute_menu
|
|
||||||
msgid "Compute Commissions"
|
|
||||||
msgstr "Calculer les commissions"
|
|
||||||
|
|
||||||
#. module: commission_simple
|
|
||||||
#: model:ir.model,name:commission_simple.model_res_config_settings
|
|
||||||
msgid "Config Settings"
|
|
||||||
msgstr "Configuration"
|
|
||||||
|
|
||||||
#. module: commission_simple
|
|
||||||
#: model_terms:ir.ui.view,arch_db:commission_simple.commission_result_form
|
|
||||||
msgid "Confirm"
|
|
||||||
msgstr "Confirmer"
|
|
||||||
|
|
||||||
#. module: commission_simple
|
|
||||||
#: model:ir.model.fields,field_description:commission_simple.field_commission_compute__create_uid
|
|
||||||
#: model:ir.model.fields,field_description:commission_simple.field_commission_profile__create_uid
|
|
||||||
#: model:ir.model.fields,field_description:commission_simple.field_commission_profile_assignment__create_uid
|
|
||||||
#: model:ir.model.fields,field_description:commission_simple.field_commission_result__create_uid
|
|
||||||
#: model:ir.model.fields,field_description:commission_simple.field_commission_rule__create_uid
|
|
||||||
msgid "Created by"
|
|
||||||
msgstr "Créé par"
|
|
||||||
|
|
||||||
#. module: commission_simple
|
|
||||||
#: model:ir.model.fields,field_description:commission_simple.field_commission_compute__create_date
|
|
||||||
#: model:ir.model.fields,field_description:commission_simple.field_commission_profile__create_date
|
|
||||||
#: model:ir.model.fields,field_description:commission_simple.field_commission_profile_assignment__create_date
|
|
||||||
#: model:ir.model.fields,field_description:commission_simple.field_commission_result__create_date
|
|
||||||
#: model:ir.model.fields,field_description:commission_simple.field_commission_rule__create_date
|
|
||||||
msgid "Created on"
|
|
||||||
msgstr "Créé le"
|
|
||||||
|
|
||||||
#. module: commission_simple
|
|
||||||
#: model:ir.model.fields,field_description:commission_simple.field_commission_rule__partner_ids
|
|
||||||
msgid "Customers"
|
|
||||||
msgstr "Clients"
|
|
||||||
|
|
||||||
#. module: commission_simple
|
|
||||||
#: model:ir.model.fields,field_description:commission_simple.field_commission_compute__display_name
|
|
||||||
#: model:ir.model.fields,field_description:commission_simple.field_commission_profile__display_name
|
|
||||||
#: model:ir.model.fields,field_description:commission_simple.field_commission_profile_assignment__display_name
|
|
||||||
#: model:ir.model.fields,field_description:commission_simple.field_commission_result__display_name
|
|
||||||
#: model:ir.model.fields,field_description:commission_simple.field_commission_rule__display_name
|
|
||||||
msgid "Display Name"
|
|
||||||
msgstr "Nom affiché"
|
|
||||||
|
|
||||||
#. module: commission_simple
|
|
||||||
#: model:ir.model.fields.selection,name:commission_simple.selection__commission_result__state__done
|
|
||||||
#: model_terms:ir.ui.view,arch_db:commission_simple.commission_result_search
|
|
||||||
msgid "Done"
|
|
||||||
msgstr "Validé"
|
|
||||||
|
|
||||||
#. module: commission_simple
|
|
||||||
#: model:ir.model.fields.selection,name:commission_simple.selection__commission_result__state__draft
|
|
||||||
#: model_terms:ir.ui.view,arch_db:commission_simple.commission_result_search
|
|
||||||
msgid "Draft"
|
|
||||||
msgstr "Brouillon"
|
|
||||||
|
|
||||||
#. module: commission_simple
|
|
||||||
#: model:ir.model.fields,field_description:commission_simple.field_commission_rule__date_end
|
|
||||||
msgid "End Date"
|
|
||||||
msgstr "Date de fin"
|
|
||||||
|
|
||||||
#. module: commission_simple
|
|
||||||
#: model:ir.model.fields,field_description:commission_simple.field_commission_compute__date_end
|
|
||||||
#: model:ir.model.fields,field_description:commission_simple.field_commission_result__date_end
|
|
||||||
msgid "End date"
|
|
||||||
msgstr "Date de fin"
|
|
||||||
|
|
||||||
#. module: commission_simple
|
|
||||||
#: model:ir.model.fields,field_description:commission_simple.field_commission_result__message_follower_ids
|
|
||||||
msgid "Followers"
|
|
||||||
msgstr "Abonnés"
|
|
||||||
|
|
||||||
#. module: commission_simple
|
|
||||||
#: model:ir.model.fields,field_description:commission_simple.field_commission_result__message_partner_ids
|
|
||||||
msgid "Followers (Partners)"
|
|
||||||
msgstr "Abonnés (partenaires)"
|
|
||||||
|
|
||||||
#. module: commission_simple
|
|
||||||
#: model:ir.model.fields,help:commission_simple.field_commission_result__activity_type_icon
|
|
||||||
msgid "Font awesome icon e.g. fa-tasks"
|
|
||||||
msgstr "Îcone font-awesome, par exemple fa-task"
|
|
||||||
|
|
||||||
#. module: commission_simple
|
|
||||||
#: model:ir.model.fields.selection,name:commission_simple.selection__commission_rule__applied_on__4_global
|
|
||||||
msgid "Global"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#. module: commission_simple
|
|
||||||
#: model:ir.model.fields,field_description:commission_simple.field_commission_result__has_message
|
|
||||||
msgid "Has Message"
|
|
||||||
msgstr "A un message"
|
|
||||||
|
|
||||||
#. module: commission_simple
|
|
||||||
#: model:ir.model.fields,field_description:commission_simple.field_commission_compute__id
|
|
||||||
#: model:ir.model.fields,field_description:commission_simple.field_commission_profile__id
|
|
||||||
#: model:ir.model.fields,field_description:commission_simple.field_commission_profile_assignment__id
|
|
||||||
#: model:ir.model.fields,field_description:commission_simple.field_commission_result__id
|
|
||||||
#: model:ir.model.fields,field_description:commission_simple.field_commission_rule__id
|
|
||||||
msgid "ID"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#. module: commission_simple
|
|
||||||
#: model:ir.model.fields,field_description:commission_simple.field_commission_result__activity_exception_icon
|
|
||||||
msgid "Icon"
|
|
||||||
msgstr "Îcone"
|
|
||||||
|
|
||||||
#. module: commission_simple
|
|
||||||
#: model:ir.model.fields,help:commission_simple.field_commission_result__activity_exception_icon
|
|
||||||
msgid "Icon to indicate an exception activity."
|
|
||||||
msgstr "Îcone pour indiquer une activité-alerte"
|
|
||||||
|
|
||||||
#. module: commission_simple
|
|
||||||
#: model:ir.model.fields,help:commission_simple.field_commission_result__message_needaction
|
|
||||||
msgid "If checked, new messages require your attention."
|
|
||||||
msgstr "Si activé, de nouveaux messages nécessitent votre attention."
|
|
||||||
|
|
||||||
#. module: commission_simple
|
|
||||||
#: model:ir.model.fields,help:commission_simple.field_commission_result__message_has_error
|
|
||||||
msgid "If checked, some messages have a delivery error."
|
|
||||||
msgstr "Si activé, des messages ont une erreur d'envoi."
|
|
||||||
|
|
||||||
#. module: commission_simple
|
|
||||||
#: model:ir.model.fields.selection,name:commission_simple.selection__commission_profile__trigger_type__in_payment
|
|
||||||
msgid "In Payment and Paid"
|
|
||||||
msgstr "En paiement et payé"
|
|
||||||
|
|
||||||
#. module: commission_simple
|
|
||||||
#: model:ir.model.fields.selection,name:commission_simple.selection__commission_profile__trigger_type__invoice
|
|
||||||
msgid "Invoiced"
|
|
||||||
msgstr "Facturé"
|
|
||||||
|
|
||||||
#. module: commission_simple
|
|
||||||
#: model:ir.model.fields.selection,name:commission_simple.selection__commission_rule__base__invoiced
|
|
||||||
#: model_terms:ir.ui.view,arch_db:commission_simple.commission_result_form
|
|
||||||
msgid "Invoiced Amount"
|
|
||||||
msgstr "Montant facturé"
|
|
||||||
|
|
||||||
#. module: commission_simple
|
|
||||||
#: model:ir.model.fields,field_description:commission_simple.field_commission_result__message_is_follower
|
|
||||||
msgid "Is Follower"
|
|
||||||
msgstr "Est abonné"
|
|
||||||
|
|
||||||
#. module: commission_simple
|
|
||||||
#: model:ir.model,name:commission_simple.model_account_move_line
|
|
||||||
msgid "Journal Item"
|
|
||||||
msgstr "Écriture comptable"
|
|
||||||
|
|
||||||
#. module: commission_simple
|
|
||||||
#: model:ir.model.fields,field_description:commission_simple.field_commission_compute____last_update
|
|
||||||
#: model:ir.model.fields,field_description:commission_simple.field_commission_profile____last_update
|
|
||||||
#: model:ir.model.fields,field_description:commission_simple.field_commission_profile_assignment____last_update
|
|
||||||
#: model:ir.model.fields,field_description:commission_simple.field_commission_result____last_update
|
|
||||||
#: model:ir.model.fields,field_description:commission_simple.field_commission_rule____last_update
|
|
||||||
msgid "Last Modified on"
|
|
||||||
msgstr "Dernière modification le"
|
|
||||||
|
|
||||||
#. module: commission_simple
|
|
||||||
#: model:ir.model.fields,field_description:commission_simple.field_commission_compute__write_uid
|
|
||||||
#: model:ir.model.fields,field_description:commission_simple.field_commission_profile__write_uid
|
|
||||||
#: model:ir.model.fields,field_description:commission_simple.field_commission_profile_assignment__write_uid
|
|
||||||
#: model:ir.model.fields,field_description:commission_simple.field_commission_result__write_uid
|
|
||||||
#: model:ir.model.fields,field_description:commission_simple.field_commission_rule__write_uid
|
|
||||||
msgid "Last Updated by"
|
|
||||||
msgstr "Dernière mise à jour par"
|
|
||||||
|
|
||||||
#. module: commission_simple
|
|
||||||
#: model:ir.model.fields,field_description:commission_simple.field_commission_compute__write_date
|
|
||||||
#: model:ir.model.fields,field_description:commission_simple.field_commission_profile__write_date
|
|
||||||
#: model:ir.model.fields,field_description:commission_simple.field_commission_profile_assignment__write_date
|
|
||||||
#: model:ir.model.fields,field_description:commission_simple.field_commission_result__write_date
|
|
||||||
#: model:ir.model.fields,field_description:commission_simple.field_commission_rule__write_date
|
|
||||||
msgid "Last Updated on"
|
|
||||||
msgstr "Dernière mise à jour le"
|
|
||||||
|
|
||||||
#. module: commission_simple
|
|
||||||
#: model:ir.model.fields,field_description:commission_simple.field_commission_result__message_main_attachment_id
|
|
||||||
msgid "Main Attachment"
|
|
||||||
msgstr "Pièce jointe principale"
|
|
||||||
|
|
||||||
#. module: commission_simple
|
|
||||||
#: model:ir.model.fields.selection,name:commission_simple.selection__commission_rule__base__margin
|
|
||||||
msgid "Margin"
|
|
||||||
msgstr "Marge"
|
|
||||||
|
|
||||||
#. module: commission_simple
|
|
||||||
#: model_terms:ir.ui.view,arch_db:commission_simple.commission_rule_form
|
|
||||||
msgid "Match"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#. module: commission_simple
|
|
||||||
#: model:ir.model.fields,field_description:commission_simple.field_account_move_line__commission_rule_id
|
|
||||||
msgid "Matched Commission Rule"
|
|
||||||
msgstr "Règle de commission associée"
|
|
||||||
|
|
||||||
#. module: commission_simple
|
|
||||||
#: model:ir.model.fields,field_description:commission_simple.field_commission_result__message_has_error
|
|
||||||
msgid "Message Delivery error"
|
|
||||||
msgstr "Erreur d'envoi du message"
|
|
||||||
|
|
||||||
#. module: commission_simple
|
|
||||||
#: model:ir.model.fields,field_description:commission_simple.field_commission_result__message_ids
|
|
||||||
msgid "Messages"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#. module: commission_simple
|
|
||||||
#: model:ir.model.fields,field_description:commission_simple.field_commission_result__my_activity_date_deadline
|
|
||||||
msgid "My Activity Deadline"
|
|
||||||
msgstr "Date butoir de l'activité"
|
|
||||||
|
|
||||||
#. module: commission_simple
|
|
||||||
#: model:ir.model.fields,field_description:commission_simple.field_commission_profile__name
|
|
||||||
msgid "Name of the Profile"
|
|
||||||
msgstr "Nom du profil"
|
|
||||||
|
|
||||||
#. module: commission_simple
|
|
||||||
#: model:ir.model.fields,field_description:commission_simple.field_commission_result__activity_calendar_event_id
|
|
||||||
msgid "Next Activity Calendar Event"
|
|
||||||
msgstr "Prochaine activité du calendrier"
|
|
||||||
|
|
||||||
#. module: commission_simple
|
|
||||||
#: model:ir.model.fields,field_description:commission_simple.field_commission_result__activity_date_deadline
|
|
||||||
msgid "Next Activity Deadline"
|
|
||||||
msgstr "Date butoir de l'activité suivante"
|
|
||||||
|
|
||||||
#. module: commission_simple
|
|
||||||
#: model:ir.model.fields,field_description:commission_simple.field_commission_result__activity_summary
|
|
||||||
msgid "Next Activity Summary"
|
|
||||||
msgstr "Résumé de l'activité suivante"
|
|
||||||
|
|
||||||
#. module: commission_simple
|
|
||||||
#: model:ir.model.fields,field_description:commission_simple.field_commission_result__activity_type_id
|
|
||||||
msgid "Next Activity Type"
|
|
||||||
msgstr "Type de l'activité suivante"
|
|
||||||
|
|
||||||
#. module: commission_simple
|
|
||||||
#. odoo-python
|
|
||||||
#: code:addons/commission_simple/wizards/commission_compute.py:0
|
|
||||||
#, python-format
|
|
||||||
msgid "No commissions generated."
|
|
||||||
msgstr "Aucune commission n'a été générée."
|
|
||||||
|
|
||||||
#. module: commission_simple
|
|
||||||
#: model:ir.model.fields,field_description:commission_simple.field_commission_result__message_needaction_counter
|
|
||||||
msgid "Number of Actions"
|
|
||||||
msgstr "Nombre d'actions"
|
|
||||||
|
|
||||||
#. module: commission_simple
|
|
||||||
#: model:ir.model.fields,field_description:commission_simple.field_commission_result__message_has_error_counter
|
|
||||||
msgid "Number of errors"
|
|
||||||
msgstr "Nombre d'erreurs"
|
|
||||||
|
|
||||||
#. module: commission_simple
|
|
||||||
#: model:ir.model.fields,help:commission_simple.field_commission_result__message_needaction_counter
|
|
||||||
msgid "Number of messages requiring action"
|
|
||||||
msgstr "Nombre de messages nécessitant une action"
|
|
||||||
|
|
||||||
#. module: commission_simple
|
|
||||||
#: model:ir.model.fields,help:commission_simple.field_commission_result__message_has_error_counter
|
|
||||||
msgid "Number of messages with delivery error"
|
|
||||||
msgstr "Nombre de messages en échec d'envoi"
|
|
||||||
|
|
||||||
#. module: commission_simple
|
|
||||||
#: model:ir.model.fields.selection,name:commission_simple.selection__commission_profile__trigger_type__paid
|
|
||||||
msgid "Paid"
|
|
||||||
msgstr "Payé"
|
|
||||||
|
|
||||||
#. module: commission_simple
|
|
||||||
#: model:ir.model.fields,field_description:commission_simple.field_commission_compute__date_range_id
|
|
||||||
#: model:ir.model.fields,field_description:commission_simple.field_commission_result__date_range_id
|
|
||||||
#: model_terms:ir.ui.view,arch_db:commission_simple.commission_result_search
|
|
||||||
msgid "Period"
|
|
||||||
msgstr "Période"
|
|
||||||
|
|
||||||
#. module: commission_simple
|
|
||||||
#: model:ir.model.fields,field_description:commission_simple.field_commission_rule__product_categ_ids
|
|
||||||
#: model:ir.model.fields.selection,name:commission_simple.selection__commission_rule__applied_on__3_product_category
|
|
||||||
msgid "Product Categories"
|
|
||||||
msgstr "Catégories de produits"
|
|
||||||
|
|
||||||
#. module: commission_simple
|
|
||||||
#: model:ir.model.fields.selection,name:commission_simple.selection__commission_rule__applied_on__1_customer_product_category
|
|
||||||
msgid "Product Categories and Customers"
|
|
||||||
msgstr "Catégories de produits et clients"
|
|
||||||
|
|
||||||
#. module: commission_simple
|
|
||||||
#: model:ir.model.fields,field_description:commission_simple.field_account_move_line__product_categ_id
|
|
||||||
msgid "Product Category"
|
|
||||||
msgstr "Catégorie de produit"
|
|
||||||
|
|
||||||
#. module: commission_simple
|
|
||||||
#: model:ir.model.fields,field_description:commission_simple.field_commission_rule__product_ids
|
|
||||||
#: model:ir.model.fields.selection,name:commission_simple.selection__commission_rule__applied_on__2_product
|
|
||||||
msgid "Products"
|
|
||||||
msgstr "Produits"
|
|
||||||
|
|
||||||
#. module: commission_simple
|
|
||||||
#: model:ir.model.fields.selection,name:commission_simple.selection__commission_rule__applied_on__0_customer_product
|
|
||||||
msgid "Products and Customers"
|
|
||||||
msgstr "Produits et clients"
|
|
||||||
|
|
||||||
#. module: commission_simple
|
|
||||||
#: model:ir.model.fields,field_description:commission_simple.field_commission_profile_assignment__profile_id
|
|
||||||
#: model:ir.model.fields,field_description:commission_simple.field_commission_rule__profile_id
|
|
||||||
#: model_terms:ir.ui.view,arch_db:commission_simple.commission_rule_search
|
|
||||||
msgid "Profile"
|
|
||||||
msgstr "Profil"
|
|
||||||
|
|
||||||
#. module: commission_simple
|
|
||||||
#: model_terms:ir.ui.view,arch_db:commission_simple.commission_result_form
|
|
||||||
#: model_terms:ir.ui.view,arch_db:commission_simple.commission_rule_tree
|
|
||||||
msgid "Rate (%)"
|
|
||||||
msgstr "Taux (%)"
|
|
||||||
|
|
||||||
#. module: commission_simple
|
|
||||||
#: model:ir.model.constraint,message:commission_simple.constraint_commission_rule_rate_positive
|
|
||||||
msgid "Rate must be positive !"
|
|
||||||
msgstr "Le taux doit être positif !"
|
|
||||||
|
|
||||||
#. module: commission_simple
|
|
||||||
#: model:ir.model.fields,field_description:commission_simple.field_commission_result__activity_user_id
|
|
||||||
msgid "Responsible User"
|
|
||||||
msgstr "Utilisateur responsable"
|
|
||||||
|
|
||||||
#. module: commission_simple
|
|
||||||
#: model_terms:ir.ui.view,arch_db:commission_simple.commission_profile_form
|
|
||||||
msgid "Rules"
|
|
||||||
msgstr "Règles"
|
|
||||||
|
|
||||||
#. module: commission_simple
|
|
||||||
#. odoo-python
|
|
||||||
#: code:addons/commission_simple/models/commission_profile.py:0
|
|
||||||
#: model:ir.model.fields,field_description:commission_simple.field_commission_profile_assignment__user_id
|
|
||||||
#: model_terms:ir.ui.view,arch_db:commission_simple.commission_result_search
|
|
||||||
#, python-format
|
|
||||||
msgid "Salesman"
|
|
||||||
msgstr "Vendeur"
|
|
||||||
|
|
||||||
#. module: commission_simple
|
|
||||||
#: model:ir.model.fields,field_description:commission_simple.field_commission_result__partner_id
|
|
||||||
msgid "Salesman/Agent"
|
|
||||||
msgstr "Vendeur/Agent"
|
|
||||||
|
|
||||||
#. module: commission_simple
|
|
||||||
#: model:ir.model.fields,field_description:commission_simple.field_commission_profile__sequence
|
|
||||||
msgid "Sequence"
|
|
||||||
msgstr "Séquence"
|
|
||||||
|
|
||||||
#. module: commission_simple
|
|
||||||
#: model:ir.model.fields,field_description:commission_simple.field_commission_rule__date_start
|
|
||||||
msgid "Start Date"
|
|
||||||
msgstr "Date de début"
|
|
||||||
|
|
||||||
#. module: commission_simple
|
|
||||||
#: model:ir.model.fields,field_description:commission_simple.field_commission_compute__date_start
|
|
||||||
#: model:ir.model.fields,field_description:commission_simple.field_commission_result__date_start
|
|
||||||
msgid "Start date"
|
|
||||||
msgstr "Date de début"
|
|
||||||
|
|
||||||
#. module: commission_simple
|
|
||||||
#: model:ir.model.fields,field_description:commission_simple.field_commission_result__state
|
|
||||||
msgid "State"
|
|
||||||
msgstr "État"
|
|
||||||
|
|
||||||
#. module: commission_simple
|
|
||||||
#: model:ir.model.fields,help:commission_simple.field_commission_result__activity_state
|
|
||||||
msgid ""
|
|
||||||
"Status based on activities\n"
|
|
||||||
"Overdue: Due date is already passed\n"
|
|
||||||
"Today: Activity date is today\n"
|
|
||||||
"Planned: Future activities."
|
|
||||||
msgstr ""
|
|
||||||
"Statut basé sur les activités\n"
|
|
||||||
"En retard : La date d'échéance est déjà dépassée\n"
|
|
||||||
"Aujourd'hui : La date de l'activité est aujourd'hui\n"
|
|
||||||
"Planifié : Activités futures."
|
|
||||||
|
|
||||||
#. module: commission_simple
|
|
||||||
#: model:ir.model.constraint,message:commission_simple.constraint_commission_profile_assignment_company_user_uniq
|
|
||||||
msgid "This salesman already has an assignment in this company."
|
|
||||||
msgstr "Ce vendeur a déjà une assignation dans cette société."
|
|
||||||
|
|
||||||
#. module: commission_simple
|
|
||||||
#: model:ir.model.fields,field_description:commission_simple.field_commission_profile__trigger_type
|
|
||||||
msgid "Trigger"
|
|
||||||
msgstr "Déclencheur"
|
|
||||||
|
|
||||||
#. module: commission_simple
|
|
||||||
#: model:ir.model.fields,field_description:commission_simple.field_commission_profile_assignment__assign_type
|
|
||||||
msgid "Type"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#. module: commission_simple
|
|
||||||
#: model:ir.model.fields,help:commission_simple.field_commission_result__activity_exception_decoration
|
|
||||||
msgid "Type of the exception activity on record."
|
|
||||||
msgstr "Type de l'activité-alerte sur l'enregistrement."
|
|
||||||
|
|
||||||
#. module: commission_simple
|
|
||||||
#: model:ir.model.fields,field_description:commission_simple.field_commission_result__website_message_ids
|
|
||||||
msgid "Website Messages"
|
|
||||||
msgstr "Messages du site Web"
|
|
||||||
|
|
||||||
#. module: commission_simple
|
|
||||||
#: model:ir.model.fields,help:commission_simple.field_commission_result__website_message_ids
|
|
||||||
msgid "Website communication history"
|
|
||||||
msgstr "Historique des échanges sur le site Web"
|
|
||||||
|
|
||||||
#. module: commission_simple
|
|
||||||
#. odoo-python
|
|
||||||
#: code:addons/commission_simple/models/commission_result.py:0
|
|
||||||
#, python-format
|
|
||||||
msgid "You cannot delete commission result %s because it is in done state."
|
|
||||||
msgstr ""
|
|
||||||
"Vous ne pouvez pas supprimer l'état de commission %s parce qu'il est à "
|
|
||||||
"l'état \"validé\"."
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
from . import commission_profile
|
|
||||||
from . import commission_rule
|
|
||||||
from . import commission_result
|
|
||||||
from . import res_company
|
|
||||||
from . import account_move_line
|
|
||||||
@@ -1,90 +0,0 @@
|
|||||||
# Copyright 2019-2024 Akretion France (http://www.akretion.com/)
|
|
||||||
# @author Alexis de Lattre <alexis.delattre@akretion.com>
|
|
||||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
|
||||||
|
|
||||||
|
|
||||||
from odoo import api, fields, models
|
|
||||||
from odoo.tools import float_is_zero
|
|
||||||
|
|
||||||
|
|
||||||
class AccountMoveLine(models.Model):
|
|
||||||
_inherit = 'account.move.line'
|
|
||||||
|
|
||||||
commission_result_id = fields.Many2one(
|
|
||||||
'commission.result', string='Commission Result', check_company=True)
|
|
||||||
commission_rule_id = fields.Many2one(
|
|
||||||
'commission.rule', 'Matched Commission Rule', ondelete='restrict', check_company=True)
|
|
||||||
commission_base = fields.Monetary('Commission Base', currency_field='company_currency_id')
|
|
||||||
commission_rate = fields.Float('Commission Rate', digits='Commission Rate')
|
|
||||||
commission_amount = fields.Monetary(
|
|
||||||
string='Commission Amount', currency_field='company_currency_id',
|
|
||||||
readonly=True, compute='_compute_commission_amount', store=True)
|
|
||||||
# to display on commission line
|
|
||||||
product_categ_id = fields.Many2one(
|
|
||||||
related='product_id.product_tmpl_id.categ_id')
|
|
||||||
|
|
||||||
@api.depends('commission_rate', 'commission_base')
|
|
||||||
def _compute_commission_amount(self):
|
|
||||||
for line in self:
|
|
||||||
commission_amount = False
|
|
||||||
if line.display_type == 'product':
|
|
||||||
commission_amount = line.company_currency_id.round(
|
|
||||||
line.commission_rate * line.commission_base / 100.0)
|
|
||||||
line.commission_amount = commission_amount
|
|
||||||
|
|
||||||
def _match_commission_rule(self, rules):
|
|
||||||
# commission rules are already in the right order
|
|
||||||
self.ensure_one()
|
|
||||||
for rule in rules:
|
|
||||||
if rule['date_start'] and rule['date_start'] > self.date:
|
|
||||||
continue
|
|
||||||
if rule['date_end'] and rule['date_end'] < self.date:
|
|
||||||
continue
|
|
||||||
if rule['applied_on'] == '0_customer_product':
|
|
||||||
if (
|
|
||||||
self.partner_id.id in
|
|
||||||
rule['partner_ids'] and
|
|
||||||
self.product_id.id in rule['product_ids']):
|
|
||||||
return rule
|
|
||||||
elif rule['applied_on'] == '1_customer_product_category':
|
|
||||||
if (
|
|
||||||
self.partner_id.id in
|
|
||||||
rule['partner_ids'] and
|
|
||||||
self.product_categ_id.id in rule['product_categ_ids']):
|
|
||||||
return rule
|
|
||||||
elif rule['applied_on'] == '2_product':
|
|
||||||
if self.product_id.id in rule['product_ids']:
|
|
||||||
return rule
|
|
||||||
elif rule['applied_on'] == '3_product_category':
|
|
||||||
if self.product_categ_id.id in rule['product_categ_ids']:
|
|
||||||
return rule
|
|
||||||
elif rule['applied_on'] == '4_global':
|
|
||||||
return rule
|
|
||||||
return False
|
|
||||||
|
|
||||||
def _prepare_commission_data(self, rule):
|
|
||||||
self.ensure_one()
|
|
||||||
rate_prec = self.env['decimal.precision'].precision_get('Commission Rate')
|
|
||||||
lvals = {
|
|
||||||
'commission_rule_id': rule['id'],
|
|
||||||
# company currency
|
|
||||||
# inherit this method to change the value below if you want to base on margin
|
|
||||||
# or something else
|
|
||||||
'commission_rate': rule['rate'],
|
|
||||||
}
|
|
||||||
if rule['base'] == 'margin':
|
|
||||||
# What do we do if it's negative ? For the moment, it adds a negative commission line
|
|
||||||
cost = 0
|
|
||||||
if self.product_id and self.product_uom_id:
|
|
||||||
# if the module account_invoice_margin from akretion/odoo-usability is installed
|
|
||||||
if hasattr(self, 'margin_company_currency'):
|
|
||||||
cost = self.margin_company_currency
|
|
||||||
else:
|
|
||||||
sign = self.move_id.move_type == 'out_refund' and -1 or 1
|
|
||||||
cost = self.product_id.standard_price * self.product_uom_id._compute_quantity(self.quantity, self.product_id.uom_id) * sign
|
|
||||||
lvals['commission_base'] = self.balance * -1 - cost
|
|
||||||
else:
|
|
||||||
lvals['commission_base'] = self.balance * -1
|
|
||||||
if float_is_zero(lvals['commission_rate'], precision_digits=rate_prec) or self.company_currency_id.is_zero(lvals['commission_base']):
|
|
||||||
return False
|
|
||||||
return lvals
|
|
||||||
@@ -1,125 +0,0 @@
|
|||||||
# Copyright Akretion France (http://www.akretion.com/)
|
|
||||||
# @author Alexis de Lattre <alexis.delattre@akretion.com>
|
|
||||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
|
||||||
|
|
||||||
|
|
||||||
from odoo import fields, models, api, _
|
|
||||||
from odoo.exceptions import ValidationError
|
|
||||||
|
|
||||||
|
|
||||||
class CommissionProfile(models.Model):
|
|
||||||
_name = 'commission.profile'
|
|
||||||
_description = 'Commission Profile'
|
|
||||||
_order = 'sequence, id'
|
|
||||||
|
|
||||||
name = fields.Char(string='Name of the Profile', required=True)
|
|
||||||
active = fields.Boolean(string='Active', default=True)
|
|
||||||
sequence = fields.Integer()
|
|
||||||
company_id = fields.Many2one(
|
|
||||||
'res.company', string='Company', ondelete='cascade',
|
|
||||||
required=False, default=lambda self: self.env.company)
|
|
||||||
assign_ids = fields.One2many(
|
|
||||||
'commission.profile.assignment', 'profile_id', string="Assignments")
|
|
||||||
rule_ids = fields.One2many(
|
|
||||||
'commission.rule', 'profile_id', string='Commission Rules')
|
|
||||||
trigger_type = fields.Selection([
|
|
||||||
('invoice', 'Invoiced'),
|
|
||||||
('paid', 'Paid'),
|
|
||||||
('in_payment', 'In Payment and Paid'),
|
|
||||||
], default='paid', string='Trigger', required=True)
|
|
||||||
|
|
||||||
|
|
||||||
class CommissionProfileAssignment(models.Model):
|
|
||||||
_name = "commission.profile.assignment"
|
|
||||||
_description = "Commission Profile Assignment"
|
|
||||||
|
|
||||||
profile_id = fields.Many2one('commission.profile', ondelete='cascade')
|
|
||||||
company_id = fields.Many2one(
|
|
||||||
'res.company', string='Company', ondelete='cascade',
|
|
||||||
required=True, default=lambda self: self.env.company)
|
|
||||||
assign_type = fields.Selection(
|
|
||||||
'_assign_type_selection', default='user', required=True, string="Type")
|
|
||||||
user_id = fields.Many2one(
|
|
||||||
'res.users', compute="_compute_user_id", store=True, precompute=True, readonly=False,
|
|
||||||
ondelete="restrict", string="Salesman",
|
|
||||||
)
|
|
||||||
|
|
||||||
_sql_constraints = [
|
|
||||||
(
|
|
||||||
'company_user_uniq',
|
|
||||||
'unique(user_id, company_id)',
|
|
||||||
'This salesman already has an assignment in this company.')]
|
|
||||||
|
|
||||||
@api.model
|
|
||||||
def _assign_type_selection(self):
|
|
||||||
return [('user', _('Salesman'))]
|
|
||||||
|
|
||||||
@api.constrains('assign_type', 'user_id')
|
|
||||||
def _check_user(self):
|
|
||||||
for assignment in self:
|
|
||||||
if assignment.assign_type == 'user' and not assignment.user_id:
|
|
||||||
raise ValidationError(_("A salesman must be selected when the assignment type is 'Salesman'."))
|
|
||||||
|
|
||||||
@api.depends('assign_type')
|
|
||||||
def _compute_user_id(self):
|
|
||||||
for assign in self:
|
|
||||||
if assign.assign_type != 'user':
|
|
||||||
assign.user_id = False
|
|
||||||
|
|
||||||
def _get_partner(self):
|
|
||||||
self.ensure_one()
|
|
||||||
if self.assign_type == 'user':
|
|
||||||
return self.user_id.partner_id
|
|
||||||
return False
|
|
||||||
|
|
||||||
def _prepare_move_line_domain(self, date_range):
|
|
||||||
self.ensure_one()
|
|
||||||
domain = [
|
|
||||||
('display_type', '=', 'product'),
|
|
||||||
('move_id.move_type', 'in', ('out_invoice', 'out_refund')),
|
|
||||||
('date', '<=', date_range.date_end),
|
|
||||||
('company_id', '=', self.company_id.id),
|
|
||||||
('commission_result_id', '=', False),
|
|
||||||
('parent_state', '=', 'posted'),
|
|
||||||
]
|
|
||||||
if self.assign_type == 'user':
|
|
||||||
domain.append(('move_id.invoice_user_id', '=', self.user_id.id))
|
|
||||||
# TODO : for trigger 'paid' and 'in_payment', we would need to filter
|
|
||||||
# out the invoices paid after the end date of the commission period
|
|
||||||
if self.profile_id.trigger_type == 'paid':
|
|
||||||
domain.append(('move_id.payment_state', 'in', ('paid', 'reversed')))
|
|
||||||
elif self.profile_id.trigger_type == 'in_payment':
|
|
||||||
domain.append(('move_id.payment_state', 'in', ('in_payment', 'paid', 'reversed')))
|
|
||||||
elif self.profile_id.trigger_type == 'invoice':
|
|
||||||
domain.append(('date', '>=', date_range.date_start))
|
|
||||||
return domain
|
|
||||||
|
|
||||||
def _prepare_commission_result(self, date_range):
|
|
||||||
vals = {
|
|
||||||
'partner_id': self._get_partner().id,
|
|
||||||
'profile_id': self.profile_id.id,
|
|
||||||
'date_range_id': date_range.id,
|
|
||||||
'assign_type': self.assign_type,
|
|
||||||
'company_id': self.company_id.id,
|
|
||||||
}
|
|
||||||
return vals
|
|
||||||
|
|
||||||
def _generate_commission_result(self, date_range, rules):
|
|
||||||
self.ensure_one()
|
|
||||||
ilines = self.env['account.move.line'].search(
|
|
||||||
self._prepare_move_line_domain(date_range), order='date, move_id, sequence, id')
|
|
||||||
profile = self.profile_id
|
|
||||||
ilines2write = {}
|
|
||||||
for iline in ilines:
|
|
||||||
rule = iline._match_commission_rule(rules[profile.id])
|
|
||||||
if rule:
|
|
||||||
lvals = iline._prepare_commission_data(rule)
|
|
||||||
if lvals:
|
|
||||||
ilines2write[iline] = lvals
|
|
||||||
if ilines2write:
|
|
||||||
com_result = self.env['commission.result'].create(self._prepare_commission_result(date_range))
|
|
||||||
for iline, vals in ilines2write.items():
|
|
||||||
iline.write(dict(vals, commission_result_id=com_result.id))
|
|
||||||
return com_result
|
|
||||||
else:
|
|
||||||
return False
|
|
||||||
@@ -1,77 +0,0 @@
|
|||||||
# Copyright Akretion France (http://www.akretion.com/)
|
|
||||||
# @author Alexis de Lattre <alexis.delattre@akretion.com>
|
|
||||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
|
||||||
|
|
||||||
from odoo import fields, models, api, _
|
|
||||||
from odoo.exceptions import UserError
|
|
||||||
|
|
||||||
|
|
||||||
class CommissionResult(models.Model):
|
|
||||||
_name = 'commission.result'
|
|
||||||
_description = "Commission Result"
|
|
||||||
_order = 'date_start desc'
|
|
||||||
_inherit = ['mail.thread', 'mail.activity.mixin']
|
|
||||||
|
|
||||||
partner_id = fields.Many2one(
|
|
||||||
'res.partner', string='Salesman/Agent', required=True, ondelete='restrict',
|
|
||||||
readonly=True, tracking=True)
|
|
||||||
profile_id = fields.Many2one(
|
|
||||||
'commission.profile', string='Commission Profile', readonly=True, tracking=True)
|
|
||||||
assign_type = fields.Selection('_assign_type_selection', readonly=True, tracking=True)
|
|
||||||
company_id = fields.Many2one(
|
|
||||||
'res.company', string='Company', ondelete='cascade',
|
|
||||||
required=True, readonly=True, default=lambda self: self.env.company, tracking=True)
|
|
||||||
company_currency_id = fields.Many2one(
|
|
||||||
related='company_id.currency_id', string='Company Currency', store=True)
|
|
||||||
date_range_id = fields.Many2one(
|
|
||||||
'date.range', required=True, string='Period', readonly=True, tracking=True)
|
|
||||||
date_start = fields.Date(related='date_range_id.date_start', store=True)
|
|
||||||
date_end = fields.Date(related='date_range_id.date_end', store=True)
|
|
||||||
line_ids = fields.One2many(
|
|
||||||
'account.move.line', 'commission_result_id', string='Commission Lines',
|
|
||||||
states={'done': [('readonly', True)]})
|
|
||||||
amount_total = fields.Monetary(
|
|
||||||
string='Commission Total', currency_field='company_currency_id',
|
|
||||||
compute='_compute_amount_total', store=True, tracking=True)
|
|
||||||
state = fields.Selection([
|
|
||||||
('draft', 'Draft'),
|
|
||||||
('done', 'Done'),
|
|
||||||
], default='draft', tracking=True)
|
|
||||||
# TODO copy amount to another field
|
|
||||||
# help='This is the total amount at the date of the computation of the commission')
|
|
||||||
|
|
||||||
@api.model
|
|
||||||
def _assign_type_selection(self):
|
|
||||||
return self.env['commission.profile.assignment']._assign_type_selection()
|
|
||||||
|
|
||||||
@api.depends('line_ids.commission_amount')
|
|
||||||
def _compute_amount_total(self):
|
|
||||||
rg_res = self.env['account.move.line'].read_group([('commission_result_id', 'in', self.ids)], ['commission_result_id', 'commission_amount:sum'], ['commission_result_id'])
|
|
||||||
mapped_data = dict([(x['commission_result_id'][0], x['commission_amount']) for x in rg_res])
|
|
||||||
for rec in self:
|
|
||||||
rec.amount_total = mapped_data.get(rec.id, 0)
|
|
||||||
|
|
||||||
def unlink(self):
|
|
||||||
for result in self:
|
|
||||||
if result.state == 'done':
|
|
||||||
raise UserError(_(
|
|
||||||
"You cannot delete commission result %s because it is in done state.") % result.display_name)
|
|
||||||
return super().unlink()
|
|
||||||
|
|
||||||
def draft2done(self):
|
|
||||||
self.write({'state': 'done'})
|
|
||||||
|
|
||||||
def backtodraft(self):
|
|
||||||
self.write({'state': 'draft'})
|
|
||||||
|
|
||||||
def name_get(self):
|
|
||||||
res = []
|
|
||||||
for result in self:
|
|
||||||
name = '%s (%s)' % (result.partner_id.name, result.date_range_id.name)
|
|
||||||
res.append((result.id, name))
|
|
||||||
return res
|
|
||||||
|
|
||||||
_sql_constraints = [(
|
|
||||||
'salesman_period_company_unique',
|
|
||||||
'unique(company_id, partner_id, date_range_id)',
|
|
||||||
'A commission result already exists for this salesman/agent for the same period.')]
|
|
||||||
@@ -1,52 +0,0 @@
|
|||||||
# Copyright Akretion France (http://www.akretion.com/)
|
|
||||||
# @author Alexis de Lattre <alexis.delattre@akretion.com>
|
|
||||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
|
||||||
|
|
||||||
|
|
||||||
from odoo import fields, models, api
|
|
||||||
|
|
||||||
|
|
||||||
class CommissionRule(models.Model):
|
|
||||||
_name = 'commission.rule'
|
|
||||||
_description = 'Commission Rule'
|
|
||||||
_order = 'profile_id, applied_on'
|
|
||||||
|
|
||||||
partner_ids = fields.Many2many(
|
|
||||||
'res.partner', string='Customers', domain=[('parent_id', '=', False)])
|
|
||||||
product_categ_ids = fields.Many2many(
|
|
||||||
'product.category', string="Product Categories")
|
|
||||||
product_ids = fields.Many2many('product.product', string='Products')
|
|
||||||
date_start = fields.Date('Start Date')
|
|
||||||
date_end = fields.Date('End Date')
|
|
||||||
profile_id = fields.Many2one(
|
|
||||||
'commission.profile', string='Profile', ondelete='cascade')
|
|
||||||
company_id = fields.Many2one(related='profile_id.company_id', store=True)
|
|
||||||
rate = fields.Float('Commission Rate', digits="Commission Rate", copy=False)
|
|
||||||
base = fields.Selection([
|
|
||||||
('invoiced', 'Invoiced Amount'),
|
|
||||||
('margin', 'Margin'),
|
|
||||||
], default='invoiced', required=True, string="Commission Base")
|
|
||||||
applied_on = fields.Selection([
|
|
||||||
('0_customer_product', 'Products and Customers'),
|
|
||||||
('1_customer_product_category', "Product Categories and Customers"),
|
|
||||||
('2_product', "Products"),
|
|
||||||
('3_product_category', "Product Categories"),
|
|
||||||
('4_global', 'Global')],
|
|
||||||
string='Apply On', default='4_global', required=True)
|
|
||||||
active = fields.Boolean(string='Active', default=True)
|
|
||||||
|
|
||||||
@api.model
|
|
||||||
def load_all_rules(self):
|
|
||||||
rules = self.search_read([('profile_id', '!=', False)])
|
|
||||||
res = {} # key = profile, value = [rule1 recordset, rule2]
|
|
||||||
for rule in rules:
|
|
||||||
if rule['profile_id'][0] not in res:
|
|
||||||
res[rule['profile_id'][0]] = [rule]
|
|
||||||
else:
|
|
||||||
res[rule['profile_id'][0]].append(rule)
|
|
||||||
return res
|
|
||||||
|
|
||||||
_sql_constraints = [(
|
|
||||||
'rate_positive',
|
|
||||||
'CHECK(rate >= 0)',
|
|
||||||
'Rate must be positive !')]
|
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
# Copyright 2019-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).
|
|
||||||
|
|
||||||
|
|
||||||
from odoo import fields, models
|
|
||||||
|
|
||||||
|
|
||||||
class ResCompany(models.Model):
|
|
||||||
_inherit = 'res.company'
|
|
||||||
|
|
||||||
commission_date_range_type_id = fields.Many2one(
|
|
||||||
'date.range.type', string='Commission Periodicity', ondelete='restrict')
|
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
# Copyright 2019-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).
|
|
||||||
|
|
||||||
|
|
||||||
from odoo import fields, models
|
|
||||||
|
|
||||||
|
|
||||||
class ResUsers(models.Model):
|
|
||||||
_inherit = 'res.users'
|
|
||||||
|
|
||||||
# TODO mon idée : déplacer ça dans une table dédiée
|
|
||||||
# company_id oblig
|
|
||||||
# partner_id (filtré... sur lien vers user ou agent petit difficulté)
|
|
||||||
# profile_id
|
|
||||||
# type agent ou user => ça donne le champ de recherche
|
|
||||||
|
|
||||||
commission_profile_id = fields.Many2one(
|
|
||||||
'commission.profile', string='Commission Profile',
|
|
||||||
company_dependent=True)
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
|
|
||||||
access_commission_profile_read,Read access on commission.profile for employees,model_commission_profile,base.group_user,1,0,0,0
|
|
||||||
access_commission_profile_full,Full access on commission.profile for financial manager,model_commission_profile,account.group_account_manager,1,1,1,1
|
|
||||||
access_commission_profile_assignment_full,Full access on commission.profile.assignment for financial manager,model_commission_profile_assignment,account.group_account_manager,1,1,1,1
|
|
||||||
access_commission_rule_full,Full access on commission.rule for financial manager,model_commission_rule,account.group_account_manager,1,1,1,1
|
|
||||||
access_commission_rule_read,Read access on commission.rule for invoicing group,model_commission_rule,account.group_account_invoice,1,0,0,0
|
|
||||||
access_commission_rule_audit,Read access on commission.rule for viewer group,model_commission_rule,account.group_account_readonly,1,0,0,0
|
|
||||||
access_commission_result_full,Full access on commission.result to accountant,model_commission_result,account.group_account_user,1,1,1,1
|
|
||||||
access_commission_result_read,Read access on commission.result to invoicing grp,model_commission_result,account.group_account_invoice,1,0,0,0
|
|
||||||
access_commission_result_audit,Read access on commission.result to viewer grp,model_commission_result,account.group_account_readonly,1,0,0,0
|
|
||||||
access_commission_compute_full,Full access to wizard commission.compute,model_commission_compute,account.group_account_manager,1,1,1,1
|
|
||||||
|
@@ -1,29 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<!--
|
|
||||||
Copyright 2019-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)
|
|
||||||
-->
|
|
||||||
|
|
||||||
<odoo noupdate="1">
|
|
||||||
|
|
||||||
|
|
||||||
<record id="commission_profile_rule" model="ir.rule">
|
|
||||||
<field name="name">Commission Profile multi-company</field>
|
|
||||||
<field name="model_id" ref="model_commission_profile"/>
|
|
||||||
<field name="domain_force">[('company_id', 'in', company_ids + [False])]</field>
|
|
||||||
</record>
|
|
||||||
|
|
||||||
<record id="commission_rule_rule" model="ir.rule">
|
|
||||||
<field name="name">Commission Rule multi-company</field>
|
|
||||||
<field name="model_id" ref="model_commission_rule"/>
|
|
||||||
<field name="domain_force">[('company_id', 'in', company_ids + [False])]</field>
|
|
||||||
</record>
|
|
||||||
|
|
||||||
<record id="commission_result_rule" model="ir.rule">
|
|
||||||
<field name="name">Commission Result multi-company</field>
|
|
||||||
<field name="model_id" ref="model_commission_result"/>
|
|
||||||
<field name="domain_force">[('company_id', 'in', company_ids)]</field>
|
|
||||||
</record>
|
|
||||||
|
|
||||||
</odoo>
|
|
||||||
@@ -1,206 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<!--
|
|
||||||
Copyright 2019 Akretion France (http://www.akretion.com)
|
|
||||||
@author Alexis de Lattre <alexis.delattre@akretion.com>
|
|
||||||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)
|
|
||||||
-->
|
|
||||||
|
|
||||||
<odoo>
|
|
||||||
|
|
||||||
<menuitem id="commission_root" name="Commissions" parent="account.menu_finance" sequence="11"/>
|
|
||||||
<menuitem id="commission_config_root" name="Commissions" parent="account.menu_finance_configuration" sequence="110"/>
|
|
||||||
|
|
||||||
<!-- PROFILE -->
|
|
||||||
<record id="commission_profile_form" model="ir.ui.view">
|
|
||||||
<field name="name">commission.profile.form</field>
|
|
||||||
<field name="model">commission.profile</field>
|
|
||||||
<field name="arch" type="xml">
|
|
||||||
<form>
|
|
||||||
<sheet>
|
|
||||||
<widget name="web_ribbon" title="Archived" bg_color="bg-danger" attrs="{'invisible': [('active', '=', True)]}"/>
|
|
||||||
<group name="main">
|
|
||||||
<field name="name"/>
|
|
||||||
<field name="active" invisible="1"/>
|
|
||||||
<field name="company_id" invisible="1"/>
|
|
||||||
<field name="company_id" groups="base.group_multi_company"/>
|
|
||||||
<field name="trigger_type"/>
|
|
||||||
</group>
|
|
||||||
<group name="lines" string="Rules">
|
|
||||||
<field name="line_ids" nolabel="1" colspan="2"/>
|
|
||||||
</group>
|
|
||||||
</sheet>
|
|
||||||
</form>
|
|
||||||
</field>
|
|
||||||
</record>
|
|
||||||
|
|
||||||
<record id="commission_profile_tree" model="ir.ui.view">
|
|
||||||
<field name="name">commission.profile.tree</field>
|
|
||||||
<field name="model">commission.profile</field>
|
|
||||||
<field name="arch" type="xml">
|
|
||||||
<tree>
|
|
||||||
<field name="sequence" widget="handle"/>
|
|
||||||
<field name="name" decoration-bf="1"/>
|
|
||||||
<field name="trigger_type" optional="show"/>
|
|
||||||
<field name="company_id" groups="base.group_multi_company"/>
|
|
||||||
</tree>
|
|
||||||
</field>
|
|
||||||
</record>
|
|
||||||
|
|
||||||
<record id="commission_profile_action" model="ir.actions.act_window">
|
|
||||||
<field name="name">Commission Profiles</field>
|
|
||||||
<field name="res_model">commission.profile</field>
|
|
||||||
<field name="view_mode">tree,form</field>
|
|
||||||
</record>
|
|
||||||
|
|
||||||
<menuitem id="commission_profile_menu" action="commission_profile_action" parent="commission_config_root" sequence="18"/>
|
|
||||||
|
|
||||||
|
|
||||||
<!-- RULE -->
|
|
||||||
<record id="commission_rule_form" model="ir.ui.view">
|
|
||||||
<field name="name">commission.rule.form</field>
|
|
||||||
<field name="model">commission.rule</field>
|
|
||||||
<field name="arch" type="xml">
|
|
||||||
<form>
|
|
||||||
<sheet>
|
|
||||||
<group name="main">
|
|
||||||
<field name="profile_id" invisible="not context.get('commission_rule_main_view')"/>
|
|
||||||
<field name="company_id" groups="base.group_multi_company"/>
|
|
||||||
<field name="company_id" invisible="1"/>
|
|
||||||
<field name="applied_on" widget="radio"/>
|
|
||||||
</group>
|
|
||||||
<group name="match" string="Match">
|
|
||||||
<field name="partner_ids" attrs="{'invisible': [('applied_on', 'not in', ('0_customer_product', '1_customer_product_category'))], 'required': [('applied_on', 'in', ('0_customer_product', '1_customer_product_category'))]}"/>
|
|
||||||
<field name="product_categ_ids" attrs="{'invisible': [('applied_on', 'not in', ('1_customer_product_category', '3_product_category'))], 'required': [('applied_on', 'in', ('1_customer_product_category', '3_product_category'))]}"/>
|
|
||||||
<field name="product_ids" attrs="{'invisible': [('applied_on', 'not in', ('0_customer_product', '2_product'))], 'required': [('applied_on', 'in', ('0_customer_product', '2_product'))]}"/>
|
|
||||||
<field name="date_start"/>
|
|
||||||
<field name="date_end"/>
|
|
||||||
</group>
|
|
||||||
<group name="compute" string="Compute">
|
|
||||||
<label for="rate"/>
|
|
||||||
<div name="rate">
|
|
||||||
<field name="rate" class="oe_inline"/> %
|
|
||||||
</div>
|
|
||||||
</group>
|
|
||||||
</sheet>
|
|
||||||
</form>
|
|
||||||
</field>
|
|
||||||
</record>
|
|
||||||
|
|
||||||
<record id="commission_rule_tree" model="ir.ui.view">
|
|
||||||
<field name="name">commission.rule.tree</field>
|
|
||||||
<field name="model">commission.rule</field>
|
|
||||||
<field name="arch" type="xml">
|
|
||||||
<tree>
|
|
||||||
<field name="profile_id" invisible="not context.get('commission_rule_main_view')"/>
|
|
||||||
<field name="applied_on"/>
|
|
||||||
<field name="date_start"/>
|
|
||||||
<field name="date_end"/>
|
|
||||||
<field name="rate" string="Rate (%)"/>
|
|
||||||
</tree>
|
|
||||||
</field>
|
|
||||||
</record>
|
|
||||||
|
|
||||||
<record id="commission_rule_search" model="ir.ui.view">
|
|
||||||
<field name="name">commission.rule.search</field>
|
|
||||||
<field name="model">commission.rule</field>
|
|
||||||
<field name="arch" type="xml">
|
|
||||||
<search>
|
|
||||||
<filter string="Archived" name="inactive" domain="[('active', '=', False)]"/>
|
|
||||||
<group name="groupby">
|
|
||||||
<filter name="profile_groupby" string="Profile" context="{'group_by': 'profile_id'}"/>
|
|
||||||
</group>
|
|
||||||
</search>
|
|
||||||
</field>
|
|
||||||
</record>
|
|
||||||
|
|
||||||
|
|
||||||
<record id="commission_rule_action" model="ir.actions.act_window">
|
|
||||||
<field name="name">Commission Rules</field>
|
|
||||||
<field name="res_model">commission.rule</field>
|
|
||||||
<field name="view_mode">tree,form</field>
|
|
||||||
<field name="context">{'commission_rule_main_view': True}</field>
|
|
||||||
</record>
|
|
||||||
|
|
||||||
|
|
||||||
<menuitem id="commission_rule_menu" action="commission_rule_action" parent="commission_config_root" sequence="20"/>
|
|
||||||
|
|
||||||
<!-- RESULT -->
|
|
||||||
<record id="commission_result_form" model="ir.ui.view">
|
|
||||||
<field name="name">commission.result.form</field>
|
|
||||||
<field name="model">commission.result</field>
|
|
||||||
<field name="arch" type="xml">
|
|
||||||
<form>
|
|
||||||
<group name="main">
|
|
||||||
<group name="main-left">
|
|
||||||
<field name="partner_id"/>
|
|
||||||
<field name="profile_id" groups="account.group_account_manager"/>
|
|
||||||
<field name="company_currency_id" invisible="1"/>
|
|
||||||
<field name="company_id" invisible="1"/>
|
|
||||||
<field name="company_id" groups="base.group_multi_company"/>
|
|
||||||
<field name="amount_total"/>
|
|
||||||
</group>
|
|
||||||
<group name="main-right">
|
|
||||||
<field name="date_range_id"/>
|
|
||||||
<field name="date_start"/>
|
|
||||||
<field name="date_end"/>
|
|
||||||
</group>
|
|
||||||
</group>
|
|
||||||
<group name="lines" string="Commission Lines">
|
|
||||||
<field nolabel="1" name="line_ids" colspan="2">
|
|
||||||
<tree>
|
|
||||||
<field name="move_id"/>
|
|
||||||
<field name="move_line_id"/>
|
|
||||||
<field name="base"/>
|
|
||||||
<field name="rate" string="Rate (%)"/>
|
|
||||||
<field name="amount" sum="1"/>
|
|
||||||
<field name="rule_id"/>
|
|
||||||
<field name="company_currency_id" invisible="1"/>
|
|
||||||
</tree>
|
|
||||||
</field>
|
|
||||||
</group>
|
|
||||||
</form>
|
|
||||||
</field>
|
|
||||||
</record>
|
|
||||||
|
|
||||||
<record id="commission_result_tree" model="ir.ui.view">
|
|
||||||
<field name="name">commission.result.tree</field>
|
|
||||||
<field name="model">commission.result</field>
|
|
||||||
<field name="arch" type="xml">
|
|
||||||
<tree>
|
|
||||||
<field name="date_range_id" optional="show"/>
|
|
||||||
<field name="date_start" optional="hide"/>
|
|
||||||
<field name="date_end" optional="hide"/>
|
|
||||||
<field name="partner_id"/>
|
|
||||||
<field name="profile_id" groups="account.group_account_manager"/>
|
|
||||||
<field name="company_currency_id" invisible="1"/>
|
|
||||||
<field name="company_id" groups="base.group_multi_company"/>
|
|
||||||
<field name="amount_total" sum="1" optional="show"/>
|
|
||||||
</tree>
|
|
||||||
</field>
|
|
||||||
</record>
|
|
||||||
|
|
||||||
<record id="commission_result_search" model="ir.ui.view">
|
|
||||||
<field name="name">commission.result.search</field>
|
|
||||||
<field name="model">commission.result</field>
|
|
||||||
<field name="arch" type="xml">
|
|
||||||
<search>
|
|
||||||
<field name="partner_id"/>
|
|
||||||
<field name="date_range_id"/>
|
|
||||||
<group name="groupby">
|
|
||||||
<filter name="partner_groupby" string="Salesman" context="{'group_by': 'partner_id'}"/>
|
|
||||||
<filter name="date_range_groupby" string="Period" context="{'group_by': 'date_range_id'}"/>
|
|
||||||
</group>
|
|
||||||
</search>
|
|
||||||
</field>
|
|
||||||
</record>
|
|
||||||
|
|
||||||
<record id="commission_result_action" model="ir.actions.act_window">
|
|
||||||
<field name="name">Commissions</field>
|
|
||||||
<field name="res_model">commission.result</field>
|
|
||||||
<field name="view_mode">tree,form</field>
|
|
||||||
</record>
|
|
||||||
|
|
||||||
<menuitem id="commission_result_menu" action="commission_result_action" parent="commission_root" sequence="10"/>
|
|
||||||
|
|
||||||
|
|
||||||
</odoo>
|
|
||||||
@@ -1,73 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<!--
|
|
||||||
Copyright 2019-2024 Akretion France (http://www.akretion.com)
|
|
||||||
@author Alexis de Lattre <alexis.delattre@akretion.com>
|
|
||||||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)
|
|
||||||
-->
|
|
||||||
|
|
||||||
<odoo>
|
|
||||||
|
|
||||||
<menuitem id="commission_root" name="Commissions" parent="account.menu_finance" sequence="11"/>
|
|
||||||
<menuitem id="commission_config_root" name="Commissions" parent="account.menu_finance_configuration" sequence="110"/>
|
|
||||||
|
|
||||||
<record id="commission_profile_form" model="ir.ui.view">
|
|
||||||
<field name="name">commission.profile.form</field>
|
|
||||||
<field name="model">commission.profile</field>
|
|
||||||
<field name="arch" type="xml">
|
|
||||||
<form>
|
|
||||||
<sheet>
|
|
||||||
<widget name="web_ribbon" title="Archived" bg_color="bg-danger" attrs="{'invisible': [('active', '=', True)]}"/>
|
|
||||||
<group name="main">
|
|
||||||
<group name="main-left">
|
|
||||||
<field name="name"/>
|
|
||||||
<field name="active" invisible="1"/>
|
|
||||||
<field name="trigger_type" widget="radio"/>
|
|
||||||
</group>
|
|
||||||
<group name="main-right">
|
|
||||||
<field name="company_id" invisible="1"/>
|
|
||||||
<field name="company_id" groups="base.group_multi_company"/>
|
|
||||||
</group>
|
|
||||||
</group>
|
|
||||||
<notebook>
|
|
||||||
<page name="assignments" string="Assignments">
|
|
||||||
<field name="assign_ids">
|
|
||||||
<tree editable="bottom">
|
|
||||||
<field name="assign_type"/>
|
|
||||||
<field name="user_id" attrs="{'required': [('assign_type', '=', 'user')], 'readonly': [('assign_type', '!=', 'user')]}"/>
|
|
||||||
<field name="company_id" groups="base.group_multi_company"/>
|
|
||||||
<field name="company_id" invisible="1"/>
|
|
||||||
</tree>
|
|
||||||
</field>
|
|
||||||
</page>
|
|
||||||
<page name="rules" string="Rules">
|
|
||||||
<field name="rule_ids"/>
|
|
||||||
</page>
|
|
||||||
</notebook>
|
|
||||||
</sheet>
|
|
||||||
</form>
|
|
||||||
</field>
|
|
||||||
</record>
|
|
||||||
|
|
||||||
<record id="commission_profile_tree" model="ir.ui.view">
|
|
||||||
<field name="name">commission.profile.tree</field>
|
|
||||||
<field name="model">commission.profile</field>
|
|
||||||
<field name="arch" type="xml">
|
|
||||||
<tree>
|
|
||||||
<field name="sequence" widget="handle"/>
|
|
||||||
<field name="name" decoration-bf="1"/>
|
|
||||||
<field name="trigger_type" optional="show"/>
|
|
||||||
<field name="company_id" groups="base.group_multi_company"/>
|
|
||||||
</tree>
|
|
||||||
</field>
|
|
||||||
</record>
|
|
||||||
|
|
||||||
<record id="commission_profile_action" model="ir.actions.act_window">
|
|
||||||
<field name="name">Commission Profiles</field>
|
|
||||||
<field name="res_model">commission.profile</field>
|
|
||||||
<field name="view_mode">tree,form</field>
|
|
||||||
</record>
|
|
||||||
|
|
||||||
<menuitem id="commission_profile_menu" action="commission_profile_action" parent="commission_config_root" sequence="18"/>
|
|
||||||
|
|
||||||
|
|
||||||
</odoo>
|
|
||||||
@@ -1,113 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<!--
|
|
||||||
Copyright 2024 Akretion France (http://www.akretion.com)
|
|
||||||
@author Alexis de Lattre <alexis.delattre@akretion.com>
|
|
||||||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)
|
|
||||||
-->
|
|
||||||
|
|
||||||
<odoo>
|
|
||||||
|
|
||||||
<record id="commission_result_form" model="ir.ui.view">
|
|
||||||
<field name="name">commission.result.form</field>
|
|
||||||
<field name="model">commission.result</field>
|
|
||||||
<field name="arch" type="xml">
|
|
||||||
<form>
|
|
||||||
<header>
|
|
||||||
<button name="draft2done" type="object" states="draft" string="Confirm" class="btn-primary"/>
|
|
||||||
<button name="backtodraft" type="object" states="done" string="Back to Draft" confirm="Are you sure you want to go back to draft?"/>
|
|
||||||
<field name="state" widget="statusbar"/>
|
|
||||||
</header>
|
|
||||||
<group name="main">
|
|
||||||
<group name="main-left">
|
|
||||||
<field name="partner_id"/>
|
|
||||||
<field name="date_range_id"/>
|
|
||||||
<field name="date_start"/>
|
|
||||||
<field name="date_end"/>
|
|
||||||
<field name="amount_total"/>
|
|
||||||
<field name="company_currency_id" invisible="1"/>
|
|
||||||
<field name="company_id" invisible="1"/>
|
|
||||||
</group>
|
|
||||||
<group name="main-right">
|
|
||||||
<field name="profile_id" groups="account.group_account_manager"/>
|
|
||||||
<field name="assign_type"/>
|
|
||||||
<field name="company_id" groups="base.group_multi_company"/>
|
|
||||||
</group>
|
|
||||||
</group>
|
|
||||||
<group name="lines" string="Commission Lines">
|
|
||||||
<field nolabel="1" name="line_ids" colspan="2">
|
|
||||||
<tree>
|
|
||||||
<field name="move_id"/>
|
|
||||||
<field name="date" optional="hide"/>
|
|
||||||
<field name="partner_id"/>
|
|
||||||
<field name="product_id"/>
|
|
||||||
<field name="product_categ_id" optional="hide"/>
|
|
||||||
<field name="name" optional="hide"/>
|
|
||||||
<field name="price_subtotal" optional="hide" string="Invoiced Amount"/>
|
|
||||||
<field name="commission_base"/>
|
|
||||||
<field name="commission_rate" string="Rate (%)"/>
|
|
||||||
<field name="commission_amount" sum="1"/>
|
|
||||||
<field name="commission_rule_id" optional="hide"/>
|
|
||||||
<field name="company_currency_id" invisible="1"/>
|
|
||||||
<field name="currency_id" invisible="1"/>
|
|
||||||
</tree>
|
|
||||||
</field>
|
|
||||||
</group>
|
|
||||||
<div class="oe_chatter">
|
|
||||||
<field name="message_follower_ids" widget="mail_followers"/>
|
|
||||||
<field name="activity_ids" widget="mail_activity"/>
|
|
||||||
<field name="message_ids" widget="mail_thread"/>
|
|
||||||
</div>
|
|
||||||
</form>
|
|
||||||
</field>
|
|
||||||
</record>
|
|
||||||
|
|
||||||
<record id="commission_result_tree" model="ir.ui.view">
|
|
||||||
<field name="name">commission.result.tree</field>
|
|
||||||
<field name="model">commission.result</field>
|
|
||||||
<field name="arch" type="xml">
|
|
||||||
<tree>
|
|
||||||
<field name="date_range_id" optional="show"/>
|
|
||||||
<field name="date_start" optional="hide"/>
|
|
||||||
<field name="date_end" optional="hide"/>
|
|
||||||
<field name="partner_id"/>
|
|
||||||
<field name="profile_id" groups="account.group_account_manager"/>
|
|
||||||
<field name="assign_type" optional="hide" widget="badge" decoration-warning="assign_type == 'user'"/>
|
|
||||||
<field name="company_currency_id" invisible="1"/>
|
|
||||||
<field name="company_id" groups="base.group_multi_company"/>
|
|
||||||
<field name="amount_total" sum="1" optional="show"/>
|
|
||||||
<field name="state" decoration-info="state == 'draft'" decoration-success="state == 'done'" widget="badge"/>
|
|
||||||
</tree>
|
|
||||||
</field>
|
|
||||||
</record>
|
|
||||||
|
|
||||||
<record id="commission_result_search" model="ir.ui.view">
|
|
||||||
<field name="name">commission.result.search</field>
|
|
||||||
<field name="model">commission.result</field>
|
|
||||||
<field name="arch" type="xml">
|
|
||||||
<search>
|
|
||||||
<field name="partner_id"/>
|
|
||||||
<field name="date_range_id"/>
|
|
||||||
<separator/>
|
|
||||||
<filter name="draft" domain="[('state', '=', 'draft')]" string="Draft"/>
|
|
||||||
<filter name="done" domain="[('state', '=', 'done')]" string="Done"/>
|
|
||||||
<separator/>
|
|
||||||
<filter name="user" domain="[('assign_type', '=', 'user')]" string="Salesman"/>
|
|
||||||
<group name="groupby">
|
|
||||||
<filter name="partner_groupby" string="Salesman" context="{'group_by': 'partner_id'}"/>
|
|
||||||
<filter name="date_range_groupby" string="Period" context="{'group_by': 'date_range_id'}"/>
|
|
||||||
<filter name="assign_type_groupby" string="Assign Type" context="{'group_by': 'assign_type'}"/>
|
|
||||||
</group>
|
|
||||||
</search>
|
|
||||||
</field>
|
|
||||||
</record>
|
|
||||||
|
|
||||||
<record id="commission_result_action" model="ir.actions.act_window">
|
|
||||||
<field name="name">Commissions</field>
|
|
||||||
<field name="res_model">commission.result</field>
|
|
||||||
<field name="view_mode">tree,form</field>
|
|
||||||
</record>
|
|
||||||
|
|
||||||
<menuitem id="commission_result_menu" action="commission_result_action" parent="commission_root" sequence="10"/>
|
|
||||||
|
|
||||||
|
|
||||||
</odoo>
|
|
||||||
@@ -1,80 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<!--
|
|
||||||
Copyright 2019 Akretion France (http://www.akretion.com)
|
|
||||||
@author Alexis de Lattre <alexis.delattre@akretion.com>
|
|
||||||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)
|
|
||||||
-->
|
|
||||||
|
|
||||||
<odoo>
|
|
||||||
|
|
||||||
<record id="commission_rule_form" model="ir.ui.view">
|
|
||||||
<field name="name">commission.rule.form</field>
|
|
||||||
<field name="model">commission.rule</field>
|
|
||||||
<field name="arch" type="xml">
|
|
||||||
<form>
|
|
||||||
<sheet>
|
|
||||||
<group name="main">
|
|
||||||
<field name="profile_id" invisible="not context.get('commission_rule_main_view')"/>
|
|
||||||
<field name="applied_on" widget="radio"/>
|
|
||||||
<field name="company_id" invisible="1"/>
|
|
||||||
</group>
|
|
||||||
<group name="match" string="Match">
|
|
||||||
<field name="partner_ids" attrs="{'invisible': [('applied_on', 'not in', ('0_customer_product', '1_customer_product_category'))], 'required': [('applied_on', 'in', ('0_customer_product', '1_customer_product_category'))]}"/>
|
|
||||||
<field name="product_categ_ids" attrs="{'invisible': [('applied_on', 'not in', ('1_customer_product_category', '3_product_category'))], 'required': [('applied_on', 'in', ('1_customer_product_category', '3_product_category'))]}"/>
|
|
||||||
<field name="product_ids" attrs="{'invisible': [('applied_on', 'not in', ('0_customer_product', '2_product'))], 'required': [('applied_on', 'in', ('0_customer_product', '2_product'))]}"/>
|
|
||||||
<field name="date_start"/>
|
|
||||||
<field name="date_end"/>
|
|
||||||
</group>
|
|
||||||
<group name="compute" string="Compute">
|
|
||||||
<label for="rate"/>
|
|
||||||
<div name="rate">
|
|
||||||
<field name="rate" class="oe_inline"/> %
|
|
||||||
</div>
|
|
||||||
<field name="base" widget="radio"/>
|
|
||||||
</group>
|
|
||||||
</sheet>
|
|
||||||
</form>
|
|
||||||
</field>
|
|
||||||
</record>
|
|
||||||
|
|
||||||
<record id="commission_rule_tree" model="ir.ui.view">
|
|
||||||
<field name="name">commission.rule.tree</field>
|
|
||||||
<field name="model">commission.rule</field>
|
|
||||||
<field name="arch" type="xml">
|
|
||||||
<tree>
|
|
||||||
<field name="profile_id" invisible="not context.get('commission_rule_main_view')"/>
|
|
||||||
<field name="applied_on"/>
|
|
||||||
<field name="date_start"/>
|
|
||||||
<field name="date_end"/>
|
|
||||||
<field name="rate" string="Rate (%)"/>
|
|
||||||
<field name="base"/>
|
|
||||||
</tree>
|
|
||||||
</field>
|
|
||||||
</record>
|
|
||||||
|
|
||||||
<record id="commission_rule_search" model="ir.ui.view">
|
|
||||||
<field name="name">commission.rule.search</field>
|
|
||||||
<field name="model">commission.rule</field>
|
|
||||||
<field name="arch" type="xml">
|
|
||||||
<search>
|
|
||||||
<filter string="Archived" name="inactive" domain="[('active', '=', False)]"/>
|
|
||||||
<group name="groupby">
|
|
||||||
<filter name="profile_groupby" string="Profile" context="{'group_by': 'profile_id'}"/>
|
|
||||||
</group>
|
|
||||||
</search>
|
|
||||||
</field>
|
|
||||||
</record>
|
|
||||||
|
|
||||||
|
|
||||||
<record id="commission_rule_action" model="ir.actions.act_window">
|
|
||||||
<field name="name">Commission Rules</field>
|
|
||||||
<field name="res_model">commission.rule</field>
|
|
||||||
<field name="view_mode">tree,form</field>
|
|
||||||
<field name="context">{'commission_rule_main_view': True}</field>
|
|
||||||
</record>
|
|
||||||
|
|
||||||
|
|
||||||
<menuitem id="commission_rule_menu" action="commission_rule_action" parent="commission_config_root" sequence="20"/>
|
|
||||||
|
|
||||||
|
|
||||||
</odoo>
|
|
||||||
@@ -1,37 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<!--
|
|
||||||
Copyright 2019-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).
|
|
||||||
-->
|
|
||||||
|
|
||||||
<odoo>
|
|
||||||
|
|
||||||
|
|
||||||
<record id="res_config_settings_view_form" model="ir.ui.view">
|
|
||||||
<field name="name">commission.res.config.settings.form</field>
|
|
||||||
<field name="model">res.config.settings</field>
|
|
||||||
<field name="inherit_id" ref="account.res_config_settings_view_form" />
|
|
||||||
<field name="arch" type="xml">
|
|
||||||
<xpath expr="//div[@id='storno']" position="after">
|
|
||||||
<h2>Commissions</h2>
|
|
||||||
<div class="row mt16 o_settings_container" id="commission_simple">
|
|
||||||
<div class="col-12 col-lg-12 o_setting_box" id="commission_simple-settings">
|
|
||||||
<div class="o_setting_left_pane" />
|
|
||||||
<div class="o_setting_right_pane">
|
|
||||||
<div class="row" id="commission_date_range_type_id">
|
|
||||||
<label
|
|
||||||
for="commission_date_range_type_id"
|
|
||||||
class="col-md-5"
|
|
||||||
/>
|
|
||||||
<field name="commission_date_range_type_id" />
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</xpath>
|
|
||||||
</field>
|
|
||||||
</record>
|
|
||||||
|
|
||||||
|
|
||||||
</odoo>
|
|
||||||
@@ -1,36 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<!--
|
|
||||||
Copyright 2019-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)
|
|
||||||
-->
|
|
||||||
|
|
||||||
<odoo>
|
|
||||||
|
|
||||||
|
|
||||||
<record id="view_users_form" model="ir.ui.view">
|
|
||||||
<field name="name">commission.res.users.form</field>
|
|
||||||
<field name="model">res.users</field>
|
|
||||||
<field name="inherit_id" ref="base.view_users_form"/>
|
|
||||||
<field name="arch" type="xml">
|
|
||||||
<group name="preferences" position="after">
|
|
||||||
<group name="commission" string="Commission" groups="account.group_account_manager">
|
|
||||||
<field name="commission_profile_id"/>
|
|
||||||
</group>
|
|
||||||
</group>
|
|
||||||
</field>
|
|
||||||
</record>
|
|
||||||
|
|
||||||
<record id="view_users_tree" model="ir.ui.view">
|
|
||||||
<field name="name">commission.res.users.tree</field>
|
|
||||||
<field name="model">res.users</field>
|
|
||||||
<field name="inherit_id" ref="base.view_users_tree"/>
|
|
||||||
<field name="arch" type="xml">
|
|
||||||
<field name="login_date" position="after">
|
|
||||||
<field name="commission_profile_id" optional="hide" groups="account.group_account_manager"/>
|
|
||||||
</field>
|
|
||||||
</field>
|
|
||||||
</record>
|
|
||||||
|
|
||||||
|
|
||||||
</odoo>
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
from . import commission_compute
|
|
||||||
from . import res_config_settings
|
|
||||||
@@ -1,77 +0,0 @@
|
|||||||
# Copyright 2019-2024 Akretion France (http://www.akretion.com)
|
|
||||||
# @author Alexis de Lattre <alexis.delattre@akretion.com>
|
|
||||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
|
||||||
|
|
||||||
from odoo import api, fields, models, _
|
|
||||||
from dateutil.relativedelta import relativedelta
|
|
||||||
from odoo.exceptions import UserError
|
|
||||||
import logging
|
|
||||||
logger = logging.getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
class CommissionCompute(models.TransientModel):
|
|
||||||
_name = 'commission.compute'
|
|
||||||
_description = 'Compute Commissions'
|
|
||||||
|
|
||||||
company_id = fields.Many2one('res.company', required=True, default=lambda self: self.env.company)
|
|
||||||
date_range_type_id = fields.Many2one(related='company_id.commission_date_range_type_id')
|
|
||||||
date_range_id = fields.Many2one(
|
|
||||||
'date.range', required=True, string='Period',
|
|
||||||
compute='_compute_date_range_id', store=True, precompute=True, readonly=False,
|
|
||||||
domain="[('type_id', '=', date_range_type_id)]")
|
|
||||||
date_start = fields.Date(related='date_range_id.date_start')
|
|
||||||
date_end = fields.Date(related='date_range_id.date_end')
|
|
||||||
|
|
||||||
@api.depends('company_id')
|
|
||||||
def _compute_date_range_id(self):
|
|
||||||
for wiz in self:
|
|
||||||
date_range_id = False
|
|
||||||
company = wiz.company_id
|
|
||||||
if company and company.commission_date_range_type_id:
|
|
||||||
type_id = company.commission_date_range_type_id.id
|
|
||||||
last_commission_result = self.env['commission.result'].search([
|
|
||||||
('company_id', '=', company.id),
|
|
||||||
], order='date_end desc', limit=1)
|
|
||||||
limit_date = last_commission_result and last_commission_result.date_end or (fields.Date.context_today(self) + relativedelta(months=-2, day=31))
|
|
||||||
date_range = self.env['date.range'].search([
|
|
||||||
('company_id', 'in', (company.id, False)),
|
|
||||||
('type_id', '=', type_id),
|
|
||||||
('date_start', '>', limit_date)
|
|
||||||
], order='date_start', limit=1)
|
|
||||||
date_range_id = date_range and date_range.id or False
|
|
||||||
wiz.date_range_id = date_range_id
|
|
||||||
|
|
||||||
def run(self):
|
|
||||||
self.ensure_one()
|
|
||||||
creso = self.env['commission.result']
|
|
||||||
date_range = self.date_range_id
|
|
||||||
existing_commissions = creso.search([
|
|
||||||
('date_range_id', '=', date_range.id),
|
|
||||||
('company_id', '=', self.company_id.id),
|
|
||||||
])
|
|
||||||
if existing_commissions:
|
|
||||||
raise UserError(_(
|
|
||||||
'Commissions already exist for %(period)s in company %(company)s.',
|
|
||||||
period=date_range.display_name, company=self.company_id.display_name))
|
|
||||||
com_result_ids = self._core_compute()
|
|
||||||
if not com_result_ids:
|
|
||||||
raise UserError(_('No commissions generated.'))
|
|
||||||
action = self.env['ir.actions.actions']._for_xml_id(
|
|
||||||
'commission_simple.commission_result_action')
|
|
||||||
action.update({
|
|
||||||
'views': False,
|
|
||||||
'domain': f"[('id', 'in', {com_result_ids})]",
|
|
||||||
})
|
|
||||||
return action
|
|
||||||
|
|
||||||
def _core_compute(self):
|
|
||||||
rules = self.env['commission.rule'].load_all_rules()
|
|
||||||
com_result_ids = []
|
|
||||||
assignments = self.env['commission.profile.assignment'].search([('company_id', '=', self.company_id.id)])
|
|
||||||
for assignment in assignments:
|
|
||||||
com_result = assignment._generate_commission_result(self.date_range_id, rules)
|
|
||||||
if com_result:
|
|
||||||
com_result_ids.append(com_result.id)
|
|
||||||
else:
|
|
||||||
logger.info("No commission for %s", assignment._get_partner().display_name)
|
|
||||||
return com_result_ids
|
|
||||||
@@ -1,41 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<!--
|
|
||||||
Copyright 2019-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).
|
|
||||||
-->
|
|
||||||
|
|
||||||
<odoo>
|
|
||||||
|
|
||||||
<record id="commission_compute_form" model="ir.ui.view">
|
|
||||||
<field name="name">commission.compute.form</field>
|
|
||||||
<field name="model">commission.compute</field>
|
|
||||||
<field name="arch" type="xml">
|
|
||||||
<form>
|
|
||||||
<group name="main">
|
|
||||||
<field name="company_id" groups="base.group_multi_company"/>
|
|
||||||
<field name="company_id" invisible="1"/>
|
|
||||||
<field name="date_range_type_id" invisible="1"/>
|
|
||||||
<field name="date_range_id"/>
|
|
||||||
<field name="date_start"/>
|
|
||||||
<field name="date_end"/>
|
|
||||||
</group>
|
|
||||||
<footer>
|
|
||||||
<button name="run" type="object" string="Compute"
|
|
||||||
class="btn-primary"/>
|
|
||||||
<button special="cancel" string="Cancel"/>
|
|
||||||
</footer>
|
|
||||||
</form>
|
|
||||||
</field>
|
|
||||||
</record>
|
|
||||||
|
|
||||||
<record id="commission_compute_action" model="ir.actions.act_window">
|
|
||||||
<field name="name">Compute Commissions</field>
|
|
||||||
<field name="res_model">commission.compute</field>
|
|
||||||
<field name="view_mode">form</field>
|
|
||||||
<field name="target">new</field>
|
|
||||||
</record>
|
|
||||||
|
|
||||||
<menuitem id="commission_compute_menu" action="commission_compute_action" parent="commission_root" sequence="15" groups="account.group_account_user"/>
|
|
||||||
|
|
||||||
</odoo>
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
# Copyright 2019-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).
|
|
||||||
|
|
||||||
from odoo import fields, models
|
|
||||||
|
|
||||||
|
|
||||||
class ResConfigSettings(models.TransientModel):
|
|
||||||
_inherit = 'res.config.settings'
|
|
||||||
|
|
||||||
commission_date_range_type_id = fields.Many2one(
|
|
||||||
related='company_id.commission_date_range_type_id', readonly=False)
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
from . import models
|
|
||||||
@@ -1,22 +0,0 @@
|
|||||||
# Copyright 2019-2024 Akretion France (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': 'Commission Simple Agent',
|
|
||||||
'version': '16.0.1.0.0',
|
|
||||||
'category': 'Sales',
|
|
||||||
'license': 'AGPL-3',
|
|
||||||
'summary': 'Glue module between commission_simple and sale_agent',
|
|
||||||
'author': 'Akretion',
|
|
||||||
'website': 'https://github.com/akretion/odoo-usability',
|
|
||||||
'depends': [
|
|
||||||
'commission_simple',
|
|
||||||
'sale_agent',
|
|
||||||
],
|
|
||||||
'data': [
|
|
||||||
'views/commission_profile.xml',
|
|
||||||
'views/commission_result.xml',
|
|
||||||
],
|
|
||||||
'installable': True,
|
|
||||||
}
|
|
||||||
@@ -1,44 +0,0 @@
|
|||||||
# Translation of Odoo Server.
|
|
||||||
# This file contains the translation of the following modules:
|
|
||||||
# * commission_simple_agent
|
|
||||||
#
|
|
||||||
msgid ""
|
|
||||||
msgstr ""
|
|
||||||
"Project-Id-Version: Odoo Server 16.0\n"
|
|
||||||
"Report-Msgid-Bugs-To: \n"
|
|
||||||
"POT-Creation-Date: 2024-11-29 23:32+0000\n"
|
|
||||||
"PO-Revision-Date: 2024-11-29 23:32+0000\n"
|
|
||||||
"Last-Translator: Alexis de Lattre <alexis.delattre@akretion.com>\n"
|
|
||||||
"Language-Team: \n"
|
|
||||||
"Language: fr\n"
|
|
||||||
"MIME-Version: 1.0\n"
|
|
||||||
"Content-Type: text/plain; charset=UTF-8\n"
|
|
||||||
"Content-Transfer-Encoding: \n"
|
|
||||||
"Plural-Forms: \n"
|
|
||||||
|
|
||||||
#. module: commission_simple_agent
|
|
||||||
#. odoo-python
|
|
||||||
#: code:addons/commission_simple_agent/models/commission_profile_assignment.py:0
|
|
||||||
#: model:ir.model.fields,field_description:commission_simple_agent.field_commission_profile_assignment__agent_id
|
|
||||||
#: model_terms:ir.ui.view,arch_db:commission_simple_agent.commission_result_search
|
|
||||||
#, python-format
|
|
||||||
msgid "Agent"
|
|
||||||
msgstr "Agent"
|
|
||||||
|
|
||||||
#. module: commission_simple_agent
|
|
||||||
#. odoo-python
|
|
||||||
#: code:addons/commission_simple_agent/models/commission_profile_assignment.py:0
|
|
||||||
#, python-format
|
|
||||||
msgid "An agent must be selected when the assignment type is 'Agent'."
|
|
||||||
msgstr ""
|
|
||||||
"Un agent doit être sélectionné lorsque le type d'affectation est \"Agent\"."
|
|
||||||
|
|
||||||
#. module: commission_simple_agent
|
|
||||||
#: model:ir.model,name:commission_simple_agent.model_commission_profile_assignment
|
|
||||||
msgid "Commission Profile Assignment"
|
|
||||||
msgstr "Affectation du profil de commission"
|
|
||||||
|
|
||||||
#. module: commission_simple_agent
|
|
||||||
#: model:ir.model.constraint,message:commission_simple_agent.constraint_commission_profile_assignment_company_agent_uniq
|
|
||||||
msgid "This agent already has an assignment in this company."
|
|
||||||
msgstr "Cet agent a déjà une affectation dans cette société."
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
from . import commission_profile_assignment
|
|
||||||
@@ -1,51 +0,0 @@
|
|||||||
# Copyright Akretion France (http://www.akretion.com/)
|
|
||||||
# @author Alexis de Lattre <alexis.delattre@akretion.com>
|
|
||||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
|
||||||
|
|
||||||
from odoo import api, fields, models, _
|
|
||||||
from odoo.exceptions import ValidationError
|
|
||||||
|
|
||||||
|
|
||||||
class CommissionProfileAssignment(models.Model):
|
|
||||||
_inherit = "commission.profile.assignment"
|
|
||||||
|
|
||||||
agent_id = fields.Many2one(
|
|
||||||
'res.partner', ondelete='restrict',
|
|
||||||
compute="_compute_agent_id", store=True, precompute=True, readonly=False,
|
|
||||||
domain=[('agent', '=', True)])
|
|
||||||
|
|
||||||
_sql_constraints = [
|
|
||||||
(
|
|
||||||
'company_agent_uniq',
|
|
||||||
'unique(agent_id, company_id)',
|
|
||||||
'This agent already has an assignment in this company.')]
|
|
||||||
|
|
||||||
@api.model
|
|
||||||
def _assign_type_selection(self):
|
|
||||||
sel = super()._assign_type_selection()
|
|
||||||
sel.append(('agent', _('Agent')))
|
|
||||||
return sel
|
|
||||||
|
|
||||||
@api.constrains('assign_type', 'agent_id')
|
|
||||||
def _check_agent(self):
|
|
||||||
for assignment in self:
|
|
||||||
if assignment.assign_type == 'agent' and not assignment.agent_id:
|
|
||||||
raise ValidationError(_("An agent must be selected when the assignment type is 'Agent'."))
|
|
||||||
|
|
||||||
@api.depends('assign_type')
|
|
||||||
def _compute_agent_id(self):
|
|
||||||
for assign in self:
|
|
||||||
if assign.assign_type != 'agent':
|
|
||||||
assign.agent_id = False
|
|
||||||
|
|
||||||
def _prepare_move_line_domain(self, date_range):
|
|
||||||
domain = super()._prepare_move_line_domain(date_range)
|
|
||||||
if self.assign_type == 'agent':
|
|
||||||
domain.append(('move_id.invoice_agent_id', '=', self.agent_id.id))
|
|
||||||
return domain
|
|
||||||
|
|
||||||
def _get_partner(self):
|
|
||||||
self.ensure_one()
|
|
||||||
if self.assign_type == 'agent':
|
|
||||||
return self.agent_id
|
|
||||||
return super()._get_partner()
|
|
||||||
@@ -1,21 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<!--
|
|
||||||
Copyright 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)
|
|
||||||
-->
|
|
||||||
|
|
||||||
<odoo>
|
|
||||||
|
|
||||||
<record id="commission_profile_form" model="ir.ui.view">
|
|
||||||
<field name="model">commission.profile</field>
|
|
||||||
<field name="inherit_id" ref="commission_simple.commission_profile_form"/>
|
|
||||||
<field name="arch" type="xml">
|
|
||||||
<xpath expr="//field[@name='assign_ids']/tree/field[@name='user_id']" position="after">
|
|
||||||
<field name="agent_id" attrs="{'required': [('assign_type', '=', 'agent')], 'readonly': [('assign_type', '!=', 'agent')]}"/>
|
|
||||||
</xpath>
|
|
||||||
</field>
|
|
||||||
</record>
|
|
||||||
|
|
||||||
|
|
||||||
</odoo>
|
|
||||||
@@ -1,32 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<!--
|
|
||||||
Copyright 2024 Akretion France (http://www.akretion.com)
|
|
||||||
@author Alexis de Lattre <alexis.delattre@akretion.com>
|
|
||||||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)
|
|
||||||
-->
|
|
||||||
|
|
||||||
<odoo>
|
|
||||||
|
|
||||||
<record id="commission_result_tree" model="ir.ui.view">
|
|
||||||
<field name="model">commission.result</field>
|
|
||||||
<field name="inherit_id" ref="commission_simple.commission_result_tree"/>
|
|
||||||
<field name="arch" type="xml">
|
|
||||||
<field name="assign_type" position="attributes">
|
|
||||||
<attribute name="decoration-danger">assign_type == 'agent'</attribute>
|
|
||||||
</field>
|
|
||||||
</field>
|
|
||||||
</record>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<record id="commission_result_search" model="ir.ui.view">
|
|
||||||
<field name="model">commission.result</field>
|
|
||||||
<field name="inherit_id" ref="commission_simple.commission_result_search"/>
|
|
||||||
<field name="arch" type="xml">
|
|
||||||
<filter name="user" position="after">
|
|
||||||
<filter name="agent" domain="[('assign_type', '=', 'agent')]" string="Agent"/>
|
|
||||||
</filter>
|
|
||||||
</field>
|
|
||||||
</record>
|
|
||||||
|
|
||||||
</odoo>
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
from . import models
|
|
||||||
from . import wizards
|
|
||||||
@@ -1,22 +0,0 @@
|
|||||||
# Copyright 2019-2024 Akretion France (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': 'Commission Simple Agent Purchase',
|
|
||||||
'version': '16.0.1.0.0',
|
|
||||||
'category': 'Sales',
|
|
||||||
'license': 'AGPL-3',
|
|
||||||
'summary': 'Glue module between commission_simple_agent and purchase',
|
|
||||||
'author': 'Akretion',
|
|
||||||
'website': 'https://github.com/akretion/odoo-usability',
|
|
||||||
'depends': [
|
|
||||||
'commission_simple_agent',
|
|
||||||
'purchase',
|
|
||||||
],
|
|
||||||
'data': [
|
|
||||||
'views/commission_result.xml',
|
|
||||||
'wizards/res_config_settings.xml',
|
|
||||||
],
|
|
||||||
'installable': True,
|
|
||||||
}
|
|
||||||
@@ -1,79 +0,0 @@
|
|||||||
# Translation of Odoo Server.
|
|
||||||
# This file contains the translation of the following modules:
|
|
||||||
# * commission_simple_agent_purchase
|
|
||||||
#
|
|
||||||
msgid ""
|
|
||||||
msgstr ""
|
|
||||||
"Project-Id-Version: Odoo Server 16.0\n"
|
|
||||||
"Report-Msgid-Bugs-To: \n"
|
|
||||||
"POT-Creation-Date: 2024-11-29 23:33+0000\n"
|
|
||||||
"PO-Revision-Date: 2024-11-29 23:34+0000\n"
|
|
||||||
"Last-Translator: Alexis de Lattre <alexis.delattre@akretion.com>\n"
|
|
||||||
"Language-Team: \n"
|
|
||||||
"Language: fr\n"
|
|
||||||
"MIME-Version: 1.0\n"
|
|
||||||
"Content-Type: text/plain; charset=UTF-8\n"
|
|
||||||
"Content-Transfer-Encoding: \n"
|
|
||||||
"Plural-Forms: \n"
|
|
||||||
|
|
||||||
#. module: commission_simple_agent_purchase
|
|
||||||
#. odoo-python
|
|
||||||
#: code:addons/commission_simple_agent_purchase/models/commission_result.py:0
|
|
||||||
#, python-format
|
|
||||||
msgid ""
|
|
||||||
"Cannot delete commission %(commission)s because it is linked to purchase "
|
|
||||||
"order %(po)s. You must delete the purchase order first."
|
|
||||||
msgstr ""
|
|
||||||
"Impossible de supprimer la commission %(commission)s car elle est liée à la "
|
|
||||||
"commande fournisseur %(po)s. Vous devez d'abord supprimer la commande "
|
|
||||||
"fournisseur."
|
|
||||||
|
|
||||||
#. module: commission_simple_agent_purchase
|
|
||||||
#. odoo-python
|
|
||||||
#: code:addons/commission_simple_agent_purchase/models/commission_result.py:0
|
|
||||||
#, python-format
|
|
||||||
msgid "Commission %s"
|
|
||||||
msgstr "Commission %s"
|
|
||||||
|
|
||||||
#. module: commission_simple_agent_purchase
|
|
||||||
#: model:ir.model.fields,field_description:commission_simple_agent_purchase.field_res_company__commission_product_id
|
|
||||||
#: model:ir.model.fields,field_description:commission_simple_agent_purchase.field_res_config_settings__commission_product_id
|
|
||||||
msgid "Commission Product"
|
|
||||||
msgstr "Produit de commission"
|
|
||||||
|
|
||||||
#. module: commission_simple_agent_purchase
|
|
||||||
#: model:ir.model,name:commission_simple_agent_purchase.model_commission_result
|
|
||||||
msgid "Commission Result"
|
|
||||||
msgstr "État des commissions"
|
|
||||||
|
|
||||||
#. module: commission_simple_agent_purchase
|
|
||||||
#. odoo-python
|
|
||||||
#: code:addons/commission_simple_agent_purchase/models/commission_result.py:0
|
|
||||||
#, python-format
|
|
||||||
msgid "Commission product is not set on company %s."
|
|
||||||
msgstr "Le produit de commission n'est pas défini sur la société %s."
|
|
||||||
|
|
||||||
#. module: commission_simple_agent_purchase
|
|
||||||
#: model:ir.model,name:commission_simple_agent_purchase.model_res_company
|
|
||||||
msgid "Companies"
|
|
||||||
msgstr "Sociétés"
|
|
||||||
|
|
||||||
#. module: commission_simple_agent_purchase
|
|
||||||
#: model:ir.model,name:commission_simple_agent_purchase.model_res_config_settings
|
|
||||||
msgid "Config Settings"
|
|
||||||
msgstr "Configuration"
|
|
||||||
|
|
||||||
#. module: commission_simple_agent_purchase
|
|
||||||
#: model:ir.model.fields,field_description:commission_simple_agent_purchase.field_commission_result__purchase_id
|
|
||||||
msgid "Purchase Order"
|
|
||||||
msgstr "Commande fournisseur"
|
|
||||||
|
|
||||||
#. module: commission_simple_agent_purchase
|
|
||||||
#. odoo-python
|
|
||||||
#: code:addons/commission_simple_agent_purchase/models/commission_result.py:0
|
|
||||||
#, python-format
|
|
||||||
msgid ""
|
|
||||||
"Purchase Order %s has already been confirmed. You should cancel it first."
|
|
||||||
msgstr ""
|
|
||||||
"La commande fournisseur %s a déjà été confirmée. Vous devez d'abord "
|
|
||||||
"l'annuler."
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
from . import commission_result
|
|
||||||
from . import res_company
|
|
||||||
@@ -1,78 +0,0 @@
|
|||||||
# Copyright 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).
|
|
||||||
|
|
||||||
from odoo import fields, models, _
|
|
||||||
from odoo.exceptions import UserError
|
|
||||||
from odoo.tools.misc import format_amount, formatLang
|
|
||||||
|
|
||||||
|
|
||||||
class CommissionResult(models.Model):
|
|
||||||
_inherit = 'commission.result'
|
|
||||||
|
|
||||||
purchase_id = fields.Many2one('purchase.order', string="Purchase Order", tracking=True, readonly=True)
|
|
||||||
|
|
||||||
def draft2done(self):
|
|
||||||
for result in self:
|
|
||||||
if result.assign_type == 'agent':
|
|
||||||
if not result.purchase_id:
|
|
||||||
vals = result._prepare_purchase_order()
|
|
||||||
po = self.env['purchase.order'].create(vals)
|
|
||||||
result.write({'purchase_id': po.id})
|
|
||||||
else:
|
|
||||||
po = self.purchase_id
|
|
||||||
if po.state in ('draft', 'sent', 'cancel'):
|
|
||||||
po.order_line.unlink()
|
|
||||||
else:
|
|
||||||
raise UserError(_("Purchase Order %s has already been confirmed. You should cancel it first.") % po.display_name)
|
|
||||||
if po.state == 'cancel':
|
|
||||||
po.button_draft()
|
|
||||||
assert not po.order_line
|
|
||||||
# create lines
|
|
||||||
if not result.company_id.commission_product_id:
|
|
||||||
raise UserError(_("Commission product is not set on company %s.") % result.company_id.display_name)
|
|
||||||
line_vals = []
|
|
||||||
for move_line in result.line_ids:
|
|
||||||
line_vals.append(result._prepare_purchase_order_line(move_line, po))
|
|
||||||
po_lines = self.env['purchase.order.line'].create(line_vals)
|
|
||||||
po_lines._compute_tax_id()
|
|
||||||
return super().draft2done()
|
|
||||||
|
|
||||||
def _prepare_purchase_order(self):
|
|
||||||
self.ensure_one()
|
|
||||||
fp = self.env['account.fiscal.position']._get_fiscal_position(self.partner_id)
|
|
||||||
vals = {
|
|
||||||
'partner_id': self.partner_id.id,
|
|
||||||
'origin': _('Commission %s') % self.date_range_id.display_name,
|
|
||||||
'company_id': self.company_id.id,
|
|
||||||
'currency_id': self.company_id.currency_id.id,
|
|
||||||
'fiscal_position_id': fp and fp.id or False,
|
|
||||||
'payment_term_id': self.partner_id.property_supplier_payment_term_id.id,
|
|
||||||
}
|
|
||||||
return vals
|
|
||||||
|
|
||||||
def _prepare_purchase_order_line(self, move_line, order):
|
|
||||||
self.ensure_one()
|
|
||||||
move = move_line.move_id
|
|
||||||
company_currency = move_line.company_id.currency_id
|
|
||||||
lang = self.partner_id.lang or self.env.lang
|
|
||||||
env = self.with_context(lang=lang).env
|
|
||||||
product = self.company_id.commission_product_id
|
|
||||||
vals = {
|
|
||||||
'order_id': order.id,
|
|
||||||
'product_id': product.id,
|
|
||||||
'name': f"""{move.name} {move.commercial_partner_id.name}: {move_line.product_id.display_name} x {formatLang(env, move_line.quantity, dp='Product Unit of Measure')} {move_line.product_uom_id.display_name}\n{_('Base:')} {format_amount(env, move_line.commission_base, company_currency)} - {_('Rate:')} {formatLang(env, move_line.commission_rate, dp='Commission Rate')} %""",
|
|
||||||
'product_qty': 1,
|
|
||||||
'product_uom': product.uom_id.id,
|
|
||||||
'price_unit': move_line.commission_amount,
|
|
||||||
}
|
|
||||||
return vals
|
|
||||||
|
|
||||||
def unlink(self):
|
|
||||||
for result in self:
|
|
||||||
if result.purchase_id:
|
|
||||||
raise UserError(_(
|
|
||||||
"Cannot delete commission %(commission)s because it is linked to "
|
|
||||||
"purchase order %(po)s. You must delete the purchase order first.",
|
|
||||||
commission=result.display_name, po=result.purchase_id.display_name))
|
|
||||||
return super().unlink()
|
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
# Copyright 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).
|
|
||||||
|
|
||||||
|
|
||||||
from odoo import fields, models
|
|
||||||
|
|
||||||
|
|
||||||
class ResCompany(models.Model):
|
|
||||||
_inherit = 'res.company'
|
|
||||||
|
|
||||||
commission_product_id = fields.Many2one(
|
|
||||||
'product.product', string='Commission Product', ondelete='restrict', check_company=True,
|
|
||||||
domain=[('type', '=', 'service')])
|
|
||||||
@@ -1,21 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<!--
|
|
||||||
Copyright 2019 Akretion France (http://www.akretion.com)
|
|
||||||
@author Alexis de Lattre <alexis.delattre@akretion.com>
|
|
||||||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)
|
|
||||||
-->
|
|
||||||
|
|
||||||
<odoo>
|
|
||||||
|
|
||||||
<record id="commission_result_form" model="ir.ui.view">
|
|
||||||
<field name="model">commission.result</field>
|
|
||||||
<field name="inherit_id" ref="commission_simple.commission_result_form"/>
|
|
||||||
<field name="arch" type="xml">
|
|
||||||
<group name="main-right" position="inside">
|
|
||||||
<field name="purchase_id" attrs="{'invisible': [('assign_type', '!=', 'agent')]}"/>
|
|
||||||
</group>
|
|
||||||
</field>
|
|
||||||
</record>
|
|
||||||
|
|
||||||
|
|
||||||
</odoo>
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
from . import res_config_settings
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
# Copyright 2019-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).
|
|
||||||
|
|
||||||
from odoo import fields, models
|
|
||||||
|
|
||||||
|
|
||||||
class ResConfigSettings(models.TransientModel):
|
|
||||||
_inherit = 'res.config.settings'
|
|
||||||
|
|
||||||
commission_product_id = fields.Many2one(
|
|
||||||
related='company_id.commission_product_id', readonly=False)
|
|
||||||
@@ -1,26 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<!--
|
|
||||||
Copyright 2019-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).
|
|
||||||
-->
|
|
||||||
|
|
||||||
<odoo>
|
|
||||||
|
|
||||||
|
|
||||||
<record id="res_config_settings_view_form" model="ir.ui.view">
|
|
||||||
<field name="name">commission.res.config.settings.form</field>
|
|
||||||
<field name="model">res.config.settings</field>
|
|
||||||
<field name="inherit_id" ref="commission_simple.res_config_settings_view_form" />
|
|
||||||
<field name="arch" type="xml">
|
|
||||||
<xpath expr="//div[@id='commission_simple-settings']/div[hasclass('o_setting_right_pane')]" position="inside">
|
|
||||||
<div class="row" id="commission_product_id">
|
|
||||||
<label for="commission_product_id" class="col-md-5" />
|
|
||||||
<field name="commission_product_id" context="{'default_detailed_type': 'service', 'default_purchase_ok': True, 'default_sale_ok': False, 'default_available_in_pos': False, 'default_purchase_method': 'purchase'}"/>
|
|
||||||
</div>
|
|
||||||
</xpath>
|
|
||||||
</field>
|
|
||||||
</record>
|
|
||||||
|
|
||||||
|
|
||||||
</odoo>
|
|
||||||
@@ -1,66 +0,0 @@
|
|||||||
# Translation of Odoo Server.
|
|
||||||
# This file contains the translation of the following modules:
|
|
||||||
# * crm_usability
|
|
||||||
#
|
|
||||||
msgid ""
|
|
||||||
msgstr ""
|
|
||||||
"Project-Id-Version: Odoo Server 16.0\n"
|
|
||||||
"Report-Msgid-Bugs-To: \n"
|
|
||||||
"POT-Creation-Date: 2024-07-07 14:23+0000\n"
|
|
||||||
"PO-Revision-Date: 2024-07-07 14:23+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: crm_usability
|
|
||||||
#: model_terms:ir.ui.view,arch_db:crm_usability.view_calendar_event_form
|
|
||||||
msgid "CRM"
|
|
||||||
msgstr "CRM"
|
|
||||||
|
|
||||||
#. module: crm_usability
|
|
||||||
#: model_terms:ir.ui.view,arch_db:crm_usability.view_crm_case_opportunities_filter
|
|
||||||
msgid "Customer"
|
|
||||||
msgstr "Client"
|
|
||||||
|
|
||||||
#. module: crm_usability
|
|
||||||
#: model_terms:ir.ui.view,arch_db:crm_usability.view_calendar_event_form
|
|
||||||
msgid "Discard"
|
|
||||||
msgstr "Ne pas sauvegarder"
|
|
||||||
|
|
||||||
#. module: crm_usability
|
|
||||||
#: model:ir.model.fields,help:crm_usability.field_crm_lead__date_deadline
|
|
||||||
msgid "Estimate of the date on which the opportunity will be won."
|
|
||||||
msgstr "Estimation de la date à laquelle l'opportunité sera gagnée."
|
|
||||||
|
|
||||||
#. module: crm_usability
|
|
||||||
#: model:ir.model.fields,field_description:crm_usability.field_crm_lead__date_deadline
|
|
||||||
msgid "Expected Closing"
|
|
||||||
msgstr "Date estimée"
|
|
||||||
|
|
||||||
#. module: crm_usability
|
|
||||||
#: model:ir.model,name:crm_usability.model_crm_lead
|
|
||||||
msgid "Lead/Opportunity"
|
|
||||||
msgstr "Piste/Opportunité"
|
|
||||||
|
|
||||||
#. module: crm_usability
|
|
||||||
#: model:ir.model.fields,field_description:crm_usability.field_crm_lead__name
|
|
||||||
msgid "Opportunity"
|
|
||||||
msgstr "Opportunité"
|
|
||||||
|
|
||||||
#. module: crm_usability
|
|
||||||
#: model:ir.model.fields,field_description:crm_usability.field_crm_lead__probability
|
|
||||||
msgid "Probability"
|
|
||||||
msgstr "Probabilité"
|
|
||||||
|
|
||||||
#. module: crm_usability
|
|
||||||
#: model_terms:ir.ui.view,arch_db:crm_usability.view_calendar_event_form
|
|
||||||
msgid "Save & Close"
|
|
||||||
msgstr "Sauvegarder et fermer"
|
|
||||||
|
|
||||||
#. module: crm_usability
|
|
||||||
#: model_terms:ir.ui.view,arch_db:crm_usability.view_calendar_event_form
|
|
||||||
msgid "Save & Send"
|
|
||||||
msgstr "Sauvegarder et envoyer"
|
|
||||||
@@ -19,29 +19,4 @@
|
|||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
|
|
||||||
|
|
||||||
<record id="view_calendar_event_form" model="ir.ui.view">
|
|
||||||
<field name="name">calendar.event.form.usability</field>
|
|
||||||
<field name="model">calendar.event</field>
|
|
||||||
<field name="inherit_id" ref="calendar.view_calendar_event_form"/>
|
|
||||||
<field name="arch" type="xml">
|
|
||||||
<!-- Add "Opportunity" field on calendar event -->
|
|
||||||
<notebook position="inside">
|
|
||||||
<page name="crm" string="CRM">
|
|
||||||
<group>
|
|
||||||
<field name="opportunity_id" />
|
|
||||||
</group>
|
|
||||||
</page>
|
|
||||||
</notebook>
|
|
||||||
|
|
||||||
<!-- Add "send & save" button next to "save & close" -->
|
|
||||||
<form position="inside">
|
|
||||||
<footer>
|
|
||||||
<button name="action_open_composer" type="object" string="Save & Send" class="btn btn-primary" />
|
|
||||||
<button string="Save & Close" special="save" />
|
|
||||||
<button string="Discard" special="cancel"/>
|
|
||||||
</footer>
|
|
||||||
</form>
|
|
||||||
</field>
|
|
||||||
</record>
|
|
||||||
</odoo>
|
</odoo>
|
||||||
|
|||||||
@@ -1,31 +0,0 @@
|
|||||||
# Translation of Odoo Server.
|
|
||||||
# This file contains the translation of the following modules:
|
|
||||||
# * delivery_usability
|
|
||||||
#
|
|
||||||
msgid ""
|
|
||||||
msgstr ""
|
|
||||||
"Project-Id-Version: Odoo Server 16.0\n"
|
|
||||||
"Report-Msgid-Bugs-To: \n"
|
|
||||||
"POT-Creation-Date: 2024-07-07 14:40+0000\n"
|
|
||||||
"PO-Revision-Date: 2024-07-07 14:40+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: delivery_usability
|
|
||||||
#: model:ir.model.fields,field_description:delivery_usability.field_stock_picking__carrier_id
|
|
||||||
msgid "Carrier"
|
|
||||||
msgstr "Transporteur"
|
|
||||||
|
|
||||||
#. module: delivery_usability
|
|
||||||
#: model:ir.model.fields,field_description:delivery_usability.field_stock_picking__carrier_tracking_ref
|
|
||||||
msgid "Tracking Reference"
|
|
||||||
msgstr "Numéro de suivi"
|
|
||||||
|
|
||||||
#. module: delivery_usability
|
|
||||||
#: model:ir.model,name:delivery_usability.model_stock_picking
|
|
||||||
msgid "Transfer"
|
|
||||||
msgstr "Transfert"
|
|
||||||
@@ -3,20 +3,19 @@
|
|||||||
<odoo>
|
<odoo>
|
||||||
|
|
||||||
<menuitem id="conf_tech" parent="base.menu_administration" name="🧰" groups="base.group_erp_manager" sequence="1">
|
<menuitem id="conf_tech" parent="base.menu_administration" name="🧰" groups="base.group_erp_manager" sequence="1">
|
||||||
<menuitem id="model" name="Models" action="base.action_model_model" sequence="10"/>
|
<menuitem id="model" name="Model" action="base.action_model_model" sequence="10"/>
|
||||||
<menuitem id="fields" name="Fields" action="base.action_model_fields" sequence="10"/>
|
<menuitem id="view" name="View" action="base.action_ui_view" sequence="20" />
|
||||||
<menuitem id="rec_rule" name="📑 Record Rules" action="base.action_rule" sequence="20" />
|
<menuitem id="rec_rule" name="Record Rule" action="base.action_rule" sequence="30" />
|
||||||
<menuitem id="view" name="Views" action="base.action_ui_view" sequence="30" />
|
<menuitem id="menu" name="Menu" action="base.grant_menu_access" sequence="100" />
|
||||||
<menuitem id="menu" name="📃 Menus" action="base.grant_menu_access" sequence="40" />
|
<menuitem id="seq" name="Sequence" action="base.ir_sequence_form" sequence="100" />
|
||||||
<menuitem id="model_data" name="Model Data" action="base.action_model_data" sequence="50" />
|
<menuitem id="model_data" name="Model Data" action="base.action_model_data" sequence="100" />
|
||||||
<menuitem id="cron" name="📅 Crons" action="base.ir_cron_act" sequence="70" />
|
<menuitem id="param" name="Param" action="base.ir_config_list_action" sequence="100" />
|
||||||
<menuitem id="window" name="Act Windows" action="base.ir_action_window" sequence="80" />
|
<menuitem id="cron" name="Cron" action="base.ir_cron_act" sequence="100" />
|
||||||
<menuitem id="server" name="⚙ Act Server" action="base.action_server_action" sequence="90" />
|
<menuitem id="window" name="Act Window" action="base.ir_action_window" sequence="100" />
|
||||||
<menuitem id="report" name="📄 Reports" action="base.ir_action_report" sequence="100" />
|
<menuitem id="server" name="Act Server" action="base.action_server_action" sequence="100" />
|
||||||
<menuitem id="param" name="Params" action="base.ir_config_list_action" sequence="110" />
|
<menuitem id="report" name="Report" action="base.ir_action_report" sequence="100" />
|
||||||
<menuitem id="seq" name="🔢 Sequences" action="base.ir_sequence_form" sequence="115" />
|
<menuitem id="mail_tmpl" name="Mail Tmpl" action="mail.action_email_template_tree_all" sequence="100" />
|
||||||
<menuitem id="property" name="Properties" action="base.ir_property_form" sequence="120" />
|
<menuitem id="property" name="Property" action="base.ir_property_form" sequence="100" />
|
||||||
<menuitem id="mail_tmpl" name="📧 Mail Tmpl" action="mail.action_email_template_tree_all" sequence="140" />
|
|
||||||
</menuitem>
|
</menuitem>
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
# Copyright 2019-2023 Akretion France (http://www.akretion.com)
|
# Copyright 2019-2021 Akretion France (http://www.akretion.com)
|
||||||
# @author Alexis de Lattre <alexis.delattre@akretion.com>
|
# @author Alexis de Lattre <alexis.delattre@akretion.com>
|
||||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||||
|
|
||||||
{
|
{
|
||||||
'name': 'Link Tracker Usability',
|
'name': 'Link Tracker Usability',
|
||||||
'version': '16.0.1.0.0',
|
'version': '14.0.1.0.0',
|
||||||
'category': 'Marketing',
|
'category': 'Marketing',
|
||||||
'license': 'AGPL-3',
|
'license': 'AGPL-3',
|
||||||
'summary': 'Improve usability for link tracker',
|
'summary': 'Improve usability for link tracker',
|
||||||
@@ -18,10 +18,10 @@ This module has been written by Alexis de Lattre from Akretion
|
|||||||
<alexis.delattre@akretion.com>.
|
<alexis.delattre@akretion.com>.
|
||||||
""",
|
""",
|
||||||
'author': 'Akretion',
|
'author': 'Akretion',
|
||||||
'website': 'https://github.com/akretion/odoo-usability',
|
'website': 'http://www.akretion.com',
|
||||||
'depends': ['link_tracker'],
|
'depends': ['link_tracker'],
|
||||||
'data': [
|
'data': [
|
||||||
'views/link_tracker_click.xml',
|
'views/link_tracker_click.xml',
|
||||||
],
|
],
|
||||||
'installable': True,
|
'installable': False,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,23 +0,0 @@
|
|||||||
# Translation of Odoo Server.
|
|
||||||
# This file contains the translation of the following modules:
|
|
||||||
# * link_tracker_usability
|
|
||||||
#
|
|
||||||
msgid ""
|
|
||||||
msgstr ""
|
|
||||||
"Project-Id-Version: Odoo Server 16.0\n"
|
|
||||||
"Report-Msgid-Bugs-To: \n"
|
|
||||||
"POT-Creation-Date: 2024-07-07 14:42+0000\n"
|
|
||||||
"PO-Revision-Date: 2024-07-07 14:42+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: link_tracker_usability
|
|
||||||
#: model_terms:ir.ui.view,arch_db:link_tracker_usability.link_tracker_click_view_form
|
|
||||||
#: model_terms:ir.ui.view,arch_db:link_tracker_usability.link_tracker_click_view_search
|
|
||||||
#: model_terms:ir.ui.view,arch_db:link_tracker_usability.link_tracker_click_view_tree
|
|
||||||
msgid "Click Date"
|
|
||||||
msgstr "Date du clic"
|
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<!--
|
<!--
|
||||||
Copyright 2019-2023 Akretion France (http://www.akretion.com/)
|
Copyright 2019-2021 Akretion France (http://www.akretion.com/)
|
||||||
@author: Alexis de Lattre <alexis.delattre@akretion.com>
|
@author: Alexis de Lattre <alexis.delattre@akretion.com>
|
||||||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||||
-->
|
-->
|
||||||
|
|||||||
@@ -1,129 +0,0 @@
|
|||||||
# Translation of Odoo Server.
|
|
||||||
# This file contains the translation of the following modules:
|
|
||||||
# * mail_usability
|
|
||||||
#
|
|
||||||
msgid ""
|
|
||||||
msgstr ""
|
|
||||||
"Project-Id-Version: Odoo Server 16.0\n"
|
|
||||||
"Report-Msgid-Bugs-To: \n"
|
|
||||||
"POT-Creation-Date: 2024-07-07 14:35+0000\n"
|
|
||||||
"PO-Revision-Date: 2024-07-07 14:35+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: mail_usability
|
|
||||||
#: model:ir.model.fields,field_description:mail_usability.field_res_partner__active
|
|
||||||
msgid "Active"
|
|
||||||
msgstr "Actif"
|
|
||||||
|
|
||||||
#. module: mail_usability
|
|
||||||
#: model:ir.model.fields,help:mail_usability.field_res_partner__lang
|
|
||||||
#: model:ir.model.fields,help:mail_usability.field_res_users__lang
|
|
||||||
msgid ""
|
|
||||||
"All the emails and documents sent to this contact will be translated in this"
|
|
||||||
" language."
|
|
||||||
msgstr ""
|
|
||||||
"Tous les emails et documents envoyés à ce contact seront traduits dans cette"
|
|
||||||
" langue."
|
|
||||||
|
|
||||||
#. module: mail_usability
|
|
||||||
#: model:ir.model.fields,field_description:mail_usability.field_mail_template__auto_delete
|
|
||||||
msgid "Auto Delete"
|
|
||||||
msgstr "Suppression automatique"
|
|
||||||
|
|
||||||
#. module: mail_usability
|
|
||||||
#: model:ir.model.fields,help:mail_usability.field_res_partner__is_company
|
|
||||||
#: model:ir.model.fields,help:mail_usability.field_res_users__is_company
|
|
||||||
msgid "Check if the contact is a company, otherwise it is a person"
|
|
||||||
msgstr ""
|
|
||||||
"Cochez si ce contact est une société, sinon il s'agit d'un particulier"
|
|
||||||
|
|
||||||
#. module: mail_usability
|
|
||||||
#: model:ir.model.fields,field_description:mail_usability.field_res_partner__city
|
|
||||||
#: model:ir.model.fields,field_description:mail_usability.field_res_users__city
|
|
||||||
msgid "City"
|
|
||||||
msgstr "Ville"
|
|
||||||
|
|
||||||
#. module: mail_usability
|
|
||||||
#: model:ir.model.fields,field_description:mail_usability.field_res_partner__company_id
|
|
||||||
msgid "Company"
|
|
||||||
msgstr "Société"
|
|
||||||
|
|
||||||
#. module: mail_usability
|
|
||||||
#: model:ir.model,name:mail_usability.model_res_partner
|
|
||||||
msgid "Contact"
|
|
||||||
msgstr "Contact"
|
|
||||||
|
|
||||||
#. module: mail_usability
|
|
||||||
#: model:ir.model.fields,field_description:mail_usability.field_res_partner__country_id
|
|
||||||
#: model:ir.model.fields,field_description:mail_usability.field_res_users__country_id
|
|
||||||
msgid "Country"
|
|
||||||
msgstr "Pays"
|
|
||||||
|
|
||||||
#. module: mail_usability
|
|
||||||
#: model:ir.model,name:mail_usability.model_mail_template
|
|
||||||
msgid "Email Templates"
|
|
||||||
msgstr "Modèles d'email"
|
|
||||||
|
|
||||||
#. module: mail_usability
|
|
||||||
#: model:ir.model.fields,field_description:mail_usability.field_res_partner__is_company
|
|
||||||
#: model:ir.model.fields,field_description:mail_usability.field_res_users__is_company
|
|
||||||
msgid "Is a Company"
|
|
||||||
msgstr "Est une entreprise"
|
|
||||||
|
|
||||||
#. module: mail_usability
|
|
||||||
#: model:ir.model.fields,field_description:mail_usability.field_res_partner__lang
|
|
||||||
#: model:ir.model.fields,field_description:mail_usability.field_res_users__lang
|
|
||||||
msgid "Language"
|
|
||||||
msgstr "Langue"
|
|
||||||
|
|
||||||
#. module: mail_usability
|
|
||||||
#: model:ir.model.fields,field_description:mail_usability.field_res_partner__name
|
|
||||||
#: model:ir.model.fields,field_description:mail_usability.field_res_users__name
|
|
||||||
msgid "Name"
|
|
||||||
msgstr "Nom"
|
|
||||||
|
|
||||||
#. module: mail_usability
|
|
||||||
#: model:ir.model.fields,field_description:mail_usability.field_res_partner__ref
|
|
||||||
#: model:ir.model.fields,field_description:mail_usability.field_res_users__ref
|
|
||||||
msgid "Reference"
|
|
||||||
msgstr "Référence"
|
|
||||||
|
|
||||||
#. module: mail_usability
|
|
||||||
#: model:ir.model.fields,field_description:mail_usability.field_res_partner__state_id
|
|
||||||
#: model:ir.model.fields,field_description:mail_usability.field_res_users__state_id
|
|
||||||
msgid "State"
|
|
||||||
msgstr "État"
|
|
||||||
|
|
||||||
#. module: mail_usability
|
|
||||||
#: model:ir.model.fields,field_description:mail_usability.field_res_partner__street
|
|
||||||
#: model:ir.model.fields,field_description:mail_usability.field_res_users__street
|
|
||||||
msgid "Street"
|
|
||||||
msgstr "Rue"
|
|
||||||
|
|
||||||
#. module: mail_usability
|
|
||||||
#: model:ir.model.fields,field_description:mail_usability.field_res_partner__street2
|
|
||||||
#: model:ir.model.fields,field_description:mail_usability.field_res_users__street2
|
|
||||||
msgid "Street2"
|
|
||||||
msgstr "Rue 2"
|
|
||||||
|
|
||||||
#. module: mail_usability
|
|
||||||
#: model:ir.model.fields,help:mail_usability.field_mail_template__auto_delete
|
|
||||||
msgid ""
|
|
||||||
"This option permanently removes any track of email after it's been sent, "
|
|
||||||
"including from the Technical menu in the Settings, in order to preserve "
|
|
||||||
"storage space of your Odoo database."
|
|
||||||
msgstr ""
|
|
||||||
"Cette option supprime définitivement toute trace de l'email après son "
|
|
||||||
"envoi, y compris du menu Technique dans les Paramètres, afin de préserver de"
|
|
||||||
" l'espace de stockage dans votre base de données Odoo."
|
|
||||||
|
|
||||||
#. module: mail_usability
|
|
||||||
#: model:ir.model.fields,field_description:mail_usability.field_res_partner__zip
|
|
||||||
#: model:ir.model.fields,field_description:mail_usability.field_res_users__zip
|
|
||||||
msgid "Zip"
|
|
||||||
msgstr "Code postal"
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
# Translation of Odoo Server.
|
|
||||||
# This file contains the translation of the following modules:
|
|
||||||
#
|
|
||||||
msgid ""
|
|
||||||
msgstr ""
|
|
||||||
"Project-Id-Version: Odoo Server 16.0\n"
|
|
||||||
"Report-Msgid-Bugs-To: \n"
|
|
||||||
"POT-Creation-Date: 2024-07-07 14:44+0000\n"
|
|
||||||
"PO-Revision-Date: 2024-07-07 14:44+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"
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
from . import models
|
|
||||||
@@ -1,19 +0,0 @@
|
|||||||
# Copyright 2023 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': 'MRP Subcontracting Usability',
|
|
||||||
'version': '16.0.1.0.0',
|
|
||||||
'category': 'Manufacturing',
|
|
||||||
'license': 'AGPL-3',
|
|
||||||
'summary': 'Usability improvements on mrp_subcontracting',
|
|
||||||
'author': 'Akretion',
|
|
||||||
'website': 'https://github.com/akretion/odoo-usability',
|
|
||||||
'depends': ['mrp_subcontracting', 'stock_usability'],
|
|
||||||
'data': [
|
|
||||||
'views/mrp_bom.xml',
|
|
||||||
'views/stock_warehouse.xml',
|
|
||||||
],
|
|
||||||
'installable': True,
|
|
||||||
}
|
|
||||||
@@ -1,21 +0,0 @@
|
|||||||
# Translation of Odoo Server.
|
|
||||||
# This file contains the translation of the following modules:
|
|
||||||
# * mrp_subcontracting_usability
|
|
||||||
#
|
|
||||||
msgid ""
|
|
||||||
msgstr ""
|
|
||||||
"Project-Id-Version: Odoo Server 16.0\n"
|
|
||||||
"Report-Msgid-Bugs-To: \n"
|
|
||||||
"POT-Creation-Date: 2024-07-07 14:38+0000\n"
|
|
||||||
"PO-Revision-Date: 2024-07-07 14:38+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: mrp_subcontracting_usability
|
|
||||||
#: model_terms:ir.ui.view,arch_db:mrp_subcontracting_usability.view_mrp_bom_filter
|
|
||||||
msgid "Subcontracting"
|
|
||||||
msgstr "Sous-traitance"
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
from . import mrp_bom
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
# Copyright 2024 Akretion France (https://www.akretion.com/)
|
|
||||||
# @author: Alexis de Lattre <alexis.delattre@akretion.com>
|
|
||||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
|
|
||||||
|
|
||||||
from odoo import fields, models
|
|
||||||
|
|
||||||
|
|
||||||
class MrpBom(models.Model):
|
|
||||||
_inherit = 'mrp.bom'
|
|
||||||
|
|
||||||
subcontractor_ids = fields.Many2many(domain=[('parent_id', '=', False)])
|
|
||||||
@@ -1,22 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<!--
|
|
||||||
Copyright 2023 Akretion France (http://www.akretion.com/)
|
|
||||||
@author: Alexis de Lattre <alexis.delattre@akretion.com>
|
|
||||||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
|
||||||
-->
|
|
||||||
|
|
||||||
<odoo>
|
|
||||||
|
|
||||||
|
|
||||||
<record id="view_mrp_bom_filter" model="ir.ui.view">
|
|
||||||
<field name="model">mrp.bom</field>
|
|
||||||
<field name="inherit_id" ref="mrp.view_mrp_bom_filter"/>
|
|
||||||
<field name="arch" type="xml">
|
|
||||||
<filter name="phantom" position="after">
|
|
||||||
<filter name="subcontract" domain="[('type', '=', 'subcontract')]" string="Subcontracting"/>
|
|
||||||
</filter>
|
|
||||||
</field>
|
|
||||||
</record>
|
|
||||||
|
|
||||||
|
|
||||||
</odoo>
|
|
||||||
@@ -1,24 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<!--
|
|
||||||
Copyright 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).
|
|
||||||
-->
|
|
||||||
|
|
||||||
<odoo>
|
|
||||||
|
|
||||||
<record id="view_warehouse" model="ir.ui.view">
|
|
||||||
<field name="model">stock.warehouse</field>
|
|
||||||
<field name="inherit_id" ref="stock_usability.view_warehouse" />
|
|
||||||
<field name="arch" type="xml">
|
|
||||||
<group name="routes" position="inside">
|
|
||||||
<field name="subcontracting_route_id"/>
|
|
||||||
</group>
|
|
||||||
<field name="out_type_id" position="after">
|
|
||||||
<field name="subcontracting_type_id" readonly="1"/>
|
|
||||||
<field name="subcontracting_resupply_type_id" readonly="1"/>
|
|
||||||
</field>
|
|
||||||
</field>
|
|
||||||
</record>
|
|
||||||
|
|
||||||
</odoo>
|
|
||||||
@@ -4,140 +4,65 @@
|
|||||||
#
|
#
|
||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Odoo Server 16.0\n"
|
"Project-Id-Version: Odoo Server 12.0\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2024-07-04 16:16+0000\n"
|
"POT-Creation-Date: 2020-10-06 13:37+0000\n"
|
||||||
"PO-Revision-Date: 2024-07-04 16:16+0000\n"
|
"PO-Revision-Date: 2020-10-06 15:38+0200\n"
|
||||||
"Last-Translator: \n"
|
"Last-Translator: <>\n"
|
||||||
"Language-Team: \n"
|
"Language-Team: \n"
|
||||||
"MIME-Version: 1.0\n"
|
"MIME-Version: 1.0\n"
|
||||||
"Content-Type: text/plain; charset=UTF-8\n"
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
"Content-Transfer-Encoding: \n"
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
"Plural-Forms: \n"
|
"Plural-Forms: \n"
|
||||||
|
"Language: fr\n"
|
||||||
|
"X-Generator: Poedit 2.3\n"
|
||||||
|
|
||||||
#. module: mrp_usability
|
#. module: mrp_usability
|
||||||
#: model_terms:ir.ui.view,arch_db:mrp_usability.mrp_production_form_view
|
#: model_terms:ir.ui.view,arch_db:mrp_usability.mrp_production_form_view
|
||||||
msgid "Are you sure you want to cancel this manufacturing order?"
|
msgid "Are you sure you want to cancel this manufacturing order?"
|
||||||
msgstr "Êtes-vous sur de vouloir annuler cet ordre de fabrication ?"
|
msgstr "Etes vous sur de vouloir annuler cet ordre de production"
|
||||||
|
|
||||||
#. module: mrp_usability
|
#. module: mrp_usability
|
||||||
#: model:ir.model,name:mrp_usability.model_mrp_bom
|
#: model_terms:ir.ui.view,arch_db:mrp_usability.product_template_form_view_bom_button
|
||||||
msgid "Bill of Material"
|
msgid "Bill of Materials"
|
||||||
msgstr "Nomenclature"
|
msgstr "Nomenclature"
|
||||||
|
|
||||||
#. module: mrp_usability
|
#. module: mrp_usability
|
||||||
#: model:ir.model.fields,field_description:mrp_usability.field_mrp_bom__type
|
#: model_terms:ir.ui.view,arch_db:mrp_usability.report_mrporder
|
||||||
msgid "BoM Type"
|
msgid "Lot"
|
||||||
msgstr "Type de nomenclature"
|
|
||||||
|
|
||||||
#. module: mrp_usability
|
|
||||||
#: model:ir.model.fields,help:mrp_usability.field_mrp_bom__consumption
|
|
||||||
msgid ""
|
|
||||||
"Defines if you can consume more or less components than the quantity defined on the BoM:\n"
|
|
||||||
" * Allowed: allowed for all manufacturing users.\n"
|
|
||||||
" * Allowed with warning: allowed for all manufacturing users with summary of consumption differences when closing the manufacturing order.\n"
|
|
||||||
" Note that in the case of component Manual Consumption, where consumption is registered manually exclusively, consumption warnings will still be issued when appropriate also.\n"
|
|
||||||
" * Blocked: only a manager can close a manufacturing order when the BoM consumption is not respected."
|
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Définit si vous pouvez consommer plus ou moins de composants que la quantité définie sur la nomenclature :\n"
|
|
||||||
"* Autorisé : autorisé pour tous les utilisateurs de Fabrication.\n"
|
|
||||||
"* Autorisé avec avertissement : autorisé pour tous les utilisateurs de fabrication avec récapitulatif des écarts de consommation lors de la clôture de l'ordre de fabrication.\n"
|
|
||||||
"Notez que dans le cas du composant Consommation manuelle, où la consommation est enregistrée manuellement exclusivement, des avertissements de consommation seront également émis le cas échéant.\n"
|
|
||||||
"* Bloqué : seul un responsable peut clôturer un ordre de fabrication lorsque la consommation de la nomenclature n'est pas respectée."
|
|
||||||
|
|
||||||
#. module: mrp_usability
|
|
||||||
#: model:ir.model.fields,field_description:mrp_usability.field_mrp_production__location_dest_id
|
|
||||||
msgid "Finished Products Location"
|
|
||||||
msgstr "Emplacement du produit fini"
|
|
||||||
|
|
||||||
#. module: mrp_usability
|
|
||||||
#: model:ir.model.fields,field_description:mrp_usability.field_mrp_bom__consumption
|
|
||||||
msgid "Flexible Consumption"
|
|
||||||
msgstr "Consommation flexible"
|
|
||||||
|
|
||||||
#. module: mrp_usability
|
|
||||||
#: model:ir.model.fields,help:mrp_usability.field_mrp_bom__product_id
|
|
||||||
msgid ""
|
|
||||||
"If a product variant is defined the BOM is available only for this product."
|
|
||||||
msgstr ""
|
|
||||||
"Si une variante de produit est définie, la nomenclature n'est disponible que"
|
|
||||||
" pour ce produit."
|
|
||||||
|
|
||||||
#. module: mrp_usability
|
|
||||||
#: model:ir.model.fields,help:mrp_usability.field_mrp_production__location_dest_id
|
|
||||||
msgid "Location where the system will stock the finished products."
|
|
||||||
msgstr "Emplacement où le système stockera les produits finis."
|
|
||||||
|
|
||||||
#. module: mrp_usability
|
|
||||||
#: model:ir.model.fields,field_description:mrp_usability.field_mrp_bom__ready_to_produce
|
|
||||||
msgid "Manufacturing Readiness"
|
|
||||||
msgstr "Statut de préparation de la fabrication"
|
|
||||||
|
|
||||||
#. module: mrp_usability
|
|
||||||
#: model:ir.model.fields,field_description:mrp_usability.field_mrp_bom__picking_type_id
|
|
||||||
msgid "Operation Type"
|
|
||||||
msgstr "Type d'opération"
|
|
||||||
|
|
||||||
#. module: mrp_usability
|
|
||||||
#: model:ir.model,name:mrp_usability.model_product_template
|
|
||||||
#: model:ir.model.fields,field_description:mrp_usability.field_mrp_bom__product_tmpl_id
|
|
||||||
msgid "Product"
|
|
||||||
msgstr "Produit"
|
|
||||||
|
|
||||||
#. module: mrp_usability
|
#. module: mrp_usability
|
||||||
#: model:ir.model,name:mrp_usability.model_product_product
|
#: model:ir.model,name:mrp_usability.model_product_product
|
||||||
#: model:ir.model.fields,field_description:mrp_usability.field_mrp_bom__product_id
|
#: model_terms:ir.ui.view,arch_db:mrp_usability.report_mrporder
|
||||||
msgid "Product Variant"
|
msgid "Product"
|
||||||
msgstr "Variante de produit"
|
msgstr "Article"
|
||||||
|
|
||||||
|
#. module: mrp_usability
|
||||||
|
#: model:ir.model,name:mrp_usability.model_product_template
|
||||||
|
msgid "Product Template"
|
||||||
|
msgstr "Modèle d'article"
|
||||||
|
|
||||||
#. module: mrp_usability
|
#. module: mrp_usability
|
||||||
#: model:ir.model,name:mrp_usability.model_mrp_production
|
#: model:ir.model,name:mrp_usability.model_mrp_production
|
||||||
msgid "Production Order"
|
msgid "Production Order"
|
||||||
msgstr "Ordre de fabrication"
|
|
||||||
|
|
||||||
#. module: mrp_usability
|
|
||||||
#: model:ir.model.fields,field_description:mrp_usability.field_mrp_bom__product_qty
|
|
||||||
msgid "Quantity"
|
|
||||||
msgstr "Quantité"
|
|
||||||
|
|
||||||
#. module: mrp_usability
|
|
||||||
#: model:ir.model.fields,field_description:mrp_usability.field_mrp_bom__code
|
|
||||||
msgid "Reference"
|
|
||||||
msgstr "Référence"
|
|
||||||
|
|
||||||
#. module: mrp_usability
|
|
||||||
#: model:ir.model.fields,help:mrp_usability.field_mrp_bom__product_qty
|
|
||||||
msgid ""
|
|
||||||
"This should be the smallest quantity that this product can be produced in. "
|
|
||||||
"If the BOM contains operations, make sure the work center capacity is "
|
|
||||||
"accurate."
|
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Il doit s'agir de la plus petite quantité dans laquelle ce produit peut être"
|
|
||||||
" produit. Si la nomenclature contient des opérations, assurez-vous que la "
|
|
||||||
"capacité du poste de travail est exacte."
|
|
||||||
|
|
||||||
#. module: mrp_usability
|
#. module: mrp_usability
|
||||||
#: model:ir.model.fields,field_description:mrp_usability.field_mrp_bom__product_uom_id
|
#: model_terms:ir.ui.view,arch_db:mrp_usability.report_mrporder
|
||||||
msgid "Unit of Measure"
|
msgid "Sold Out Quantity"
|
||||||
msgstr "Unité de mesure"
|
msgstr "Quantité en Rupture"
|
||||||
|
|
||||||
#. module: mrp_usability
|
#. module: mrp_usability
|
||||||
#: model:ir.model.fields,help:mrp_usability.field_mrp_bom__product_uom_id
|
#: model_terms:ir.ui.view,arch_db:mrp_usability.report_mrporder
|
||||||
msgid ""
|
msgid ""
|
||||||
"Unit of Measure (Unit of Measure) is the unit of measurement for the "
|
"These products were unavailable (or partially) while edition of this Manufacturing Order.\n"
|
||||||
"inventory control"
|
" Here is missing quantities."
|
||||||
msgstr "L'unité de mesure est l'unité utilisée dans la gestion du stock"
|
msgstr ""
|
||||||
|
"Les produits ci-dessous étaient indisponibles (complètement ou partiellement) lors de l'édition de l'OF.<br/>\n"
|
||||||
#. module: mrp_usability
|
"Voici les quantités manquantes."
|
||||||
#: model:ir.model.fields,help:mrp_usability.field_mrp_bom__picking_type_id
|
|
||||||
msgid ""
|
#. module: mrp_usability
|
||||||
"When a procurement has a ‘produce’ route with a operation type set, it will "
|
#: model_terms:ir.ui.view,arch_db:mrp_usability.view_mrp_bom_filter
|
||||||
"try to create a Manufacturing Order for that product using a BoM of the same"
|
msgid "Type"
|
||||||
" operation type. That allows to define stock rules which trigger different "
|
|
||||||
"manufacturing orders with different BoMs."
|
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Quand un approvisionnement a une route 'fabriquer' avec un type d'opération "
|
|
||||||
"défini, le système essayera de créer un ordre de fabrication pour ce produit"
|
|
||||||
" en utilisant une nomenclature qui a le même type d'opération. Cela permet "
|
|
||||||
"de définir des règles de stock qui génèrent des ordres de fabrication avec "
|
|
||||||
"différentes nomenclatures."
|
|
||||||
|
|||||||
@@ -3,29 +3,12 @@
|
|||||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||||
|
|
||||||
|
|
||||||
from odoo import fields, models, Command
|
from odoo import api, models
|
||||||
|
|
||||||
|
|
||||||
class MrpProduction(models.Model):
|
class MrpProduction(models.Model):
|
||||||
_inherit = 'mrp.production'
|
_inherit = 'mrp.production'
|
||||||
|
|
||||||
lot_producing_id = fields.Many2one(tracking=True)
|
|
||||||
location_src_id = fields.Many2one(tracking=True)
|
|
||||||
location_dest_id = fields.Many2one(tracking=True)
|
|
||||||
bom_id = fields.Many2one(tracking=True)
|
|
||||||
|
|
||||||
# Target: allow to modify location_dest_id until the button 'Mark as done' is pushed
|
|
||||||
# I didn't find a better implementation... feel free to improve if you find one
|
|
||||||
def _compute_move_finished_ids(self):
|
|
||||||
for prod in self:
|
|
||||||
if prod.state not in ('draft', 'done') and prod.location_dest_id:
|
|
||||||
vals = {'location_dest_id': prod.location_dest_id.id}
|
|
||||||
prod.move_finished_ids = [
|
|
||||||
Command.update(m.id, vals) for m in prod.move_finished_ids
|
|
||||||
if m.state != 'done'
|
|
||||||
]
|
|
||||||
super()._compute_move_finished_ids()
|
|
||||||
|
|
||||||
# Method used by the report, inherited in this module
|
# Method used by the report, inherited in this module
|
||||||
# @api.model
|
# @api.model
|
||||||
# def get_stock_move_sold_out_report(self, move):
|
# def get_stock_move_sold_out_report(self, move):
|
||||||
|
|||||||
@@ -13,17 +13,11 @@
|
|||||||
<field name="model">mrp.production</field>
|
<field name="model">mrp.production</field>
|
||||||
<field name="inherit_id" ref="mrp.mrp_production_form_view"/>
|
<field name="inherit_id" ref="mrp.mrp_production_form_view"/>
|
||||||
<field name="arch" type="xml">
|
<field name="arch" type="xml">
|
||||||
<field name="user_id" position="before">
|
<!--
|
||||||
<!-- I can't use position="move" because it would match another field in an embedded tree view -->
|
<label for="product_qty" position="before">
|
||||||
<field name="location_src_id" groups="stock.group_stock_multi_locations" options="{'no_create': True}" attrs="{'readonly': [('state', '!=', 'draft')]}"/>
|
<field name="location_src_id" groups="stock.group_stock_multi_locations" options="{'no_create': True}" attrs="{'readonly': [('state', '!=', 'draft')]}" position="move"/>
|
||||||
<field name="location_dest_id" groups="stock.group_stock_multi_locations" options="{'no_create': True}" attrs="{'readonly': [('state', 'in', ('done', 'cancel'))]}"/>
|
<field name="location_dest_id" groups="stock.group_stock_multi_locations" options="{'no_create': True}" attrs="{'readonly': [('state', '!=', 'draft')]}" position="move"/>
|
||||||
</field>
|
</label> -->
|
||||||
<!-- It is important to remove the original field location_dest_id
|
|
||||||
and not just set it as invisible because it cancels the changes -->
|
|
||||||
<xpath expr="//page[@name='miscellaneous']/group/group/field[@name='location_dest_id']" position="replace"/>
|
|
||||||
<xpath expr="//page[@name='miscellaneous']/group/group/field[@name='location_src_id']" position="attributes">
|
|
||||||
<attribute name="invisible">1</attribute>
|
|
||||||
</xpath>
|
|
||||||
<xpath expr="//page[@name='miscellaneous']/group/group/field[@name='date_deadline']" position="after">
|
<xpath expr="//page[@name='miscellaneous']/group/group/field[@name='date_deadline']" position="after">
|
||||||
<field name="date_start"/>
|
<field name="date_start"/>
|
||||||
<field name="date_finished"/>
|
<field name="date_finished"/>
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
from . import res_partner
|
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user