Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
L
l10n_mx_facturae
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 6
    • Issues 6
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 4
    • Merge Requests 4
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • l10n_mx
  • l10n_mx_facturae
  • Merge Requests
  • !160

Merged
Opened 2 years ago by Antonio Manzano Romero@antonio.manzanoContributor

fix(account.invoice): se corrige test unitario para cancelar facturas

  • Overview 7
  • Commits 1
  • Pipelines 7
  • Changes 1
All threads resolved
  • Loading...

Se corrige test unitario que comprueba la funcionalidad de cancelar facturas con CFDIS relacionados no timbrados y en estado de borrador.

Request to merge unit_test into master
  • Download as
  • Email patches

  • Plain diff

Pipeline #17662 passed for 769e7ad4 on unit_test
Approval is optional

Merged by Agustín Cruz 2 years ago (Sep 15, 2022 12:23am GMT+0000) 2 years ago

The changes were merged into master with 769e7ad4

The source branch has been deleted

Pipeline #17663 passed for 769e7ad4 on master

  • Antonio Manzano Romero @antonio.manzano added Bug label 2 years ago

    added Bug label

  • Antonio Manzano Romero @antonio.manzano added 1 commit 2 years ago

    added 1 commit

    • 6521f2e4 - feat(account.invoice): se corrige test unitario para cancelar facturas

    Compare with previous version

  • Agustín Cruz
    Agustín Cruz @agb80 started a thread on an old version of the diff 2 years ago
    Automatically resolved by Antonio Manzano Romero 2 years ago
  • Agustín Cruz
    Agustín Cruz @agb80 started a thread on an old version of the diff 2 years ago
    Automatically resolved by Antonio Manzano Romero 2 years ago
  • Antonio Manzano Romero @antonio.manzano resolved all threads 2 years ago

    resolved all threads

  • Antonio Manzano Romero @antonio.manzano added 1 commit 2 years ago

    added 1 commit

    • d4075d9a - feat(account.invoice): se corrige test unitario para cancelar facturas

    Compare with previous version

  • Agustín Cruz
    Agustín Cruz @agb80 started a thread on an old version of the diff 2 years ago
    Automatically resolved by Antonio Manzano Romero 2 years ago
  • Antonio Manzano Romero @antonio.manzano resolved all threads 2 years ago

    resolved all threads

  • Antonio Manzano Romero @antonio.manzano added 1 commit 2 years ago

    added 1 commit

    • 499c6769 - feat(account.invoice): se corrige test unitario para cancelar facturas

    Compare with previous version

  • Agustín Cruz
    Agustín Cruz @agb80 · 2 years ago
    Owner

    Intenté correr el test pero me sale este error:

    Error in unittest.suite._ErrorHolder.setUpClass
      File "/home/agustin/.buildout/eggs/cp27mu/green-2.8.2-py2.7.egg/green/suite.py", line 105, in _handleClassSetUp
        setUpClass()
      File "/home/agustin/Documents/internetcomunicate/parts/l10n_mx_facturae/l10n_mx_facturae/tests/test_cancel_invoice.py", line 31, in setUpClass
        "invoice_line_tax_id": [(4, (cls.product.taxes_id.id))],
      File "/home/agustin/Documents/internetcomunicate/parts/server/openerp/api.py", line 266, in wrapper
        return new_api(self, *args, **kwargs)
      File "/home/agustin/Documents/internetcomunicate/parts/server/openerp/api.py", line 508, in new_api
        result = method(self._model, cr, uid, *args, **old_kwargs)
      File "/home/agustin/Documents/internetcomunicate/parts/server/addons/base_action_rule/base_action_rule.py", line 188, in create
        new_id = create.origin(self, cr, uid, vals, context=context, **kwargs)
      File "/home/agustin/Documents/internetcomunicate/parts/server/openerp/api.py", line 268, in wrapper
        return old_api(self, *args, **kwargs)
      File "/home/agustin/Documents/internetcomunicate/parts/server/addons/mail/mail_thread.py", line 381, in create
        thread_id = super(mail_thread, self).create(cr, uid, values, context=context)
      File "/home/agustin/Documents/internetcomunicate/parts/server/openerp/api.py", line 268, in wrapper
        return old_api(self, *args, **kwargs)
      File "/home/agustin/Documents/internetcomunicate/parts/server/openerp/api.py", line 372, in old_api
        result = method(recs, *args, **kwargs)
      File "/home/agustin/Documents/internetcomunicate/parts/connector/connector/producer.py", line 48, in create
        record_id = create_original(self, vals)
      File "/home/agustin/Documents/internetcomunicate/parts/server/openerp/api.py", line 266, in wrapper
        return new_api(self, *args, **kwargs)
      File "/home/agustin/Documents/internetcomunicate/parts/server/openerp/models.py", line 4124, in create
        record = self.browse(self._create(old_vals))
      File "/home/agustin/Documents/internetcomunicate/parts/server/openerp/api.py", line 266, in wrapper
        return new_api(self, *args, **kwargs)
      File "/home/agustin/Documents/internetcomunicate/parts/server/openerp/api.py", line 508, in new_api
        result = method(self._model, cr, uid, *args, **old_kwargs)
      File "/home/agustin/Documents/internetcomunicate/parts/server/openerp/models.py", line 4315, in _create
        result += self._columns[field].set(cr, self, id_new, field, vals[field], user, rel_context) or []
      File "/home/agustin/Documents/internetcomunicate/parts/server/openerp/osv/fields.py", line 818, in set
        id_new = obj.create(cr, user, act[2], context=context)
      File "/home/agustin/Documents/internetcomunicate/parts/server/openerp/api.py", line 268, in wrapper
        return old_api(self, *args, **kwargs)
      File "/home/agustin/Documents/internetcomunicate/parts/server/openerp/api.py", line 372, in old_api
        result = method(recs, *args, **kwargs)
      File "/home/agustin/Documents/internetcomunicate/parts/connector/connector/producer.py", line 48, in create
        record_id = create_original(self, vals)
      File "/home/agustin/Documents/internetcomunicate/parts/server/openerp/api.py", line 266, in wrapper
        return new_api(self, *args, **kwargs)
      File "/home/agustin/Documents/internetcomunicate/parts/server/openerp/models.py", line 4124, in create
        record = self.browse(self._create(old_vals))
      File "/home/agustin/Documents/internetcomunicate/parts/server/openerp/api.py", line 266, in wrapper
        return new_api(self, *args, **kwargs)
      File "/home/agustin/Documents/internetcomunicate/parts/server/openerp/api.py", line 508, in new_api
        result = method(self._model, cr, uid, *args, **old_kwargs)
      File "/home/agustin/Documents/internetcomunicate/parts/server/openerp/models.py", line 4268, in _create
        tuple([u[2] for u in updates if len(u) > 2])
      File "/home/agustin/Documents/internetcomunicate/parts/server/openerp/sql_db.py", line 172, in wrapper
        return f(self, *args, **kwargs)
      File "/home/agustin/Documents/internetcomunicate/parts/server/openerp/sql_db.py", line 248, in execute
        res = self._obj.execute(query, params)
    IntegrityError: el valor nulo en la columna «account_id» de la relación «account_invoice_line» viola la restricción de no nulo
    DETALLE:  La fila que falla contiene (106152, 1, 2022-09-12 23:00:09.685864, 2022-09-12 23:00:09.685864, 1, null, 1, null, Test, 10, 90417, 100.000000, null, null, 0.00, null, 1.000, null, 6444, null, null, null, null, null, null).
    

    Lo puedes corregir por favor

  • Antonio Manzano Romero @antonio.manzano added 1 commit 2 years ago

    added 1 commit

    • 5eb5eb45 - feat(account.invoice): se corrige test unitario para cancelar facturas

    Compare with previous version

  • Agustín Cruz
    Agustín Cruz @agb80 · 2 years ago
    Owner

    Y un favor, que los tests queden en verde :pray:

  • Agustín Cruz
    Agustín Cruz @agb80 started a thread on the diff 2 years ago
    Resolved by Agustín Cruz 2 years ago
  • Antonio Manzano Romero @antonio.manzano added 1 commit 2 years ago

    added 1 commit

    • f448bb8f - feat(account.invoice): se corrige test unitario para cancelar facturas

    Compare with previous version

  • Agustín Cruz @agb80 resolved all threads 2 years ago

    resolved all threads

  • Agustín Cruz @agb80 resolved all threads 2 years ago

    resolved all threads

  • Agustín Cruz @agb80 added 4 commits 2 years ago

    added 4 commits

    • f448bb8f...f5434f41 - 3 commits from branch master
    • 769e7ad4 - tests(account.invoice): se corrige test unitario para cancelar facturas

    Compare with previous version

  • Agustín Cruz @agb80 merged 2 years ago

    merged

  • You're only seeing other activity in the feed. To add a comment, switch to one of the following options.
Please register or sign in to reply
0 Assignees
Assign to
0 Reviewers
Request review from
None
Milestone
None
Assign milestone
None
Time tracking
No estimate or time spent
1
Labels
Bug
Assign labels
  • No matching results
  • Manage project labels
Lock merge request
Unlocked
participants
Reference: l10n_mx/l10n_mx_facturae!160
Source branch: unit_test

    0 pending comments