Description: Todos los modulos adhoc incluyendo localizaciones adhoc (la idea es mantener este que instale todo sin tests para que sea lo mas rapido posible)
Commit: ingadhoc/sale:d302690d
Subject: [ADD]sale_crm_ux: tags for sale order view
Author: Pablo Paez
Committer: Pablo Paez
Commit: ingadhoc/partner:1e492a95
Subject: [FIX] partner_internal_code: remove broken translations
Author: Juan Jose Scarafia
Committer: Juan José Scarafía
Commit: ingadhoc/purchase:fcd483a0
Subject: [13.0] [FIX] purchase_suggest: Use env company.
Author: Nicolás Mac Rouillon
Committer: Juan José Scarafía
Commit: ingadhoc/account-financial-tools:bfb67f0d
Subject: [IMP] account_ux: partner ledger ux
Author: Juan Jose Scarafia
Committer: Juan José Scarafía
Commit: ingadhoc/account-payment:c2418a82
Subject: [13.0] [IMP] account_payment_group: Adapt wizard "massive validation invoices" for pay now validation.
Author: Nicolás Mac Rouillon
Committer: Juan José Scarafía
Commit: ingadhoc/hr:1064d483
Subject: [REF]
Author: Juan Jose Scarafia
Committer: Juan José Scarafía
Commit: ingadhoc/multi-store:f44ddbbb
Subject: [IMP] remove code no needed on new runbot
Author: Juan Jose Scarafia
Committer: Juan José Scarafía
Commit: ingadhoc/aeroo_reports:6ce997aa
Subject: Fix bad syntax
Author: Lucas Soto
Committer: Juan José Scarafía
Commit: ingadhoc/miscellaneous:22da858e
Subject: [ADD] base_report_to_print_node
Author: Andrés Zacchino
Committer: GitHub
Commit: ingadhoc/account-invoicing:e99c746a
Subject: Revert "[13.0] [FIX] account_invoice_tax: use recompute_all_taxes to complete the change adding of tax."
Author: Katherine Zaoral
Committer: Juan José Scarafía
Commit: ingadhoc/argentina-sale:3f86ae3a
Subject: [IMP] l10n_ar_stock: purchase_order_number in report_deliveryslip Added below the origin field
Author: nmadhoc
Committer: Juan José Scarafía
Commit: ingadhoc/stock:ff3e0a13
Subject: [FIX] Update manifest.
Author: Nicolás Mac Rouillon
Committer: Juan José Scarafía
Commit: ingadhoc/website:e1af69c1
Subject: add dependabot
Author: Andres Zacchino
Committer: Juan José Scarafía
Commit: ingadhoc/odoo-argentina-ee:70ae6a2f
Subject: [13.0] [FIX] account_tax_settlement: Setting amount currency in the correct sign.
Author: Nicolás Mac Rouillon
Committer: Juan José Scarafía
Commit: ingadhoc/odoo-argentina:997081b6
Subject: [ADD] l10n_ar_ux: reference field is not unique when using documents
Author: Juan Jose Scarafia
Committer: Juan José Scarafía
Commit: ingadhoc/enterprise-extensions:a69d2846
Subject: [ADD]helpdesk_solutions: show solution at portal
Author: Pablo Paez
Committer: Juan José Scarafía
Commit: ingadhoc/project:894af084
Subject: [IMP] clean travis/oca deps
Author: Juan Jose Scarafia
Committer: Juan Jose Scarafia
Commit: ingadhoc/multi-company:15f5654c
Subject: [13.0] [FIX] account_multic_fix: Use if instead elif to change in case the account of the line change.
Author: Nicolás Mac Rouillon
Committer: Juan José Scarafía
Commit: ingadhoc/product:5a718e39
Subject: [MIG] product_untranslated_website_sale/: Migration to 13.0
Author: Juan Jose Scarafia
Committer: Juan José Scarafía
Commit: enterprise:2a5791cc
Subject: [FIX] l10n_sg_reports: truncate SourceType to 20 characters
Author: alt-odoo
Committer: Jorge Pinna Puissant
Commit: odoo:312e9b60
Subject: [FIX] website_sale: fix product grid tables layout
Author: Benjamin Vray
Committer: Benjamin Vray
Commit: oca/social:05d9e7c9
Subject: Update translation files
Author: OCA Transbot
Committer: OCA Transbot
Commit: oca/product-pack:b53c3fe6
Subject: product_pack 13.0.1.0.1
Author: OCA-git-bot
Committer: OCA-git-bot
Commit: oca/report-print-send:a2566f99
Subject: base_report_to_printer 13.0.1.2.1
Author: OCA-git-bot
Committer: OCA-git-bot
Commit: oca/server-ux:fc851dfd
Subject: [UPD] addons table in README.md
Author: OCA-git-bot
Committer: OCA-git-bot
Commit: oca/stock-logistics-workflow:c2e99c84
Subject: delivery_total_weight_from_packaging 13.0.1.1.0
Author: OCA-git-bot
Committer: OCA-git-bot
Commit: oca/purchase-workflow:3371033d
Subject: purchase_order_approval_block 13.0.1.0.1
Author: OCA-git-bot
Committer: OCA-git-bot
Commit: oca/stock-logistics-warehouse:d228ce74
Subject: stock_vertical_lift 13.0.1.3.0
Author: OCA-git-bot
Committer: OCA-git-bot
Commit: oca/e-commerce:821079db
Subject: website_sale_product_minimal_price 13.0.1.0.2
Author: OCA-git-bot
Committer: OCA-git-bot
Commit: oca/server-tools:88cb7d47
Subject: base_custom_info 13.0.1.0.1
Author: OCA-git-bot
Committer: OCA-git-bot
Commit: oca/sale-workflow:7d6dd239
Subject: [UPD] addons table in README.md
Author: OCA-git-bot
Committer: OCA-git-bot
Commit: oca/web:7a5e8201
Subject: Translated using Weblate (Portuguese (Brazil))
Author: Eder Brito
Committer: OCA Transbot
Version: 13.0
Config: Adhoc Conf (l10n_Ar no test)
Total time: 10m

Date Level Type Message
2021-03-31 13:01:56 INFO runbot Init build environment with config Adhoc Conf (l10n_Ar no test)
2021-03-31 13:01:56 Starting step base from config Adhoc Conf (l10n_Ar no test)
2021-03-31 13:01:56 INFO runbot Using Dockerfile Tag odoo:DockerDefaultadhocv13
2021-03-31 13:03:04 INFO server odoo.modules.loading:279 1 modules loaded in 6.93s, 0 queries
2021-03-31 13:03:15 INFO server odoo.modules.loading:279 11 modules loaded in 6.26s, 0 queries
2021-03-31 13:03:25 Step base finished in 89s
2021-03-31 13:03:25 Starting step l10n_ar_all_no_test from config Adhoc Conf (l10n_Ar no test)
2021-03-31 13:03:25 INFO runbot Using Dockerfile Tag odoo:DockerDefaultadhocv13
2021-03-31 13:04:30 INFO server odoo.modules.loading:279 1 modules loaded in 6.67s, 0 queries
2021-03-31 13:10:32 ERROR server odoo.tools.translate:683 malformed po file: unknown occurrence: field:res.users,default_sale_order_type_id
2021-03-31 13:10:32 ERROR server odoo.tools.translate:683 malformed po file: unknown occurrence: view:res.users:sale_order_type_user_default.view_users_form
2021-03-31 13:10:32 ERROR server odoo.tools.translate:683 malformed po file: unknown occurrence: view:res.users:sale_order_type_user_default.view_users_form
2021-03-31 13:10:59 WARNING server odoo.modules.loading:563 Transient module states were reset
2021-03-31 13:10:59 ERROR server odoo.modules.registry:91
Failed to load registry
Traceback (most recent call last):
  File "/data/build/odoo/odoo/tools/convert.py", line 712, in parse
    self._tag_root(de)
  File "/data/build/odoo/odoo/tools/convert.py", line 674, in _tag_root
    f(rec)
  File "/data/build/odoo/odoo/tools/convert.py", line 577, in _tag_record
    record = model._load_records([data], self.mode == 'update')
  File "/data/build/odoo/odoo/models.py", line 4168, in _load_records
    records = self._load_records_create([data['values'] for data in to_create])
  File "/data/build/odoo/odoo/models.py", line 4082, in _load_records_create
    return self.create(values)
  File "<decorator-gen-221>", line 2, in create
  File "/data/build/odoo/odoo/api.py", line 336, in _model_create_multi
    return create(self, arg)
  File "/data/build/odoo/addons/purchase/models/account_invoice.py", line 104, in create
    moves = super(AccountMove, self).create(vals_list)
  File "<decorator-gen-197>", line 2, in create
  File "/data/build/odoo/odoo/api.py", line 336, in _model_create_multi
    return create(self, arg)
  File "/data/build/odoo/addons/account/models/account_move.py", line 1720, in create
    rslt = super(AccountMove, self).create(vals_list)
  File "<decorator-gen-113>", line 2, in create
  File "/data/build/odoo/odoo/api.py", line 336, in _model_create_multi
    return create(self, arg)
  File "/data/build/odoo/addons/mail/models/mail_thread.py", line 269, in create
    threads = super(MailThread, self).create(vals_list)
  File "<decorator-gen-3>", line 2, in create
  File "/data/build/odoo/odoo/api.py", line 336, in _model_create_multi
    return create(self, arg)
  File "/data/build/odoo/odoo/models.py", line 3810, in create
    records = self._create(data_list)
  File "/data/build/odoo/odoo/models.py", line 3970, in _create
    for other, data in zip(others, data_list)
  File "/data/build/odoo/odoo/fields.py", line 2897, in create
    self.write_batch(record_values, True)
  File "/data/build/odoo/odoo/fields.py", line 2923, in write_batch
    return self.write_real(records_commands_list, create)
  File "/data/build/odoo/odoo/fields.py", line 3096, in write_real
    flush()
  File "/data/build/odoo/odoo/fields.py", line 3060, in flush
    comodel.create(to_create)
  File "<decorator-gen-272>", line 2, in create
  File "/data/build/odoo/odoo/api.py", line 336, in _model_create_multi
    return create(self, arg)
  File "/data/build/odoo/addons/sale_timesheet/models/account_move.py", line 57, in create
    lines = super(AccountMoveLine, self).create(vals_list)
  File "<decorator-gen-198>", line 2, in create
  File "/data/build/odoo/odoo/api.py", line 336, in _model_create_multi
    return create(self, arg)
  File "/data/build/odoo/addons/account/models/account_move.py", line 3455, in create
    lines = super(AccountMoveLine, self).create(vals_list)
  File "<decorator-gen-3>", line 2, in create
  File "/data/build/odoo/odoo/api.py", line 336, in _model_create_multi
    return create(self, arg)
  File "/data/build/odoo/odoo/models.py", line 3810, in create
    records = self._create(data_list)
  File "/data/build/odoo/odoo/models.py", line 3983, in _create
    records._validate_fields(name for data in data_list for name in data['stored'])
  File "/data/build/odoo/odoo/models.py", line 1206, in _validate_fields
    check(self)
  File "/data/build/ingadhoc/product/price_security/models/account_move_line.py", line 41, in check_discount
    il.move_id.partner_id.property_product_pricelist.id)
  File "/data/build/ingadhoc/product/price_security/models/res_users.py", line 80, in check_discount
    raise UserError(error)
