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

[IMP] account: install and load COA on company creation #34490

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Commits on May 25, 2020

  1. [IMP] account/l10n_ar: install and load CoA on company creation

    Now, on creating company, appropriate localization module will be
    installed and loaded based on the country selected for that company.
    If, user did not set country while creating company then whenever
    user sets country for that company, appropriate CoA will be loaded.
    
    The functionality is disabled when company created from running
    test cases as module installation are forbidden from test cases.
    
    l10n_ar:
    
    Since there are multiple CoA for Argentina country and appropriate
    CoA for particular company can only be determined when user sets
    AFIP Responsibility field, this thing has been managed also.
    
    Task: 2027057
    Closes: odoo#34490
    Related: odoo/enterprise#8189
    qsb-odoo committed May 25, 2020
    Configuration menu
    Copy the full SHA
    ac83fc2 View commit details
    Browse the repository at this point in the history
  2. [IMP] registry: alter full schema first, then invoke model's init

    Company card should always have Time Off project and task configured.
    The same is managed through overriding BaseModel's init().
    
    In scenario where localization module automatically installs itself at the
    time of company creation if country selected for it, application
    throws missing attribute exception.
    
    Below is the link describing the traceback:
    https://pastebin.com/cAzSEA1g
    
    Steps to reproduce traceback are as follows:
     1. Install account module.
     2. Install project_timesheet_holidays
     3. Attempt to create a new company with country Singapore set.
    
    Similar tracebacks observed for German, and Mexican localizations.
    qsb-odoo committed May 25, 2020
    Configuration menu
    Copy the full SHA
    a39c59a View commit details
    Browse the repository at this point in the history