[ADD] Patches OCA Invoice Force Number and rejects extended module from Special

This commit is contained in:
Jorge Enrique Gómez Gómez 2021-12-16 16:20:20 -05:00
parent 1d22ca5535
commit 99c0d46d0f
3 changed files with 25 additions and 0 deletions

View File

@ -91,6 +91,15 @@ pt_community ()
DEST=$DESTDIR/community/auth_oauth_multi_token/ DEST=$DESTDIR/community/auth_oauth_multi_token/
OPTIONS="--directory=$DEST --strip=1" OPTIONS="--directory=$DEST --strip=1"
patch $OPTIONS < patches/20210420_auth-oauth-multi-token_error-in-login.patch patch $OPTIONS < patches/20210420_auth-oauth-multi-token_error-in-login.patch
SRC=$PWD
DEST=$DESTDIR/community/account-invoicing/
OPTIONS="-p1 --verbose"
pushd $DEST
git apply $OPTIONS $SRC/patches/20211216_account-invoice-force-number_post-instead-of-action.patch
popd
} }
pt_all () pt_all ()

View File

@ -0,0 +1,15 @@
diff --git a/account_invoice_force_number/models/account_move.py b/account_invoice_force_number/models/account_move.py
index 50e2df99..2b3e7217 100644
--- a/account_invoice_force_number/models/account_move.py
+++ b/account_invoice_force_number/models/account_move.py
@@ -29,8 +29,8 @@ class AccountMove(models.Model):
)
return super(AccountMove, self).unlink()
- def action_post(self):
+ def _post(self, soft=True):
for move in self:
if move.move_name:
move.write({"name": move.move_name})
- return super(AccountMove, self).action_post()
+ return super(AccountMove, self)._post(soft=soft)

View File

@ -0,0 +1 @@
account_invoice_force_number_extended