odoo.exceptions.UserError: ('You can not give any discount greater than pricelist discounts', '')

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/data/build/odoo/odoo/modules/registry.py", line 86, in new
    odoo.modules.load_modules(registry._db, force_demo, status, update_module)
  File "/data/build/odoo/odoo/modules/loading.py", line 423, in load_modules
    loaded_modules, update_module, models_to_check)
  File "/data/build/odoo/odoo/modules/loading.py", line 315, in load_marked_modules
    perform_checks=perform_checks, models_to_check=models_to_check
  File "/data/build/odoo/odoo/modules/loading.py", line 189, in load_module_graph
    getattr(py_module, pre_init)(cr)
  File "/data/build/ingadhoc/odoo-argentina-ee/l10n_ar_demo/__init__.py", line 40, in _load_l10n_ar_demo_data
    tools.convert_file(cr, module_name, demo_data, {}, 'init', True, 'demo', None)
  File "/data/build/odoo/odoo/tools/convert.py", line 736, in convert_file
    convert_xml_import(cr, module, fp, idref, mode, noupdate, report)
  File "/data/build/odoo/odoo/tools/convert.py", line 803, in convert_xml_import
    obj.parse(doc.getroot())
  File "/data/build/odoo/odoo/tools/convert.py", line 721, in parse
    exc_info[2]
  File "/data/build/odoo/odoo/tools/pycompat.py", line 13, in reraise
    raise value.with_traceback(tb)
  File "/data/build/odoo/odoo/tools/convert.py", line 712, in parse
    self._tag_root(de)
  File "/data/build/odoo/odoo/tools/convert.py", line 674, in _tag_root
    f(rec)
  File "/data/build/odoo/odoo/tools/convert.py", line 577, in _tag_record
    record = model._load_records([data], self.mode == 'update')
  File "/data/build/odoo/odoo/models.py", line 4168, in _load_records
    records = self._load_records_create([data['values'] for data in to_create])
  File "/data/build/odoo/odoo/models.py", line 4082, in _load_records_create
    return self.create(values)
  File "<decorator-gen-221>", line 2, in create
  File "/data/build/odoo/odoo/api.py", line 336, in _model_create_multi
    return create(self, arg)
  File "/data/build/odoo/addons/purchase/models/account_invoice.py", line 104, in create
    moves = super(AccountMove, self).create(vals_list)
  File "<decorator-gen-197>", line 2, in create
  File "/data/build/odoo/odoo/api.py", line 336, in _model_create_multi
    return create(self, arg)
  File "/data/build/odoo/addons/account/models/account_move.py", line 1720, in create
    rslt = super(AccountMove, self).create(vals_list)
  File "<decorator-gen-113>", line 2, in create
  File "/data/build/odoo/odoo/api.py", line 336, in _model_create_multi
    return create(self, arg)
  File "/data/build/odoo/addons/mail/models/mail_thread.py", line 269, in create
    threads = super(MailThread, self).create(vals_list)
  File "<decorator-gen-3>", line 2, in create
  File "/data/build/odoo/odoo/api.py", line 336, in _model_create_multi
    return create(self, arg)
  File "/data/build/odoo/odoo/models.py", line 3810, in create
    records = self._create(data_list)
  File "/data/build/odoo/odoo/models.py", line 3970, in _create
    for other, data in zip(others, data_list)
  File "/data/build/odoo/odoo/fields.py", line 2897, in create
    self.write_batch(record_values, True)
  File "/data/build/odoo/odoo/fields.py", line 2923, in write_batch
    return self.write_real(records_commands_list, create)
  File "/data/build/odoo/odoo/fields.py", line 3096, in write_real
    flush()
  File "/data/build/odoo/odoo/fields.py", line 3060, in flush
    comodel.create(to_create)
  File "<decorator-gen-272>", line 2, in create
  File "/data/build/odoo/odoo/api.py", line 336, in _model_create_multi
    return create(self, arg)
  File "/data/build/odoo/addons/sale_timesheet/models/account_move.py", line 57, in create
    lines = super(AccountMoveLine, self).create(vals_list)
  File "<decorator-gen-198>", line 2, in create
  File "/data/build/odoo/odoo/api.py", line 336, in _model_create_multi
    return create(self, arg)
  File "/data/build/odoo/addons/account/models/account_move.py", line 3455, in create
    lines = super(AccountMoveLine, self).create(vals_list)
  File "<decorator-gen-3>", line 2, in create
  File "/data/build/odoo/odoo/api.py", line 336, in _model_create_multi
    return create(self, arg)
  File "/data/build/odoo/odoo/models.py", line 3810, in create
    records = self._create(data_list)
  File "/data/build/odoo/odoo/models.py", line 3983, in _create
    records._validate_fields(name for data in data_list for name in data['stored'])
  File "/data/build/odoo/odoo/models.py", line 1206, in _validate_fields
    check(self)
  File "/data/build/ingadhoc/product/price_security/models/account_move_line.py", line 41, in check_discount
    il.move_id.partner_id.property_product_pricelist.id)
  File "/data/build/ingadhoc/product/price_security/models/res_users.py", line 80, in check_discount
    raise UserError(error)
