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

[14.0][IMP] Big simplification, update and cleanup #198

Closed

Commits on Jan 23, 2023

  1. [IMP] Big simplification, update and cleanup

    This commit aims at removing the over-complexity of intrastat modules
    while increasing simplicity/usability for users.
    
    - Move default intrastat transaction from res.company to account.fiscal.position to add su
    pport for B2C (and not just B2B)
    - improve usability: auto-generate declaration lines and XML export when
    going from draft to done. Auto-delete declaration lines and XML export
    when going from done to draft (and add confirmation pop-up).
    - declaration lines are now readonly. Only computation lines can be created/edited manuall
    y
    - add field region_code on computation lines and declaration lines.
    Remove region_id on declaration lines. This change allows big
    simplification in some localization modules such as
    l10n_fr_intrastat_product.
    - simplify Brexit implementation. Northern Ireland is important, but we
    can't afford to have so many lines of code and add a field on
    product.template (origin_state_id) for a territory of 1.9 million
    inhabitants! This is too costly to maintain and too complex for users.
    - improve default visibility of fields when reporting_level = 'standard'
    - add support for weight calculation from uom categories other than
    units and weight, supposing that the 'weight' field on product.template
    is the weight per uom of the product
    - add EU companies from several different countries in demo data with valid VAT numbers
    alexis-via committed Jan 23, 2023
    Configuration menu
    Copy the full SHA
    889f9f7 View commit details
    Browse the repository at this point in the history
  2. intrastat_product: default intrastat transaction on fiscal position A…

    …ND company
    
    Odoo uses, by order of priority:
    1) intrastat transaction of the invoice
    2) default intrastat transaction of the fiscal position of the invoice
    3) default intrastat transaction of the company
    alexis-via committed Jan 23, 2023
    Configuration menu
    Copy the full SHA
    83ef1d6 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    99594ea View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    10d43eb View commit details
    Browse the repository at this point in the history
  5. intrastat_product: re-write the generation of the messages in the war…

    …ning pop-up
    
    This is completely new implementation of the messages that are displayed
    in the warning pop-up:
    - no double messages
    - messages are grouped by section and record
    - nice HTML display insead of raw text
    alexis-via committed Jan 23, 2023
    Configuration menu
    Copy the full SHA
    5510523 View commit details
    Browse the repository at this point in the history

Commits on Jan 24, 2023

  1. intrastat_product: Backport updates from v15

    Make tests work
    alexis-via committed Jan 24, 2023
    Configuration menu
    Copy the full SHA
    3b54045 View commit details
    Browse the repository at this point in the history

Commits on Feb 3, 2023

  1. intrastat_product: update tests

    When manually creating a computation line, auto-set vat from partner_id
    (partner_id is not a related field any more)
    Add method _generate_xml()
    alexis-via committed Feb 3, 2023
    Configuration menu
    Copy the full SHA
    f7a3c6d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    04db69c View commit details
    Browse the repository at this point in the history