Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
l10n_mx
l10n_mx_facturae
Compare Revisions
a7a58b25f2746f637ec512eecaa0289757c4b04d...a8555116651cc1d39b670d9d2c9db277e95fb560
Source
a8555116651cc1d39b670d9d2c9db277e95fb560
Select Git revision
...
Target
a7a58b25f2746f637ec512eecaa0289757c4b04d
Select Git revision
Compare
Commits (3)
fix(migration): se agrego un if para revisar si existe columna
· 1a07c010
Elías Méndez Vázquez
authored
2 years ago
se agrego un if para revisar si existe columna
1a07c010
chore(release): versión 3.4.4
· 4939b8fe
agb80
authored
2 years ago
4939b8fe
Merge branch 'mr-origin-175'
· a8555116
agb80
authored
2 years ago
a8555116
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
9 deletions
+15
-9
CHANGES.md
CHANGES.md
+10
-0
l10n_mx_facturae/migrations/3.1.0/post-migration.py
l10n_mx_facturae/migrations/3.1.0/post-migration.py
+4
-8
l10n_mx_facturae/migrations/3.1.0/pre-migration.py
l10n_mx_facturae/migrations/3.1.0/pre-migration.py
+1
-1
No files found.
CHANGES.md
View file @
a8555116
<a
name=
"3.4.4"
></a>
### 3.4.4 (2023-02-08)
#### Bug Fixes
*
**migration:**
se agrego un if para revisar si existe columna (
[
1a07c010
](
1a07c010
)
)
<a
name=
"3.4.3"
></a>
### 3.4.3 (2023-01-17)
...
...
This diff is collapsed.
Click to expand it.
l10n_mx_facturae/migrations/3.1.0/post-migration.py
View file @
a8555116
...
...
@@ -16,6 +16,8 @@ def migrate_res_partner(env):
"cfdi_adenda_ids"
,
legacy_name
,
)
# Clear helper fields used for migrate data
tools
.
drop_columns
(
env
.
cr
,
[(
"res_partner"
,
legacy_name
)])
def
migrate_account_invoice
(
env
):
...
...
@@ -29,17 +31,11 @@ def migrate_account_invoice(env):
"cfdi_adenda_ids"
,
legacy_name
,
)
# Clear helper fields used for migrate data
tools
.
drop_columns
(
env
.
cr
,
[(
"account_invoice"
,
legacy_name
)])
@
tools
.
migrate
(
use_env
=
True
,
uid
=
SUPERUSER_ID
)
def
migrate
(
env
,
installed_version
):
migrate_res_partner
(
env
)
migrate_account_invoice
(
env
)
# Clear helper fields used for migrate data
tools
.
drop_columns
(
env
.
cr
,
[
(
"res_partner"
,
tools
.
get_legacy_name
(
"cfdi_adenda"
)),
(
"account_invoice"
,
tools
.
get_legacy_name
(
"cfdi_adenda_id"
)),
],
)
This diff is collapsed.
Click to expand it.
l10n_mx_facturae/migrations/3.1.0/pre-migration.py
View file @
a8555116
...
...
@@ -13,5 +13,5 @@ column_renames = {
@
tools
.
migrate
(
use_env
=
True
,
uid
=
SUPERUSER_ID
)
def
migrate
(
env
,
installed_version
):
if
column_
renames
:
if
tools
.
column_
exists
(
env
.
cr
,
"res_partner"
,
"cfdi_adenda"
)
:
tools
.
rename_columns
(
env
.
cr
,
column_renames
)
This diff is collapsed.
Click to expand it.