odoo.tools.convert.ParseError: "You can not give any discount greater than pricelist discounts
" while parsing /data/build/odoo/addons/l10n_ar/demo/account_customer_invoice_demo.xml:2, near
<odoo noupdate="True">

    <!-- TODO This demo data is for functional testing and demo but also was used for tests. Test cases should be moved to proper tests -->
    <!-- TODO also, once written the proper tests, we should remove price and name information from lines because it is overwriten by "_onchange_product_id" method. That methods is called to set taxes and uom from products -->
    <!-- Invoice to gritti support service, vat 21 -->
    <record id="demo_invoice_1" model="account.move">
        <field name="partner_id" ref="res_partner_gritti_agrimensura"/>
        <field name="invoice_user_id" ref="base.user_demo"/>
        <field name="invoice_payment_term_id" ref="account.account_payment_term_end_following_month"/>
        <field name="type">out_invoice</field>
        <field name="invoice_date" eval="time.strftime('%Y-%m')+'-01'"/>
        <field name="company_id" ref="company_ri"/>
        <field name="invoice_line_ids" eval="[             (0, 0, {'product_id': ref('product.product_product_2'), 'price_unit': 642.0, 'quantity': 1}),         ]"/>
    </record>

    <!-- Invoice to CMR with vat 21, 27 and 10,5 -->
    <record id="demo_invoice_2" model="account.move">
        <field name="partner_id" ref="res_partner_cmr"/>
        <field name="invoice_user_id" ref="base.user_demo"/>
        <field name="invoice_payment_term_id" ref="account.account_payment_term_end_following_month"/>
        <field name="type">out_invoice</field>
        <field name="invoice_date" eval="time.strftime('%Y-%m')+'-05'"/>
        <field name="company_id" ref="company_ri"/>
        <field name="invoice_line_ids" eval="[             (0, 0, {'product_id': ref('product.product_product_27'), 'price_unit': 642.0, 'quantity': 5}),             (0, 0, {'product_id': ref('product_product_telefonia'), 'price_unit': 250.0, 'quantity': 1}),             (0, 0, {'product_id': ref('product.product_product_25'), 'price_unit': 3245.0, 'quantity': 2}),         ]"/>
    </record>

    <!-- Invoice to ADHOC with vat cero and 21 -->
    <record id="demo_invoice_3" model="account.move">
        <field name="partner_id" ref="l10n_ar.res_partner_adhoc"/>
        <field name="invoice_user_id" ref="base.user_demo"/>
        <field name="invoice_payment_term_id" ref="account.account_payment_term_end_following_month"/>
        <field name="type">out_invoice</field>
        <field name="invoice_date" eval="time.strftime('%Y-%m')+'-01'"/>
        <field name="company_id" ref="company_ri"/>
        <field name="invoice_line_ids" eval="[             (0, 0, {'product_id': ref('product.product_product_27'), 'price_unit': 642.0, 'quantity': 5}),             (0, 0, {'product_id': ref('product_product_cero'), 'price_unit': 200.0, 'quantity': 1}),         ]"/>
    </record>

    <!-- Invoice to ADHOC with vat exempt and 21 -->
    <record id="demo_invoice_4" model="account.move">
        <field name="partner_id" ref="l10n_ar.res_partner_adhoc"/>
        <field name="invoice_user_id" ref="base.user_demo"/>
        <field name="invoice_payment_term_id" ref="account.account_payment_term_end_following_month"/>
        <field name="type">out_invoice</field>
        <field name="invoice_date" eval="time.strftime('%Y-%m')+'-01'"/>
        <field name="company_id" ref="company_ri"/>
        <field name="invoice_line_ids" eval="[             (0, 0, {'product_id': ref('product.product_product_27'), 'price_unit': 642.0, 'quantity': 5}),             (0, 0, {'product_id': ref('product_product_exento'), 'price_unit': 100.0, 'quantity': 1}),         ]"/>
    </record>

    <!-- Invoice to ADHOC with all type of taxes -->
    <record id="demo_invoice_5" model="account.move">
        <field name="partner_id" ref="l10n_ar.res_partner_adhoc"/>
        <field name="invoice_user_id" ref="base.user_demo"/>
        <field name="invoice_payment_term_id" ref="account.account_payment_term_end_following_month"/>
        <field name="type">out_invoice</field>
        <field name="invoice_date" eval="time.strftime('%Y-%m')+'-13'"/>
        <field name="company_id" ref="company_ri"/>
        <field name="invoice_line_ids" eval="[             (0, 0, {'product_id': ref('product.product_product_27'), 'price_unit': 642.0, 'quantity': 5}),             (0, 0, {'product_id': ref('product_product_telefonia'), 'price_unit': 250.0, 'quantity': 1}),             (0, 0, {'product_id': ref('product.product_product_25'), 'price_unit': 3245.0, 'quantity': 2}),             (0, 0, {'product_id': ref('product_product_no_gravado'), 'price_unit': 50.0, 'quantity': 10}),             (0, 0, {'product_id': ref('product_product_cero'), 'price_unit': 200.0, 'quantity': 1}),             (0, 0, {'product_id': ref('product_product_exento'), 'price_unit': 100.0, 'quantity': 1}),         ]"/>
    </record>

    <!-- Invoice to cerro castor, fiscal position changes taxes to exempt -->
    <record id="demo_invoice_6" model="account.move">
        <field name="partner_id" ref="res_partner_cerrocastor"/>
        <field name="journal_id" ref="l10n_ar.sale_expo_journal_ri"/>
        <field name="invoice_user_id" ref="base.user_demo"/>
        <field name="invoice_payment_term_id" ref="account.account_payment_term_end_following_month"/>
        <field name="type">out_invoice</field>
        <field name="invoice_date" eval="time.strftime('%Y-%m')+'-03'"/>
        <field name="company_id" ref="company_ri"/>
        <field name="invoice_incoterm_id" ref="account.incoterm_EXW"/>
        <field name="invoice_line_ids" eval="[             (0, 0, {'product_id': ref('product.product_product_27'), 'price_unit': 642.0, 'quantity': 5}),             (0, 0, {'product_id': ref('product_product_telefonia'), 'price_unit': 250.0, 'quantity': 1}),             (0, 0, {'product_id': ref('product.product_product_25'), 'price_unit': 3245.0, 'quantity': 2}),             (0, 0, {'product_id': ref('product_product_no_gravado'), 'price_unit': 50.0, 'quantity': 10}),             (0, 0, {'product_id': ref('product_product_cero'), 'price_unit': 200.0, 'quantity': 1}),             (0, 0, {'product_id': ref('product_product_exento'), 'price_unit': 100.0, 'quantity': 1}),         ]"/>
    </record>

    <!-- Export invoice to expresso, fiscal position changes tax to exempt (type 4 because it have services) -->
    <record id="demo_invoice_7" model="account.move">
        <field name="partner_id" ref="res_partner_expresso"/>
        <field name="journal_id" ref="l10n_ar.sale_expo_journal_ri"/>
        <field name="invoice_user_id" ref="base.user_demo"/>
        <field name="invoice_payment_term_id" ref="account.account_payment_term_end_following_month"/>
        <field name="type">out_invoice</field>
        <field name="invoice_date" eval="time.strftime('%Y-%m')+'-03'"/>
        <field name="company_id" ref="company_ri"/>
        <field name="invoice_incoterm_id" ref="account.incoterm_EXW"/>
        <field name="invoice_line_ids" eval="[             (0, 0, {'product_id': ref('product.product_product_27'), 'price_unit': 642.0, 'quantity': 5}),             (0, 0, {'product_id': ref('product_product_telefonia'), 'price_unit': 250.0, 'quantity': 1}),             (0, 0, {'product_id': ref('product.product_product_25'), 'price_unit': 3245.0, 'quantity': 2}),             (0, 0, {'product_id': ref('product_product_no_gravado'), 'price_unit': 50.0, 'quantity': 10}),             (0, 0, {'product_id': ref('product_product_cero'), 'price_unit': 200.0, 'quantity': 1}),             (0, 0, {'product_id': ref('product_product_exento'), 'price_unit': 100.0, 'quantity': 1}),         ]"/>
    </record>

    <!-- Invoice to consumidor final -->
    <record id="demo_invoice_8" model="account.move">
        <field name="partner_id" ref="l10n_ar.par_cfa"/>
        <field name="invoice_user_id" ref="base.user_demo"/>
        <field name="invoice_payment_term_id" ref="account.account_payment_term_end_following_month"/>
        <field name="type">out_invoice</field>
        <field name="invoice_date" eval="time.strftime('%Y-%m')+'-13'"/>
        <field name="company_id" ref="company_ri"/>
        <field name="invoice_line_ids" eval="[             (0, 0, {'product_id': ref('product.product_product_2'), 'price_unit': 642.0, 'quantity': 1}),         ]"/>
    </record>

    <!-- Invoice to ADHOC in USD and vat 21 -->
    <record id="demo_invoice_10" model="account.move">
        <field name="partner_id" ref="l10n_ar.res_partner_adhoc"/>
        <field name="invoice_user_id" ref="base.user_demo"/>
        <field name="invoice_payment_term_id" ref="account.account_payment_term_end_following_month"/>
        <field name="type">out_invoice</field>
        <field name="invoice_date" eval="time.strftime('%Y-%m')+'-13'"/>
        <field name="company_id" ref="company_ri"/>
        <field name="invoice_line_ids" eval="[             (0, 0, {'product_id': ref('product.product_product_27'), 'price_unit': 1000.0, 'quantity': 5}),         ]"/>
        <field name="currency_id" ref="base.USD"/>
    </record>

    <!-- Invoice to ADHOC with many lines in order to prove rounding error, with 4 decimals of precision for the currency and 2 decimals for the product the error apperar -->
    <record id="demo_invoice_11" model="account.move">
        <field name="partner_id" ref="l10n_ar.res_partner_adhoc"/>
        <field name="invoice_user_id" ref="base.user_demo"/>
        <field name="invoice_payment_term_id" ref="account.account_payment_term_end_following_month"/>
        <field name="type">out_invoice</field>
        <field name="invoice_date" eval="time.strftime('%Y-%m')+'-13'"/>
        <field name="company_id" ref="company_ri"/>
        <field name="invoice_line_ids" eval="[             (0, 0, {'product_id': ref('product.product_product_2'), 'price_unit': 1.12, 'quantity': 1, 'name': 'Support Services 1'}),             (0, 0, {'product_id': ref('product.product_product_2'), 'price_unit': 1.12, 'quantity': 1, 'name': 'Support Services 2'}),             (0, 0, {'product_id': ref('product.product_product_2'), 'price_unit': 1.12, 'quantity': 1, 'name': 'Support Services 3'}),             (0, 0, {'product_id': ref('product.product_product_2'), 'price_unit': 1.12, 'quantity': 1, 'name': 'Support Services 4'}),         ]"/>
    </record>

    <!-- Invoice to ADHOC with many lines in order to test rounding error, it is required to use a 4 decimal precision in prodct in order to the error occur -->
    <record id="demo_invoice_12" model="account.move">
        <field name="partner_id" ref="l10n_ar.res_partner_adhoc"/>
        <field name="invoice_user_id" ref="base.user_demo"/>
        <field name="invoice_payment_term_id" ref="account.account_payment_term_end_following_month"/>
        <field name="type">out_invoice</field>
        <field name="invoice_date" eval="time.strftime('%Y-%m')+'-13'"/>
        <field name="company_id" ref="company_ri"/>
        <field name="invoice_line_ids" eval="[             (0, 0, {'product_id': ref('product.product_product_2'), 'price_unit': 15.7076, 'quantity': 1, 'name': 'Support Services 1'}),             (0, 0, {'product_id': ref('product.product_product_2'), 'price_unit': 5.3076, 'quantity': 2, 'name': 'Support Services 2'}),             (0, 0, {'product_id': ref('product.product_product_2'), 'price_unit': 3.5384, 'quantity': 2, 'name': 'Support Services 3'}),             (0, 0, {'product_id': ref('product.product_product_2'), 'price_unit': 1.6376, 'quantity': 2, 'name': 'Support Services 4'}),         ]"/>
    </record>

    <!-- Invoice to ADHOC with many lines in order to test zero amount invoices y rounding error. it is required to set the product decimal precision to 4 and change 260.59 for 260.60 in order to reproduce the error -->
    <record id="demo_invoice_13" model="account.move">
        <field name="partner_id" ref="l10n_ar.res_partner_adhoc"/>
        <field name="invoice_user_id" ref="base.user_demo"/>
        <field name="invoice_payment_term_id" ref="account.account_payment_term_end_following_month"/>
        <field name="type">out_invoice</field>
        <field name="invoice_date" eval="time.strftime('%Y-%m')+'-13'"/>
        <field name="company_id" ref="company_ri"/>
        <field name="invoice_line_ids" eval="[             (0, 0, {'product_id': ref('product.product_product_2'), 'price_unit': 24.3, 'quantity': 3, 'name': 'Support Services 1'}),             (0, 0, {'product_id': ref('product.product_product_2'), 'price_unit': 260.59, 'quantity': -1, 'name': 'Support Services 2'}),             (0, 0, {'product_id': ref('product.product_product_2'), 'price_unit': 48.72, 'quantity': 1, 'name': 'Support Services 3'}),             (0, 0, {'product_id': ref('product.product_product_2'), 'price_unit': 13.666, 'quantity': 1, 'name': 'Support Services 4'}),             (0, 0, {'product_id': ref('product.product_product_2'), 'price_unit': 11.329, 'quantity': 2, 'name': 'Support Services 5'}),             (0, 0, {'product_id': ref('product.product_product_2'), 'price_unit': 68.9408, 'quantity': 1, 'name': 'Support Services 6'}),             (0, 0, {'product_id': ref('product.product_product_2'), 'price_unit': 4.7881, 'quantity': 2, 'name': 'Support Services 7'}),             (0, 0, {'product_id': ref('product.product_product_2'), 'price_unit': 12.0625, 'quantity': 2, 'name': 'Support Services 8'}),         ]"/>
    </record>

    <!-- Export invoice to expresso, fiscal position changes tax to exempt (type 1 because only products) -->
    <record id="demo_invoice_14" model="account.move">
        <field name="partner_id" ref="res_partner_expresso"/>
        <field name="journal_id" ref="l10n_ar.sale_expo_journal_ri"/>
        <field name="invoice_user_id" ref="base.user_demo"/>
        <field name="invoice_payment_term_id" ref="account.account_payment_term_end_following_month"/>
        <field name="type">out_invoice</field>
        <field name="invoice_date" eval="time.strftime('%Y-%m')+'-20'"/>
        <field name="company_id" ref="company_ri"/>
        <field name="invoice_incoterm_id" ref="account.incoterm_EXW"/>
        <field name="invoice_line_ids" eval="[             (0, 0, {'product_id': ref('product.product_product_27'), 'price_unit': 642.0, 'quantity': 5}),         ]"/>
    </record>

    <!-- Export invoice to expresso, fiscal position changes tax to exempt (type 2 because only service) -->
    <record id="demo_invoice_15" model="account.move">
        <field name="partner_id" ref="res_partner_expresso"/>
        <field name="journal_id" ref="l10n_ar.sale_expo_journal_ri"/>
        <field name="invoice_user_id" ref="base.user_demo"/>
        <field name="invoice_payment_term_id" ref="account.account_payment_term_end_following_month"/>
        <field name="type">out_invoice</field>
        <field name="invoice_date" eval="time.strftime('%Y-%m')+'-20'"/>
        <field name="company_id" ref="company_ri"/>
        <field name="invoice_incoterm_id" ref="account.incoterm_EXW"/>
        <field name="invoice_line_ids" eval="[             (0, 0, {'product_id': ref('product_product_telefonia'), 'price_unit': 250.0, 'quantity': 1}),         ]"/>
    </record>

    <!-- Export invoice to expresso, fiscal position changes tax to exempt (type 1 because it have products only, used to test refund of expo) -->
    <record id="demo_invoice_16" model="account.move">
        <field name="partner_id" ref="res_partner_expresso"/>
        <field name="journal_id" ref="l10n_ar.sale_expo_journal_ri"/>
        <field name="invoice_user_id" ref="base.user_demo"/>
        <field name="invoice_payment_term_id" ref="account.account_payment_term_end_following_month"/>
        <field name="type">out_invoice</field>
        <field name="invoice_date" eval="time.strftime('%Y-%m')+'-01'"/>
        <field name="company_id" ref="company_ri"/>
        <field name="invoice_incoterm_id" ref="account.incoterm_EXW"/>
        <field name="invoice_line_ids" eval="[             (0, 0, {'product_id': ref('product.product_product_27'), 'price_unit': 642.0, 'quantity': 5}),         ]"/>
    </record>

    <!-- Invoice to ADHOC with 100% of discount -->
    <record id="demo_invoice_17" model="account.move">
        <field name="partner_id" ref="l10n_ar.res_partner_adhoc"/>
        <field name="invoice_user_id" ref="base.user_demo"/>
        <field name="invoice_payment_term_id" ref="account.account_payment_term_end_following_month"/>
        <field name="type">out_invoice</field>
        <field name="invoice_date" eval="time.strftime('%Y-%m')+'-13'"/>
        <field name="company_id" ref="company_ri"/>
        <field name="invoice_line_ids" eval="[             (0, 0, {'product_id': ref('product.product_product_2'), 'price_unit': 24.3, 'quantity': 3, 'name': 'Support Services 8', 'discount': 100}),         ]"/>
    </record>

    <!-- Invoice to ADHOC with 100% of discount and with different VAT aliquots -->
    <record id="demo_invoice_18" model="account.move">
        <field name="partner_id" ref="l10n_ar.res_partner_adhoc"/>
        <field name="invoice_user_id" ref="base.user_demo"/>
        <field name="invoice_payment_term_id" ref="account.account_payment_term_end_following_month"/>
        <field name="type">out_invoice</field>
        <field name="invoice_date" eval="time.strftime('%Y-%m')+'-13'"/>
        <field name="company_id" ref="company_ri"/>
        <field name="invoice_line_ids" eval="[             (0, 0, {'product_id': ref('product.product_product_2'), 'price_unit': 24.3, 'quantity': 3, 'name': 'Support Services 8', 'discount': 100}),             (0, 0, {'product_id': ref('product_product_telefonia'), 'price_unit': 250.0, 'quantity': 1, 'discount': 100}),             (0, 0, {'product_id': ref('product.product_product_25'), 'price_unit': 3245.0, 'quantity': 1}),         ]"/>
    </record>

    <!-- Invoice to ADHOC with multiple taxes and perceptions -->
    <record id="demo_invoice_19" model="account.move">
        <field name="partner_id" ref="l10n_ar.res_partner_adhoc"/>
        <field name="invoice_user_id" ref="base.user_demo"/>
        <field name="invoice_payment_term_id" ref="account.account_payment_term_end_following_month"/>
        <field name="type">out_invoice</field>
        <field name="invoice_date" eval="time.strftime('%Y-%m')+'-13'"/>
        <field name="company_id" ref="company_ri"/>
        <field name="invoice_line_ids" eval="[             (0, 0, {'product_id': ref('product.product_product_2'), 'price_unit': 24.3, 'quantity': 3, 'name': 'Support Services 8'}),             (0, 0, {'product_id': ref('product_product_telefonia'), 'price_unit': 250.0, 'quantity': 1}),             (0, 0, {'product_id': ref('product.product_product_25'), 'price_unit': 3245.0, 'quantity': 1}),         ]"/>
    </record>

    <function model="account.move.line" name="_onchange_product_id" context="{'check_move_validity': False}">
        <value model="account.move.line" eval="obj().search([('move_id', 'in', [ref('demo_invoice_1'), ref('demo_invoice_2'), ref('demo_invoice_3'), ref('demo_invoice_4'), ref('demo_invoice_5'), ref('demo_invoice_6'), ref('demo_invoice_7'), ref('demo_invoice_8'), ref('demo_invoice_10'), ref('demo_invoice_11'), ref('demo_invoice_12'), ref('demo_invoice_13'), ref('demo_invoice_14'), ref('demo_invoice_15'), ref('demo_invoice_16'), ref('demo_invoice_17'), ref('demo_invoice_18'), ref('demo_invoice_19')])]).ids"/>
    </function>

    <function model="account.move" name="_onchange_partner_id" context="{'check_move_validity': False}">
        <value eval="[ref('demo_invoice_6')]"/>
    </function>
    <function model="account.move" name="_onchange_partner_id" context="{'check_move_validity': False}">
        <value eval="[ref('demo_invoice_7')]"/>
    </function>
    <function model="account.move" name="_onchange_partner_id" context="{'check_move_validity': False}">
        <value eval="[ref('demo_invoice_14')]"/>
    </function>
    <function model="account.move" name="_onchange_partner_id" context="{'check_move_validity': False}">
        <value eval="[ref('demo_invoice_15')]"/>
    </function>
    <function model="account.move" name="_onchange_partner_id" context="{'check_move_validity': False}">
        <value eval="[ref('demo_invoice_16')]"/>
    </function>

    <function model="account.move.line" name="write" context="{'check_move_validity': False, 'active_test': False}">
        <value model="account.move.line" search="[('move_id', '=', ref('demo_invoice_19')), ('product_id', '=', ref('product.product_product_2'))]"/>
        <value model="account.tax" eval="{'tax_ids': [(4, obj().search([('company_id', '=', ref('company_ri')), ('type_tax_use', '=', 'sale'), ('tax_group_id.l10n_ar_tribute_afip_code', '=', '06')], limit=1).id)]}"/>
    </function>

    <function model="account.move.line" name="write" context="{'check_move_validity': False, 'active_test': False}">
        <value model="account.move.line" search="[('move_id', '=', ref('demo_invoice_19')), ('product_id', '=', ref('product_product_telefonia'))]"/>
        <value model="account.tax" eval="{'tax_ids': [(4, obj().search([('company_id', '=', ref('company_ri')), ('type_tax_use', '=', 'sale'), ('tax_group_id.l10n_ar_tribute_afip_code', '=', '07')], limit=1).id)]}"/>
    </function>

    <function model="account.move.line" name="write" context="{'check_move_validity': False, 'active_test': False}">
        <value model="account.move.line" search="[('move_id', '=', ref('demo_invoice_19')), ('product_id', '=', ref('product.product_product_25'))]"/>
        <value model="account.tax" eval="{'tax_ids': [(4, obj().search([('company_id', '=', ref('company_ri')), ('type_tax_use', '=', 'sale'), ('tax_group_id.l10n_ar_tribute_afip_code', '=', '99')], limit=1).id)]}"/>
    </function>

    <function model="account.move" name="_recompute_dynamic_lines" context="{'check_move_validity': False}">
        <value eval="[ref('demo_invoice_1'), ref('demo_invoice_2'), ref('demo_invoice_3'), ref('demo_invoice_4'), ref('demo_invoice_5'), ref('demo_invoice_6'), ref('demo_invoice_7'), ref('demo_invoice_8'), ref('demo_invoice_10'), ref('demo_invoice_11'), ref('demo_invoice_12'), ref('demo_invoice_13'), ref('demo_invoice_14'), ref('demo_invoice_15'), ref('demo_invoice_16'), ref('demo_invoice_17'), ref('demo_invoice_18'), ref('demo_invoice_19')]"/>
        <value eval="True"/>
    </function>

    <function model="account.move" name="post">
        <value eval="[ref('demo_invoice_1'), ref('demo_invoice_2'), ref('demo_invoice_3'), ref('demo_invoice_4'), ref('demo_invoice_5'), ref('demo_invoice_6'), ref('demo_invoice_7'), ref('demo_invoice_8'), ref('demo_invoice_10'), ref('demo_invoice_11'), ref('demo_invoice_12'), ref('demo_invoice_13'), ref('demo_invoice_14'), ref('demo_invoice_15'), ref('demo_invoice_16'), ref('demo_invoice_17'), ref('demo_invoice_18'), ref('demo_invoice_19')]"/>
    </function>

