[ADD] Patches OCA Invoice Force Number and rejects extended module from Special
This commit is contained in:
parent
1d22ca5535
commit
99c0d46d0f
@ -91,6 +91,15 @@ pt_community ()
|
||||
DEST=$DESTDIR/community/auth_oauth_multi_token/
|
||||
OPTIONS="--directory=$DEST --strip=1"
|
||||
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 ()
|
||||
|
||||
@ -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)
|
||||
@ -0,0 +1 @@
|
||||
account_invoice_force_number_extended
|
||||
Loading…
Reference in New Issue
Block a user