Skip to content

Commit

Permalink
[REF] imported_document field to fiscal mixin
Browse files Browse the repository at this point in the history
  • Loading branch information
mileo committed Dec 18, 2024
1 parent da84651 commit 5456799
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 2 deletions.
2 changes: 0 additions & 2 deletions l10n_br_fiscal/models/document.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,6 @@ class Document(models.Model):
store=True,
)

imported_document = fields.Boolean(string="Imported", default=False)

xml_error_message = fields.Text(
readonly=True,
string="XML validation errors",
Expand Down
34 changes: 34 additions & 0 deletions l10n_br_fiscal/models/document_mixin_fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -471,3 +471,37 @@ def _operation_domain(self):
key_random_code = fields.Char(string="Document Key Random Code")
key_check_digit = fields.Char(string="Document Key Check Digit")
total_weight = fields.Float(string="Total Weight")

imported_document = fields.Boolean(string="Imported", default=False)

## CTE

# commitment_date = fields.Datetime("Delivery Date")
# expected_date = fields.Datetime("Expected Date")

# Remetente
partner_sendering_id = fields.Many2one(
"res.partner",
string="Sender Address",
help="Responsible for sending the goods, usually the issuer of the NFe.",
)

# Expedidor
partner_shippering_id = fields.Many2one(
"res.partner",
string="Shipper Address",
help="The one responsible for delivering the cargo to the carrier when \
the shipment is not carried out by the sender.",
)

# Recebedor
partner_receivering_id = fields.Many2one(
"res.partner",
string="Receiver Address",
help="Actor who receives the goods. He is considered an intermediary \
between the issuer and the final recipient.",
)

partner_insurance_id = fields.Many2one("res.partner", string="Insurance Partner")

imported_document = fields.Boolean(string="Imported", default=False)

0 comments on commit 5456799

Please sign in to comment.