</odoo>
2021-03-31 13:10:59 CRITICAL server odoo.service.server:1221
Failed to initialize database `01425-13-0-all_no_test`.
Traceback (most recent call last):
  File "/data/build/odoo/odoo/tools/convert.py", line 712, in parse
    self._tag_root(de)
  File "/data/build/odoo/odoo/tools/convert.py", line 674, in _tag_root
    f(rec)
  File "/data/build/odoo/odoo/tools/convert.py", line 577, in _tag_record
    record = model._load_records([data], self.mode == 'update')
  File "/data/build/odoo/odoo/models.py", line 4168, in _load_records
    records = self._load_records_create([data['values'] for data in to_create])
  File "/data/build/odoo/odoo/models.py", line 4082, in _load_records_create
    return self.create(values)
  File "<decorator-gen-221>", line 2, in create
  File "/data/build/odoo/odoo/api.py", line 336, in _model_create_multi
    return create(self, arg)
  File "/data/build/odoo/addons/purchase/models/account_invoice.py", line 104, in create
    moves = super(AccountMove, self).create(vals_list)
  File "<decorator-gen-197>", line 2, in create
  File "/data/build/odoo/odoo/api.py", line 336, in _model_create_multi
    return create(self, arg)
  File "/data/build/odoo/addons/account/models/account_move.py", line 1720, in create
    rslt = super(AccountMove, self).create(vals_list)
  File "<decorator-gen-113>", line 2, in create
  File "/data/build/odoo/odoo/api.py", line 336, in _model_create_multi
    return create(self, arg)
  File "/data/build/odoo/addons/mail/models/mail_thread.py", line 269, in create
    threads = super(MailThread, self).create(vals_list)
  File "<decorator-gen-3>", line 2, in create
  File "/data/build/odoo/odoo/api.py", line 336, in _model_create_multi
    return create(self, arg)
  File "/data/build/odoo/odoo/models.py", line 3810, in create
    records = self._create(data_list)
  File "/data/build/odoo/odoo/models.py", line 3970, in _create
    for other, data in zip(others, data_list)
  File "/data/build/odoo/odoo/fields.py", line 2897, in create
    self.write_batch(record_values, True)
  File "/data/build/odoo/odoo/fields.py", line 2923, in write_batch
    return self.write_real(records_commands_list, create)
  File "/data/build/odoo/odoo/fields.py", line 3096, in write_real
    flush()
  File "/data/build/odoo/odoo/fields.py", line 3060, in flush
    comodel.create(to_create)
  File "<decorator-gen-272>", line 2, in create
  File "/data/build/odoo/odoo/api.py", line 336, in _model_create_multi
    return create(self, arg)
  File "/data/build/odoo/addons/sale_timesheet/models/account_move.py", line 57, in create
    lines = super(AccountMoveLine, self).create(vals_list)
  File "<decorator-gen-198>", line 2, in create
  File "/data/build/odoo/odoo/api.py", line 336, in _model_create_multi
    return create(self, arg)
  File "/data/build/odoo/addons/account/models/account_move.py", line 3455, in create
    lines = super(AccountMoveLine, self).create(vals_list)
  File "<decorator-gen-3>", line 2, in create
  File "/data/build/odoo/odoo/api.py", line 336, in _model_create_multi
    return create(self, arg)
  File "/data/build/odoo/odoo/models.py", line 3810, in create
    records = self._create(data_list)
  File "/data/build/odoo/odoo/models.py", line 3983, in _create
    records._validate_fields(name for data in data_list for name in data['stored'])
  File "/data/build/odoo/odoo/models.py", line 1206, in _validate_fields
    check(self)
  File "/data/build/ingadhoc/product/price_security/models/account_move_line.py", line 41, in check_discount
    il.move_id.partner_id.property_product_pricelist.id)
  File "/data/build/ingadhoc/product/price_security/models/res_users.py", line 80, in check_discount
    raise UserError(error)
