Skip to content

Commit

Permalink
ação já executada no onchange_fiscal_type
Browse files Browse the repository at this point in the history
  • Loading branch information
crsilveira committed May 27, 2024
1 parent 7419193 commit ff8cd4a
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions l10n_br_fiscal/models/product_mixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,3 @@ def _onchange_ncm_id(self):
r.fiscal_genre_id = self.env["l10n_br_fiscal.product.genre"].search(
[("code", "=", r.ncm_id.code[0:2])]
)

if r.fiscal_type == PRODUCT_FISCAL_TYPE_SERVICE:
r.ncm_id = self.env.ref(NCM_FOR_SERVICE_REF)

0 comments on commit ff8cd4a

Please sign in to comment.