Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TA#72320 [14.0][REM] Move account_report_line_menu, gitoo odoo-enteprise removed #227

Open
wants to merge 7 commits into
base: 14.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .docker_files/main/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
"account_payment_term_usage_purchase",
"account_payment_term_usage_sale",
"account_payment_widget_link",
"account_report_line_menu",
"account_report_trial_balance",
"account_search_by_amount",
"account_show_full_features",
Expand Down Expand Up @@ -61,7 +60,7 @@
"old_accounts",
"payment_list_not_sent",
"payment_stripe_not_silenced",
"account_sale_invoice_date_required"
"account_sale_invoice_date_required",
],
"installable": True,
}
1 change: 0 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ COPY account_payment_term_usage /mnt/extra-addons/account_payment_term_usage
COPY account_payment_term_usage_purchase /mnt/extra-addons/account_payment_term_usage_purchase
COPY account_payment_term_usage_sale /mnt/extra-addons/account_payment_term_usage_sale
COPY account_payment_widget_link /mnt/extra-addons/account_payment_widget_link
COPY account_report_line_menu /mnt/extra-addons/account_report_line_menu
COPY account_report_trial_balance /mnt/extra-addons/account_report_trial_balance
COPY account_sale_invoice_date_required /mnt/extra-addons/account_sale_invoice_date_required
COPY account_search_by_amount /mnt/extra-addons/account_search_by_amount
Expand Down
39 changes: 33 additions & 6 deletions account_fr_ca_labels/tests/test_fr_translations.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,29 @@
class TranslationCase(common.TransactionCase):

def _find_translation(self, source, value):
return self.env['ir.translation'].search([
('src', '=', source),
('value', '=', value),
])
return self.env['ir.translation'].search(
[
('src', '=', source),
('value', '=', value),
]
)

@staticmethod
def is_enterprise(env):
# List of modules exclusive to Odoo Enterprise
enterprise_modules = [
'web_enterprise',
'hr_payroll',
'account_accountant',
'account_reports',
# Add more enterprise-specific modules as needed
]

# Check if any of the enterprise modules are installed
installed_modules = env['ir.module.module'].search(
[('name', 'in', enterprise_modules), ('state', '=', 'installed')]
)
return bool(installed_modules)


@ddt
Expand Down Expand Up @@ -45,13 +64,15 @@ class TestAgedBalance(TranslationCase):
def test_no_translation_found_with_wrong_term(self, data):
assert not self._find_translation(data[0], data[1])

# Terms only available on account_reports in odoo-enterprise
@data(
('Aged Receivable', 'Âge des comptes clients'),
('Aged Payable', 'Âge des comptes fournisseurs'),
('Aged Partner Balances', 'Âge des comptes'),
)
def test_translations_found_with_correct_term(self, data):
assert self._find_translation(data[0], data[1])
if self.is_enterprise(self.env):
assert self._find_translation(data[0], data[1])


@ddt
Expand All @@ -70,10 +91,16 @@ def test_no_translation_found_with_wrong_term(self, data):
('Reconcile', 'Réconcilier'),
('Unreconcile', 'Annuler la conciliation'),
('Reconciliation Models', 'Modèles de conciliation bancaire'),
# Terms only available in enterprise version
('Reconciliation', 'Conciliation'),
)
def test_translations_found_with_correct_term(self, data):
assert self._find_translation(data[0], data[1])
term, translation = data
if term == 'Reconciliation':
if self.is_enterprise(self.env):
assert self._find_translation(term, translation)
else:
assert self._find_translation(term, translation)


@ddt
Expand Down
3 changes: 0 additions & 3 deletions gitoo.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
- url: https://{{GIT_TOKEN}}@github.com/Numigi/odoo-enterprise
branch: "14.0"

- url: https://github.com/Numigi/odoo-base-addons
branch: "14.0"

Expand Down
Loading