odoo.exceptions.UserError: ('You can not give any discount greater than pricelist discounts', '')

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/data/build/odoo/odoo/service/server.py", line 1190, in preload_registries
    registry = Registry.new(dbname, update_module=update_module)
  File "/data/build/odoo/odoo/modules/registry.py", line 86, in new
    odoo.modules.load_modules(registry._db, force_demo, status, update_module)
  File "/data/build/odoo/odoo/modules/loading.py", line 423, in load_modules
    loaded_modules, update_module, models_to_check)
  File "/data/build/odoo/odoo/modules/loading.py", line 315, in load_marked_modules
    perform_checks=perform_checks, models_to_check=models_to_check
  File "/data/build/odoo/odoo/modules/loading.py", line 189, in load_module_graph
    getattr(py_module, pre_init)(cr)
  File "/data/build/ingadhoc/odoo-argentina-ee/l10n_ar_demo/__init__.py", line 40, in _load_l10n_ar_demo_data
    tools.convert_file(cr, module_name, demo_data, {}, 'init', True, 'demo', None)
  File "/data/build/odoo/odoo/tools/convert.py", line 736, in convert_file
    convert_xml_import(cr, module, fp, idref, mode, noupdate, report)
  File "/data/build/odoo/odoo/tools/convert.py", line 803, in convert_xml_import
    obj.parse(doc.getroot())
  File "/data/build/odoo/odoo/tools/convert.py", line 721, in parse
    exc_info[2]
  File "/data/build/odoo/odoo/tools/pycompat.py", line 13, in reraise
    raise value.with_traceback(tb)
  File "/data/build/odoo/odoo/tools/convert.py", line 712, in parse
    self._tag_root(de)
  File "/data/build/odoo/odoo/tools/convert.py", line 674, in _tag_root
    f(rec)
  File "/data/build/odoo/odoo/tools/convert.py", line 577, in _tag_record
    record = model._load_records([data], self.mode == 'update')
  File "/data/build/odoo/odoo/models.py", line 4168, in _load_records
    records = self._load_records_create([data['values'] for data in to_create])
  File "/data/build/odoo/odoo/models.py", line 4082, in _load_records_create
    return self.create(values)
  File "<decorator-gen-221>", line 2, in create
  File "/data/build/odoo/odoo/api.py", line 336, in _model_create_multi
    return create(self, arg)
  File "/data/build/odoo/addons/purchase/models/account_invoice.py", line 104, in create
    moves = super(AccountMove, self).create(vals_list)
  File "<decorator-gen-197>", line 2, in create
  File "/data/build/odoo/odoo/api.py", line 336, in _model_create_multi
    return create(self, arg)
  File "/data/build/odoo/addons/account/models/account_move.py", line 1720, in create
    rslt = super(AccountMove, self).create(vals_list)
  File "<decorator-gen-113>", line 2, in create
  File "/data/build/odoo/odoo/api.py", line 336, in _model_create_multi
    return create(self, arg)
  File "/data/build/odoo/addons/mail/models/mail_thread.py", line 269, in create
    threads = super(MailThread, self).create(vals_list)
  File "<decorator-gen-3>", line 2, in create
  File "/data/build/odoo/odoo/api.py", line 336, in _model_create_multi
    return create(self, arg)
  File "/data/build/odoo/odoo/models.py", line 3810, in create
    records = self._create(data_list)
  File "/data/build/odoo/odoo/models.py", line 3970, in _create
    for other, data in zip(others, data_list)
  File "/data/build/odoo/odoo/fields.py", line 2897, in create
    self.write_batch(record_values, True)
  File "/data/build/odoo/odoo/fields.py", line 2923, in write_batch
    return self.write_real(records_commands_list, create)
  File "/data/build/odoo/odoo/fields.py", line 3096, in write_real
    flush()
  File "/data/build/odoo/odoo/fields.py", line 3060, in flush
    comodel.create(to_create)
  File "<decorator-gen-272>", line 2, in create
  File "/data/build/odoo/odoo/api.py", line 336, in _model_create_multi
    return create(self, arg)
  File "/data/build/odoo/addons/sale_timesheet/models/account_move.py", line 57, in create
    lines = super(AccountMoveLine, self).create(vals_list)
  File "<decorator-gen-198>", line 2, in create
  File "/data/build/odoo/odoo/api.py", line 336, in _model_create_multi
    return create(self, arg)
  File "/data/build/odoo/addons/account/models/account_move.py", line 3455, in create
    lines = super(AccountMoveLine, self).create(vals_list)
  File "<decorator-gen-3>", line 2, in create
  File "/data/build/odoo/odoo/api.py", line 336, in _model_create_multi
    return create(self, arg)
  File "/data/build/odoo/odoo/models.py", line 3810, in create
    records = self._create(data_list)
  File "/data/build/odoo/odoo/models.py", line 3983, in _create
    records._validate_fields(name for data in data_list for name in data['stored'])
  File "/data/build/odoo/odoo/models.py", line 1206, in _validate_fields
    check(self)
  File "/data/build/ingadhoc/product/price_security/models/account_move_line.py", line 41, in check_discount
    il.move_id.partner_id.property_product_pricelist.id)
  File "/data/build/ingadhoc/product/price_security/models/res_users.py", line 80, in check_discount
    raise UserError(error)
odoo.tools.convert.ParseError: "You can not give any discount greater than pricelist discounts
" while parsing /data/build/odoo/addons/l10n_ar/demo/account_customer_invoice_demo.xml:2, near
<odoo noupdate="True">

    <!-- TODO This demo data is for functional testing and demo but also was used for tests. Test cases should be moved to proper tests -->
    <!-- TODO also, once written the proper tests, we should remove price and name information from lines because it is overwriten by "_onchange_product_id" method. That methods is called to set taxes and uom from products -->
    <!-- Invoice to gritti support service, vat 21 -->
    <record id="demo_invoice_1" model="account.move">
        <field name="partner_id" ref="res_partner_gritti_agrimensura"/>
        <field name="invoice_user_id" ref="base.user_demo"/>
        <field name="invoice_payment_term_id" ref="account.account_payment_term_end_following_month"/>
        <field name="type">out_invoice</field>
        <field name="invoice_date" eval="time.strftime('%Y-%m')+'-01'"/>
        <field name="company_id" ref="company_ri"/>
        <field name="invoice_line_ids" eval="[             (0, 0, {'product_id': ref('product.product_product_2'), 'price_unit': 642.0, 'quantity': 1}),         ]"/>
    </record>

    <!-- Invoice to CMR with vat 21, 27 and 10,5 -->
    <record id="demo_invoice_2" model="account.move">
        <field name="partner_id" ref="res_partner_cmr"/>
        <field name="invoice_user_id" ref="base.user_demo"/>
        <field name="invoice_payment_term_id" ref="account.account_payment_term_end_following_month"/>
        <field name="type">out_invoice</field>
        <field name="invoice_date" eval="time.strftime('%Y-%m')+'-05'"/>
        <field name="company_id" ref="company_ri"/>
        <field name="invoice_line_ids" eval="[             (0, 0, {'product_id': ref('product.product_product_27'), 'price_unit': 642.0, 'quantity': 5}),             (0, 0, {'product_id': ref('product_product_telefonia'), 'price_unit': 250.0, 'quantity': 1}),             (0, 0, {'product_id': ref('product.product_product_25'), 'price_unit': 3245.0, 'quantity': 2}),         ]"/>
    </record>

    <!-- Invoice to ADHOC with vat cero and 21 -->
    <record id="demo_invoice_3" model="account.move">
        <field name="partner_id" ref="l10n_ar.res_partner_adhoc"/>
        <field name="invoice_user_id" ref="base.user_demo"/>
        <field name="invoice_payment_term_id" ref="account.account_payment_term_end_following_month"/>
        <field name="type">out_invoice</field>
        <field name="invoice_date" eval="time.strftime('%Y-%m')+'-01'"/>
        <field name="company_id" ref="company_ri"/>
        <field name="invoice_line_ids" eval="[             (0, 0, {'product_id': ref('product.product_product_27'), 'price_unit': 642.0, 'quantity': 5}),             (0, 0, {'product_id': ref('product_product_cero'), 'price_unit': 200.0, 'quantity': 1}),         ]"/>
    </record>

    <!-- Invoice to ADHOC with vat exempt and 21 -->
    <record id="demo_invoice_4" model="account.move">
        <field name="partner_id" ref="l10n_ar.res_partner_adhoc"/>
        <field name="invoice_user_id" ref="base.user_demo"/>
        <field name="invoice_payment_term_id" ref="account.account_payment_term_end_following_month"/>
        <field name="type">out_invoice</field>
        <field name="invoice_date" eval="time.strftime('%Y-%m')+'-01'"/>
        <field name="company_id" ref="company_ri"/>
        <field name="invoice_line_ids" eval="[             (0, 0, {'product_id': ref('product.product_product_27'), 'price_unit': 642.0, 'quantity': 5}),             (0, 0, {'product_id': ref('product_product_exento'), 'price_unit': 100.0, 'quantity': 1}),         ]"/>
    </record>

    <!-- Invoice to ADHOC with all type of taxes -->
    <record id="demo_invoice_5" model="account.move">
        <field name="partner_id" ref="l10n_ar.res_partner_adhoc"/>
        <field name="invoice_user_id" ref="base.user_demo"/>
        <field name="invoice_payment_term_id" ref="account.account_payment_term_end_following_month"/>
        <field name="type">out_invoice</field>
        <field name="invoice_date" eval="time.strftime('%Y-%m')+'-13'"/>
        <field name="company_id" ref="company_ri"/>
        <field name="invoice_line_ids" eval="[             (0, 0, {'product_id': ref('product.product_product_27'), 'price_unit': 642.0, 'quantity': 5}),             (0, 0, {'product_id': ref('product_product_telefonia'), 'price_unit': 250.0, 'quantity': 1}),             (0, 0, {'product_id': ref('product.product_product_25'), 'price_unit': 3245.0, 'quantity': 2}),             (0, 0, {'product_id': ref('product_product_no_gravado'), 'price_unit': 50.0, 'quantity': 10}),             (0, 0, {'product_id': ref('product_product_cero'), 'price_unit': 200.0, 'quantity': 1}),             (0, 0, {'product_id': ref('product_product_exento'), 'price_unit': 100.0, 'quantity': 1}),         ]"/>
    </record>

    <!-- Invoice to cerro castor, fiscal position changes taxes to exempt -->
    <record id="demo_invoice_6" model="account.move">
        <field name="partner_id" ref="res_partner_cerrocastor"/>
        <field name="journal_id" ref="l10n_ar.sale_expo_journal_ri"/>
        <field name="invoice_user_id" ref="base.user_demo"/>
        <field name="invoice_payment_term_id" ref="account.account_payment_term_end_following_month"/>
        <field name="type">out_invoice</field>
        <field name="invoice_date" eval="time.strftime('%Y-%m')+'-03'"/>
        <field name="company_id" ref="company_ri"/>
        <field name="invoice_incoterm_id" ref="account.incoterm_EXW"/>
        <field name="invoice_line_ids" eval="[             (0, 0, {'product_id': ref('product.product_product_27'), 'price_unit': 642.0, 'quantity': 5}),             (0, 0, {'product_id': ref('product_product_telefonia'), 'price_unit': 250.0, 'quantity': 1}),             (0, 0, {'product_id': ref('product.product_product_25'), 'price_unit': 3245.0, 'quantity': 2}),             (0, 0, {'product_id': ref('product_product_no_gravado'), 'price_unit': 50.0, 'quantity': 10}),             (0, 0, {'product_id': ref('product_product_cero'), 'price_unit': 200.0, 'quantity': 1}),             (0, 0, {'product_id': ref('product_product_exento'), 'price_unit': 100.0, 'quantity': 1}),         ]"/>
    </record>

    <!-- Export invoice to expresso, fiscal position changes tax to exempt (type 4 because it have services) -->
    <record id="demo_invoice_7" model="account.move">
        <field name="partner_id" ref="res_partner_expresso"/>
        <field name="journal_id" ref="l10n_ar.sale_expo_journal_ri"/>
        <field name="invoice_user_id" ref="base.user_demo"/>
        <field name="invoice_payment_term_id" ref="account.account_payment_term_end_following_month"/>
        <field name="type">out_invoice</field>
        <field name="invoice_date" eval="time.strftime('%Y-%m')+'-03'"/>
        <field name="company_id" ref="company_ri"/>
        <field name="invoice_incoterm_id" ref="account.incoterm_EXW"/>
        <field name="invoice_line_ids" eval="[             (0, 0, {'product_id': ref('product.product_product_27'), 'price_unit': 642.0, 'quantity': 5}),             (0, 0, {'product_id': ref('product_product_telefonia'), 'price_unit': 250.0, 'quantity': 1}),             (0, 0, {'product_id': ref('product.product_product_25'), 'price_unit': 3245.0, 'quantity': 2}),             (0, 0, {'product_id': ref('product_product_no_gravado'), 'price_unit': 50.0, 'quantity': 10}),             (0, 0, {'product_id': ref('product_product_cero'), 'price_unit': 200.0, 'quantity': 1}),             (0, 0, {'product_id': ref('product_product_exento'), 'price_unit': 100.0, 'quantity': 1}),         ]"/>
    </record>

    <!-- Invoice to consumidor final -->
    <record id="demo_invoice_8" model="account.move">
        <field name="partner_id" ref="l10n_ar.par_cfa"/>
        <field name="invoice_user_id" ref="base.user_demo"/>
        <field name="invoice_payment_term_id" ref="account.account_payment_term_end_following_month"/>
        <field name="type">out_invoice</field>
        <field name="invoice_date" eval="time.strftime('%Y-%m')+'-13'"/>
        <field name="company_id" ref="company_ri"/>
        <field name="invoice_line_ids" eval="[             (0, 0, {'product_id': ref('product.product_product_2'), 'price_unit': 642.0, 'quantity': 1}),         ]"/>
    </record>

    <!-- Invoice to ADHOC in USD and vat 21 -->
    <record id="demo_invoice_10" model="account.move">
        <field name="partner_id" ref="l10n_ar.res_partner_adhoc"/>
        <field name="invoice_user_id" ref="base.user_demo"/>
        <field name="invoice_payment_term_id" ref="account.account_payment_term_end_following_month"/>
        <field name="type">out_invoice</field>
        <field name="invoice_date" eval="time.strftime('%Y-%m')+'-13'"/>
        <field name="company_id" ref="company_ri"/>
        <field name="invoice_line_ids" eval="[             (0, 0, {'product_id': ref('product.product_product_27'), 'price_unit': 1000.0, 'quantity': 5}),         ]"/>
        <field name="currency_id" ref="base.USD"/>
    </record>

    <!-- Invoice to ADHOC with many lines in order to prove rounding error, with 4 decimals of precision for the currency and 2 decimals for the product the error apperar -->
    <record id="demo_invoice_11" model="account.move">
        <field name="partner_id" ref="l10n_ar.res_partner_adhoc"/>
        <field name="invoice_user_id" ref="base.user_demo"/>
        <field name="invoice_payment_term_id" ref="account.account_payment_term_end_following_month"/>
        <field name="type">out_invoice</field>
        <field name="invoice_date" eval="time.strftime('%Y-%m')+'-13'"/>
        <field name="company_id" ref="company_ri"/>
        <field name="invoice_line_ids" eval="[             (0, 0, {'product_id': ref('product.product_product_2'), 'price_unit': 1.12, 'quantity': 1, 'name': 'Support Services 1'}),             (0, 0, {'product_id': ref('product.product_product_2'), 'price_unit': 1.12, 'quantity': 1, 'name': 'Support Services 2'}),             (0, 0, {'product_id': ref('product.product_product_2'), 'price_unit': 1.12, 'quantity': 1, 'name': 'Support Services 3'}),             (0, 0, {'product_id': ref('product.product_product_2'), 'price_unit': 1.12, 'quantity': 1, 'name': 'Support Services 4'}),         ]"/>
    </record>

    <!-- Invoice to ADHOC with many lines in order to test rounding error, it is required to use a 4 decimal precision in prodct in order to the error occur -->
    <record id="demo_invoice_12" model="account.move">
        <field name="partner_id" ref="l10n_ar.res_partner_adhoc"/>
        <field name="invoice_user_id" ref="base.user_demo"/>
        <field name="invoice_payment_term_id" ref="account.account_payment_term_end_following_month"/>
        <field name="type">out_invoice</field>
        <field name="invoice_date" eval="time.strftime('%Y-%m')+'-13'"/>
        <field name="company_id" ref="company_ri"/>
        <field name="invoice_line_ids" eval="[             (0, 0, {'product_id': ref('product.product_product_2'), 'price_unit': 15.7076, 'quantity': 1, 'name': 'Support Services 1'}),             (0, 0, {'product_id': ref('product.product_product_2'), 'price_unit': 5.3076, 'quantity': 2, 'name': 'Support Services 2'}),             (0, 0, {'product_id': ref('product.product_product_2'), 'price_unit': 3.5384, 'quantity': 2, 'name': 'Support Services 3'}),             (0, 0, {'product_id': ref('product.product_product_2'), 'price_unit': 1.6376, 'quantity': 2, 'name': 'Support Services 4'}),         ]"/>
    </record>

    <!-- Invoice to ADHOC with many lines in order to test zero amount invoices y rounding error. it is required to set the product decimal precision to 4 and change 260.59 for 260.60 in order to reproduce the error -->
    <record id="demo_invoice_13" model="account.move">
        <field name="partner_id" ref="l10n_ar.res_partner_adhoc"/>
        <field name="invoice_user_id" ref="base.user_demo"/>
        <field name="invoice_payment_term_id" ref="account.account_payment_term_end_following_month"/>
        <field name="type">out_invoice</field>
        <field name="invoice_date" eval="time.strftime('%Y-%m')+'-13'"/>
        <field name="company_id" ref="company_ri"/>
        <field name="invoice_line_ids" eval="[             (0, 0, {'product_id': ref('product.product_product_2'), 'price_unit': 24.3, 'quantity': 3, 'name': 'Support Services 1'}),             (0, 0, {'product_id': ref('product.product_product_2'), 'price_unit': 260.59, 'quantity': -1, 'name': 'Support Services 2'}),             (0, 0, {'product_id': ref('product.product_product_2'), 'price_unit': 48.72, 'quantity': 1, 'name': 'Support Services 3'}),             (0, 0, {'product_id': ref('product.product_product_2'), 'price_unit': 13.666, 'quantity': 1, 'name': 'Support Services 4'}),             (0, 0, {'product_id': ref('product.product_product_2'), 'price_unit': 11.329, 'quantity': 2, 'name': 'Support Services 5'}),             (0, 0, {'product_id': ref('product.product_product_2'), 'price_unit': 68.9408, 'quantity': 1, 'name': 'Support Services 6'}),             (0, 0, {'product_id': ref('product.product_product_2'), 'price_unit': 4.7881, 'quantity': 2, 'name': 'Support Services 7'}),             (0, 0, {'product_id': ref('product.product_product_2'), 'price_unit': 12.0625, 'quantity': 2, 'name': 'Support Services 8'}),         ]"/>
    </record>

    <!-- Export invoice to expresso, fiscal position changes tax to exempt (type 1 because only products) -->
    <record id="demo_invoice_14" model="account.move">
        <field name="partner_id" ref="res_partner_expresso"/>
        <field name="journal_id" ref="l10n_ar.sale_expo_journal_ri"/>
        <field name="invoice_user_id" ref="base.user_demo"/>
        <field name="invoice_payment_term_id" ref="account.account_payment_term_end_following_month"/>
        <field name="type">out_invoice</field>
        <field name="invoice_date" eval="time.strftime('%Y-%m')+'-20'"/>
        <field name="company_id" ref="company_ri"/>
        <field name="invoice_incoterm_id" ref="account.incoterm_EXW"/>
        <field name="invoice_line_ids" eval="[             (0, 0, {'product_id': ref('product.product_product_27'), 'price_unit': 642.0, 'quantity': 5}),         ]"/>
    </record>

    <!-- Export invoice to expresso, fiscal position changes tax to exempt (type 2 because only service) -->
    <record id="demo_invoice_15" model="account.move">
        <field name="partner_id" ref="res_partner_expresso"/>
        <field name="journal_id" ref="l10n_ar.sale_expo_journal_ri"/>
        <field name="invoice_user_id" ref="base.user_demo"/>
        <field name="invoice_payment_term_id" ref="account.account_payment_term_end_following_month"/>
        <field name="type">out_invoice</field>
        <field name="invoice_date" eval="time.strftime('%Y-%m')+'-20'"/>
        <field name="company_id" ref="company_ri"/>
        <field name="invoice_incoterm_id" ref="account.incoterm_EXW"/>
        <field name="invoice_line_ids" eval="[             (0, 0, {'product_id': ref('product_product_telefonia'), 'price_unit': 250.0, 'quantity': 1}),         ]"/>
    </record>

    <!-- Export invoice to expresso, fiscal position changes tax to exempt (type 1 because it have products only, used to test refund of expo) -->
    <record id="demo_invoice_16" model="account.move">
        <field name="partner_id" ref="res_partner_expresso"/>
        <field name="journal_id" ref="l10n_ar.sale_expo_journal_ri"/>
        <field name="invoice_user_id" ref="base.user_demo"/>
        <field name="invoice_payment_term_id" ref="account.account_payment_term_end_following_month"/>
        <field name="type">out_invoice</field>
        <field name="invoice_date" eval="time.strftime('%Y-%m')+'-01'"/>
        <field name="company_id" ref="company_ri"/>
        <field name="invoice_incoterm_id" ref="account.incoterm_EXW"/>
        <field name="invoice_line_ids" eval="[             (0, 0, {'product_id': ref('product.product_product_27'), 'price_unit': 642.0, 'quantity': 5}),         ]"/>
    </record>

    <!-- Invoice to ADHOC with 100% of discount -->
    <record id="demo_invoice_17" model="account.move">
        <field name="partner_id" ref="l10n_ar.res_partner_adhoc"/>
        <field name="invoice_user_id" ref="base.user_demo"/>
        <field name="invoice_payment_term_id" ref="account.account_payment_term_end_following_month"/>
        <field name="type">out_invoice</field>
        <field name="invoice_date" eval="time.strftime('%Y-%m')+'-13'"/>
        <field name="company_id" ref="company_ri"/>
        <field name="invoice_line_ids" eval="[             (0, 0, {'product_id': ref('product.product_product_2'), 'price_unit': 24.3, 'quantity': 3, 'name': 'Support Services 8', 'discount': 100}),         ]"/>
    </record>

    <!-- Invoice to ADHOC with 100% of discount and with different VAT aliquots -->
    <record id="demo_invoice_18" model="account.move">
        <field name="partner_id" ref="l10n_ar.res_partner_adhoc"/>
        <field name="invoice_user_id" ref="base.user_demo"/>
        <field name="invoice_payment_term_id" ref="account.account_payment_term_end_following_month"/>
        <field name="type">out_invoice</field>
        <field name="invoice_date" eval="time.strftime('%Y-%m')+'-13'"/>
        <field name="company_id" ref="company_ri"/>
        <field name="invoice_line_ids" eval="[             (0, 0, {'product_id': ref('product.product_product_2'), 'price_unit': 24.3, 'quantity': 3, 'name': 'Support Services 8', 'discount': 100}),             (0, 0, {'product_id': ref('product_product_telefonia'), 'price_unit': 250.0, 'quantity': 1, 'discount': 100}),             (0, 0, {'product_id': ref('product.product_product_25'), 'price_unit': 3245.0, 'quantity': 1}),         ]"/>
    </record>

    <!-- Invoice to ADHOC with multiple taxes and perceptions -->
    <record id="demo_invoice_19" model="account.move">
        <field name="partner_id" ref="l10n_ar.res_partner_adhoc"/>
        <field name="invoice_user_id" ref="base.user_demo"/>
        <field name="invoice_payment_term_id" ref="account.account_payment_term_end_following_month"/>
        <field name="type">out_invoice</field>
        <field name="invoice_date" eval="time.strftime('%Y-%m')+'-13'"/>
        <field name="company_id" ref="company_ri"/>
        <field name="invoice_line_ids" eval="[             (0, 0, {'product_id': ref('product.product_product_2'), 'price_unit': 24.3, 'quantity': 3, 'name': 'Support Services 8'}),             (0, 0, {'product_id': ref('product_product_telefonia'), 'price_unit': 250.0, 'quantity': 1}),             (0, 0, {'product_id': ref('product.product_product_25'), 'price_unit': 3245.0, 'quantity': 1}),         ]"/>
    </record>

    <function model="account.move.line" name="_onchange_product_id" context="{'check_move_validity': False}">
        <value model="account.move.line" eval="obj().search([('move_id', 'in', [ref('demo_invoice_1'), ref('demo_invoice_2'), ref('demo_invoice_3'), ref('demo_invoice_4'), ref('demo_invoice_5'), ref('demo_invoice_6'), ref('demo_invoice_7'), ref('demo_invoice_8'), ref('demo_invoice_10'), ref('demo_invoice_11'), ref('demo_invoice_12'), ref('demo_invoice_13'), ref('demo_invoice_14'), ref('demo_invoice_15'), ref('demo_invoice_16'), ref('demo_invoice_17'), ref('demo_invoice_18'), ref('demo_invoice_19')])]).ids"/>
    </function>

    <function model="account.move" name="_onchange_partner_id" context="{'check_move_validity': False}">
        <value eval="[ref('demo_invoice_6')]"/>
    </function>
    <function model="account.move" name="_onchange_partner_id" context="{'check_move_validity': False}">
        <value eval="[ref('demo_invoice_7')]"/>
    </function>
    <function model="account.move" name="_onchange_partner_id" context="{'check_move_validity': False}">
        <value eval="[ref('demo_invoice_14')]"/>
    </function>
    <function model="account.move" name="_onchange_partner_id" context="{'check_move_validity': False}">
        <value eval="[ref('demo_invoice_15')]"/>
    </function>
    <function model="account.move" name="_onchange_partner_id" context="{'check_move_validity': False}">
        <value eval="[ref('demo_invoice_16')]"/>
    </function>

    <function model="account.move.line" name="write" context="{'check_move_validity': False, 'active_test': False}">
        <value model="account.move.line" search="[('move_id', '=', ref('demo_invoice_19')), ('product_id', '=', ref('product.product_product_2'))]"/>
        <value model="account.tax" eval="{'tax_ids': [(4, obj().search([('company_id', '=', ref('company_ri')), ('type_tax_use', '=', 'sale'), ('tax_group_id.l10n_ar_tribute_afip_code', '=', '06')], limit=1).id)]}"/>
    </function>

    <function model="account.move.line" name="write" context="{'check_move_validity': False, 'active_test': False}">
        <value model="account.move.line" search="[('move_id', '=', ref('demo_invoice_19')), ('product_id', '=', ref('product_product_telefonia'))]"/>
        <value model="account.tax" eval="{'tax_ids': [(4, obj().search([('company_id', '=', ref('company_ri')), ('type_tax_use', '=', 'sale'), ('tax_group_id.l10n_ar_tribute_afip_code', '=', '07')], limit=1).id)]}"/>
    </function>

    <function model="account.move.line" name="write" context="{'check_move_validity': False, 'active_test': False}">
        <value model="account.move.line" search="[('move_id', '=', ref('demo_invoice_19')), ('product_id', '=', ref('product.product_product_25'))]"/>
        <value model="account.tax" eval="{'tax_ids': [(4, obj().search([('company_id', '=', ref('company_ri')), ('type_tax_use', '=', 'sale'), ('tax_group_id.l10n_ar_tribute_afip_code', '=', '99')], limit=1).id)]}"/>
    </function>

    <function model="account.move" name="_recompute_dynamic_lines" context="{'check_move_validity': False}">
        <value eval="[ref('demo_invoice_1'), ref('demo_invoice_2'), ref('demo_invoice_3'), ref('demo_invoice_4'), ref('demo_invoice_5'), ref('demo_invoice_6'), ref('demo_invoice_7'), ref('demo_invoice_8'), ref('demo_invoice_10'), ref('demo_invoice_11'), ref('demo_invoice_12'), ref('demo_invoice_13'), ref('demo_invoice_14'), ref('demo_invoice_15'), ref('demo_invoice_16'), ref('demo_invoice_17'), ref('demo_invoice_18'), ref('demo_invoice_19')]"/>
        <value eval="True"/>
    </function>

    <function model="account.move" name="post">
        <value eval="[ref('demo_invoice_1'), ref('demo_invoice_2'), ref('demo_invoice_3'), ref('demo_invoice_4'), ref('demo_invoice_5'), ref('demo_invoice_6'), ref('demo_invoice_7'), ref('demo_invoice_8'), ref('demo_invoice_10'), ref('demo_invoice_11'), ref('demo_invoice_12'), ref('demo_invoice_13'), ref('demo_invoice_14'), ref('demo_invoice_15'), ref('demo_invoice_16'), ref('demo_invoice_17'), ref('demo_invoice_18'), ref('demo_invoice_19')]"/>
    </function>

</odoo>
2021-03-31 13:11:14 Step l10n_ar_all_no_test finished in 8m
2021-03-31 13:11:14 Starting step setup from config Adhoc Conf (l10n_Ar no test)
2021-03-31 13:11:14 INFO runbot Using Dockerfile Tag odoo:DockerDefaultadhocv13
2021-03-31 13:11:27 INFO runbot Step setup finished in 13s
2021-03-31 13:11:27 Starting step run from config Adhoc Conf (l10n_Ar no test)
2021-03-31 13:11:27 INFO runbot Start running build 01425-13-0
2021-03-31 13:11:27 INFO runbot Using Dockerfile Tag odoo:DockerDefaultadhocv13
2021-03-31 13:12:21 INFO server odoo.modules.loading:279 1 modules loaded in 0.01s, 0 queries
2021-03-31 13:12:22 INFO server odoo.modules.loading:279 11 modules loaded in 0.07s, 0 queries
2021-04-01 10:42:06 INFO server odoo.modules.loading:279 1 modules loaded in 0.01s, 0 queries
2021-04-01 10:42:09 INFO server odoo.modules.loading:279 336 modules loaded in 2.33s, 0 queries
2021-04-01 13:07:16 ERROR runbot Docker with state GHOST not started after 60 seconds, skipping
2021-04-01 13:07:16 INFO runbot Step run finished in 24h